Re: [PATCH v3 2/2] mailbox: Add Broadcom STB mailbox driver

2020-09-19 Thread Jim Quinlan
On Sat, Sep 19, 2020 at 3:32 PM Randy Dunlap wrote: > > Hi Jim, > > On 9/19/20 12:22 PM, Jim Quinlan wrote: > > --- > > drivers/mailbox/Kconfig | 12 +++ > > drivers/mailbox/Makefile | 2 + > > drivers/mailbox/brcmstb-mailbox.c | 173 +

[PATCH v3 1/2] dt-bindings: Add bindings for BrcmSTB SCMI mailbox driver

2020-09-19 Thread Jim Quinlan
Bindings are added. Only one interrupt is needed because we do not yet employ the SCMI p2a channel. Signed-off-by: Jim Quinlan --- .../bindings/mailbox/brcm,brcmstb-mbox.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v3 2/2] mailbox: Add Broadcom STB mailbox driver

2020-09-19 Thread Jim Quinlan
is initiated with an ARM SMC call, but the return of this call does not indicate the execution or completion of the message. Rather, the message's completion is signaled by an interrupt. Signed-off-by: Jim Quinlan Signed-off-by: Florian Fainelli --- drivers/mailbox/Kconfig | 12 +++ drivers

[PATCH v3 0/2] mailbox: Add Broadcom STB mailbox driver

2020-09-19 Thread Jim Quinlan
ency on SMP (Florian) Commit "mailbox: Add Broadcom STB mailbox driver" -- Drop label,unit address; changed title,description (RobH) v1: -- Original submission. Jim Quinlan (2): dt-bindings: Add bindings for BrcmSTB SCMI mailbox driver mailbox: Add Broadcom STB mailbox driv

[PATCH v2 2/2] mailbox: Add Broadcom STB mailbox driver

2020-09-18 Thread Jim Quinlan
is initiated with an ARM SMC call, but the return of this call does not indicate the execution or completion of the message. Rather, the message's completion is signaled by an interrupt. Signed-off-by: Jim Quinlan Signed-off-by: Florian Fainelli --- drivers/mailbox/Kconfig | 12 +++ drivers

[PATCH v2 1/2] dt-bindings: Add bindings for BrcmSTB SCMI mailbox driver

2020-09-18 Thread Jim Quinlan
Bindings are added. Only one interrupt is needed because we do not yet employ the SCMI p2a channel. Signed-off-by: Jim Quinlan --- .../bindings/mailbox/brcm,brcmstb-mbox.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings

[PATCH v2 0/2] mailbox: Add Broadcom STB mailbox driver

2020-09-18 Thread Jim Quinlan
dress; changed title,description (RobH) v1: -- Original submission. Jim Quinlan (2): dt-bindings: Add bindings for BrcmSTB SCMI mailbox driver mailbox: Add Broadcom STB mailbox driver .../bindings/mailbox/brcm,brcmstb-mbox.yaml | 39 drivers/mailbox/Kconfig | 12

Re: [PATCH v1] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-09-17 Thread Jim Quinlan
On Tue, Aug 25, 2020 at 4:16 AM Philipp Zabel wrote: > > On Mon, 2020-08-24 at 16:40 -0400, Jim Quinlan wrote: > > From: Jim Quinlan > > > > A reset controller "rescal" is shared between the AHCI driver and the PCIe > >

[PATCH v2 0/1] PCI: pcie_bus_config can be set at build time

2020-09-16 Thread Jim Quinlan
v2: Add more description text in the new Kconfig settings (Bjorn). v1: Original Jim Quinlan (1): PCI: pcie_bus_config can be set at build time drivers/pci/Kconfig | 56 + drivers/pci/pci.c | 12 ++ 2 files changed, 68 insertions

[PATCH v2 1/1] PCI: pcie_bus_config can be set at build time

2020-09-16 Thread Jim Quinlan
The Kconfig is modified so that the pcie_bus_config setting can be done at build time in the same manner as the CONFIG_PCIEASPM_ choice. The pci_bus_config setting may still be overridden by the bootline param. Signed-off-by: Jim Quinlan --- drivers/pci/Kconfig | 56

[PATCH v1 2/2] mailbox: Add Broadcom STB mailbox driver

2020-09-15 Thread Jim Quinlan
is initiated with an ARM SMC call, but the return of this call does not indicate the execution or completion of the message. Rather, the message's completion is signaled by an interrupt. Signed-off-by: Jim Quinlan Signed-off-by: Florian Fainelli --- drivers/mailbox/Kconfig | 13 +++ drivers

[PATCH v1 1/2] dt-bindings: Add bindings for BrcmSTB SCMI mailbox driver

2020-09-15 Thread Jim Quinlan
Bindings are added. Only one interrupt is needed because we do not yet employ the SCMI p2a channel. Signed-off-by: Jim Quinlan --- .../bindings/mailbox/brcm,brcmstb-mbox.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings

Re: [RESEND PATCH v1] MIPS: uasm: false warning on use of uasm_i_lui()

2020-09-14 Thread Jim Quinlan
On Thu, Sep 10, 2020 at 5:37 AM Thomas Bogendoerfer wrote: > > On Tue, Sep 08, 2020 at 12:45:06PM -0400, Jim Quinlan wrote: > > Currently, the example uasm code > > > > uasm_i_lui(p, tmp, 0xa000); > > > > issues a warning at Linux boot when the code

[PATCH v12 07/10] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-09-11 Thread Jim Quinlan
in PCIe memory. As it turns out, BrcmSTB PCIe HW is rarely used in the EP role and its system of mapping memory is an artifact that requires multiple dma-ranges regions. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- drivers/pci/controller/pcie-brcmstb.c

[PATCH v12 03/10] PCI: brcmstb: Add bcm7278 register info

2020-09-11 Thread Jim Quinlan
From: Jim Quinlan Add in compatibility strings and code for three Broadcom STB chips. Some of the register locations, shifts, and masks are different for certain chips, requiring the use of different constants based on of_id. We would like to add the following at this time to the match list

[PATCH v12 04/10] PCI: brcmstb: Add suspend and resume pm_ops

2020-09-11 Thread Jim Quinlan
From: Jim Quinlan Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend and resume. Now the PCIe driver may do so as well. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 47 +++ 1 file changed

[PATCH v12 09/10] PCI: brcmstb: Set bus max burst size by chip type

2020-09-11 Thread Jim Quinlan
From: Jim Quinlan The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip. The 2711 family requires 128B whereas other devices can employ 512. The assignment is complicated by the fact that the values for this two-bit field have different meanings; Value Type_Generic

[PATCH v12 06/10] PCI: brcmstb: Add control of rescal reset

2020-09-11 Thread Jim Quinlan
From: Jim Quinlan Some STB chips have a special purpose reset controller named RESCAL (reset calibration). The PCIe HW can now control RESCAL to start and stop its operation. On probe(), the RESCAL is deasserted and the driver goes through the sequence of setting registers and reading status

[PATCH v12 10/10] PCI: brcmstb: Add bcm7211, bcm7216, bcm7445, bcm7278 to match list

2020-09-11 Thread Jim Quinlan
Now that the support is in place with previous commits, we add several chips that use the BrcmSTB driver. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Acked-by: Rob Herring --- drivers/pci/controller/pcie-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci

[PATCH v12 08/10] PCI: brcmstb: Accommodate MSI for older chips

2020-09-11 Thread Jim Quinlan
From: Jim Quinlan Older BrcmSTB chips do not have a separate register for MSI interrupts; the MSIs are in a register that also contains unrelated interrupts. In addition, the interrupts lie in bits [31..24] for these legacy chips. This commit provides common code for both legacy and non-legacy

[PATCH v12 02/10] dt-bindings: PCI: Add bindings for more Brcmstb chips

2020-09-11 Thread Jim Quinlan
From: Jim Quinlan - Add compatible strings for three more Broadcom STB chips: 7278, 7216, 7211 (STB version of RPi4). - Add new property 'brcm,scb-sizes'. - Add new property 'resets'. - Add new property 'reset-names' for 7216 only. - Allow 'ranges' and 'dma-ranges' to have more than one item

[PATCH v12 05/10] PCI: brcmstb: Add bcm7278 PERST# support

2020-09-11 Thread Jim Quinlan
From: Jim Quinlan The PERST# bit was moved to a different register in 7278-type STB chips. In addition, the polarity of the bit was also changed; for other chips writing a 1 specified assert; for 7278-type chips, writing a 0 specifies assert. Of course, PERST# is a PCIe asserted-low signal

[PATCH v12 01/10] PCI: brcmstb: PCIE_BRCMSTB depends on ARCH_BRCMSTB

2020-09-11 Thread Jim Quinlan
From: Jim Quinlan Have PCIE_BRCMSTB depend on ARCH_BRCMSTB. Also set the default value to ARCH_BRCMSTB. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- drivers/pci/controller/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v12 00/10] PCI: brcmstb: enable PCIe for STB chips

2020-09-11 Thread Jim Quinlan
hset implements a generalization of "dev->dma_pfn_offset", except that instead of a single scalar offset it provides for multiple offsets via a function which depends upon the "dma-ranges" property of the PCIe host controller. This is required for proper functionality of

Re: [PATCH v11 08/11] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-09-11 Thread Jim Quinlan
On Thu, Sep 10, 2020 at 12:17 PM Rob Herring wrote: > > On Mon, Aug 24, 2020 at 03:30:21PM -0400, Jim Quinlan wrote: > > The Raspberry Pi (RPI) is currently the only chip using this driver > > (pcie-brcmstb.c). There, only one memory controller is used, without an &g

Re: [RESEND PATCH v1] PCI: pcie_bus_config can be set at build time

2020-09-10 Thread Jim Quinlan
Hi Bjorn, On Wed, Sep 9, 2020 at 10:25 PM Bjorn Helgaas wrote: > > On Tue, Sep 08, 2020 at 12:32:48PM -0400, Jim Quinlan wrote: > > The Kconfig is modified so that the pcie_bus_config setting can be done at > > build time in the same manner as the CONFIG_PC

Re: [PATCH v11 04/11] PCI: brcmstb: Add suspend and resume pm_ops

2020-09-10 Thread Jim Quinlan
On Thu, Sep 10, 2020 at 2:50 PM Rob Herring wrote: > > On Thu, Sep 10, 2020 at 10:42 AM Jim Quinlan > wrote: > > > > On Thu, Sep 10, 2020 at 11:56 AM Rob Herring wrote: > > > > > > On Mon, Aug 24, 2020 at 03:30:17PM -0400, Jim Quinlan wrote: > > &g

Re: [PATCH v11 04/11] PCI: brcmstb: Add suspend and resume pm_ops

2020-09-10 Thread Jim Quinlan
On Thu, Sep 10, 2020 at 3:08 PM Florian Fainelli wrote: > > > > On 9/10/2020 12:05 PM, Jim Quinlan wrote: > > On Thu, Sep 10, 2020 at 2:50 PM Rob Herring wrote: > >> > >> On Thu, Sep 10, 2020 at 10:42 AM Jim Quinlan > >> wrote: > >>>

Re: [PATCH v11 04/11] PCI: brcmstb: Add suspend and resume pm_ops

2020-09-10 Thread Jim Quinlan
On Thu, Sep 10, 2020 at 11:56 AM Rob Herring wrote: > > On Mon, Aug 24, 2020 at 03:30:17PM -0400, Jim Quinlan wrote: > > From: Jim Quinlan > > > > Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend > > and resume. Now the PCIe driver may do

[RESEND PATCH v1] MIPS: uasm: false warning on use of uasm_i_lui()

2020-09-08 Thread Jim Quinlan
convert it to a proper 16 bit unsigned integer. Signed-off-by: Jim Quinlan --- arch/mips/include/asm/uasm.h | 2 +- arch/mips/mm/uasm-micromips.c | 2 +- arch/mips/mm/uasm-mips.c | 2 +- arch/mips/mm/uasm.c | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/

[RESEND PATCH v1] PCI: pcie_bus_config can be set at build time

2020-09-08 Thread Jim Quinlan
The Kconfig is modified so that the pcie_bus_config setting can be done at build time in the same manner as the CONFIG_PCIEASPM_ choice. The pci_bus_config setting may still be overridden by the bootline param. Signed-off-by: Jim Quinlan --- drivers/pci/Kconfig | 40

Re: [PATCH v11 00/11] PCI: brcmstb: enable PCIe for STB chips

2020-09-07 Thread Jim Quinlan
On Mon, Sep 7, 2020 at 5:16 AM Lorenzo Pieralisi wrote: > > On Thu, Aug 27, 2020 at 09:29:59AM -0400, Jim Quinlan wrote: > > On Thu, Aug 27, 2020 at 2:35 AM Christoph Hellwig wrote: > > > > > > On Tue, Aug 25, 2020 at 10:40:27AM -0700, Florian Fainelli wrote: >

Re: [PATCH v11 00/11] PCI: brcmstb: enable PCIe for STB chips

2020-08-27 Thread Jim Quinlan
On Thu, Aug 27, 2020 at 2:35 AM Christoph Hellwig wrote: > > On Tue, Aug 25, 2020 at 10:40:27AM -0700, Florian Fainelli wrote: > > Hi, > > > > On 8/24/2020 12:30 PM, Jim Quinlan wrote: > >> > >> Patchset Summary: > >>Enhance a PCIe hos

[PATCH v1] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan A reset controller "rescal" is shared between the AHCI driver and the PCIe driver for the BrcmSTB 7216 chip. Use devm_reset_control_get_optional_shared() to handle this sharing. Fixes: 272ecd60a636 ("ata: ahci_brcm: BCM7216 reset is self de-asserting")

[PATCH v11 08/11] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-08-24 Thread Jim Quinlan
in PCIe memory. As it turns out, BrcmSTB PCIe HW is rarely used in the EP role and its system of mapping memory is an artifact that requires multiple dma-ranges regions. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 68

[PATCH v11 09/11] PCI: brcmstb: Accommodate MSI for older chips

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan Older BrcmSTB chips do not have a separate register for MSI interrupts; the MSIs are in a register that also contains unrelated interrupts. In addition, the interrupts lie in bits [31..24] for these legacy chips. This commit provides common code for both legacy and non-legacy

[PATCH v11 00/11] PCI: brcmstb: enable PCIe for STB chips

2020-08-24 Thread Jim Quinlan
g needed for the PCIe driver to work [1]. There have been many changes to the DMA and OF subsystems since that time, making a cleaner and less intrusive patchset possible. This patchset implements a generalization of "dev->dma_pfn_offset", except that instead of a single scalar o

[PATCH v11 04/11] PCI: brcmstb: Add suspend and resume pm_ops

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend and resume. Now the PCIe driver may do so as well. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 47 +++ 1 file changed

[PATCH v11 03/11] PCI: brcmstb: Add bcm7278 register info

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan Add in compatibility strings and code for three Broadcom STB chips. Some of the register locations, shifts, and masks are different for certain chips, requiring the use of different constants based on of_id. We would like to add the following at this time to the match list

[PATCH v11 10/11] PCI: brcmstb: Set bus max burst size by chip type

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip. The 2711 family requires 128B whereas other devices can employ 512. The assignment is complicated by the fact that the values for this two-bit field have different meanings; Value Type_Generic

[PATCH v11 02/11] dt-bindings: PCI: Add bindings for more Brcmstb chips

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan - Add compatible strings for three more Broadcom STB chips: 7278, 7216, 7211 (STB version of RPi4). - Add new property 'brcm,scb-sizes'. - Add new property 'resets'. - Add new property 'reset-names' for 7216 only. - Allow 'ranges' and 'dma-ranges' to have more than one item

[PATCH v11 06/11] PCI: brcmstb: Add control of rescal reset

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan Some STB chips have a special purpose reset controller named RESCAL (reset calibration). The PCIe HW can now control RESCAL to start and stop its operation. On probe(), the RESCAL is deasserted and the driver goes through the sequence of setting registers and reading status

[PATCH v11 11/11] PCI: brcmstb: Add bcm7211, bcm7216, bcm7445, bcm7278 to match list

2020-08-24 Thread Jim Quinlan
Now that the support is in place with previous commits, we add several chips that use the BrcmSTB driver. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/controller/pcie

[PATCH v11 05/11] PCI: brcmstb: Add bcm7278 PERST# support

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan The PERST# bit was moved to a different register in 7278-type STB chips. In addition, the polarity of the bit was also changed; for other chips writing a 1 specified assert; for 7278-type chips, writing a 0 specifies assert. Of course, PERST# is a PCIe asserted-low signal

[PATCH v11 01/11] PCI: brcmstb: PCIE_BRCMSTB depends on ARCH_BRCMSTB

2020-08-24 Thread Jim Quinlan
From: Jim Quinlan Have PCIE_BRCMSTB depend on ARCH_BRCMSTB. Also set the default value to ARCH_BRCMSTB. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- drivers/pci/controller/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v1] PCI: pcie_bus_config can be set at build time

2020-08-22 Thread Jim Quinlan
The Kconfig is modified so that the pcie_bus_config setting can be done at build time in the same manner as the CONFIG_PCIEASPM_ choice. The pci_bus_config setting may still be overridden by the bootline param. Signed-off-by: Jim Quinlan --- drivers/pci/Kconfig | 40

[PATCH RESEND v10 08/11] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-08-17 Thread Jim Quinlan
in PCIe memory. As it turns out, BrcmSTB PCIe HW is rarely used in the EP role and its system of mapping memory is an artifact that requires multiple dma-ranges regions. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 68

[PATCH RESEND v10 11/11] PCI: brcmstb: Add bcm7211, bcm7216, bcm7445, bcm7278 to match list

2020-08-17 Thread Jim Quinlan
Now that the support is in place with previous commits, we add several chips that use the BrcmSTB driver. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/controller/pcie

[PATCH RESEND v10 09/11] PCI: brcmstb: Accommodate MSI for older chips

2020-08-17 Thread Jim Quinlan
From: Jim Quinlan Older BrcmSTB chips do not have a separate register for MSI interrupts; the MSIs are in a register that also contains unrelated interrupts. In addition, the interrupts lie in bits [31..24] for these legacy chips. This commit provides common code for both legacy and non-legacy

[PATCH RESEND v10 06/11] PCI: brcmstb: Add control of rescal reset

2020-08-17 Thread Jim Quinlan
From: Jim Quinlan Some STB chips have a special purpose reset controller named RESCAL (reset calibration). The PCIe HW can now control RESCAL to start and stop its operation. On probe(), the RESCAL is deasserted and the driver goes through the sequence of setting registers and reading status

[PATCH RESEND v10 05/11] PCI: brcmstb: Add bcm7278 PERST# support

2020-08-17 Thread Jim Quinlan
From: Jim Quinlan The PERST# bit was moved to a different register in 7278-type STB chips. In addition, the polarity of the bit was also changed; for other chips writing a 1 specified assert; for 7278-type chips, writing a 0 specifies assert. Of course, PERST# is a PCIe asserted-low signal

[PATCH RESEND v10 10/11] PCI: brcmstb: Set bus max burst size by chip type

2020-08-17 Thread Jim Quinlan
From: Jim Quinlan The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip. The 2711 family requires 128B whereas other devices can employ 512. The assignment is complicated by the fact that the values for this two-bit field have different meanings; Value Type_Generic

[PATCH RESEND v10 03/11] PCI: brcmstb: Add bcm7278 register info

2020-08-17 Thread Jim Quinlan
From: Jim Quinlan Add in compatibility strings and code for three Broadcom STB chips. Some of the register locations, shifts, and masks are different for certain chips, requiring the use of different constants based on of_id. We would like to add the following at this time to the match list

[PATCH RESEND v10 00/11] PCI: brcmstb: enable PCIe for STB chips

2020-08-17 Thread Jim Quinlan
possible. This patchset implements a generalization of "dev->dma_pfn_offset", except that instead of a single scalar offset it provides for multiple offsets via a function which depends upon the "dma-ranges" property of the PCIe host controller. This is required for pr

[PATCH RESEND v10 01/11] PCI: brcmstb: PCIE_BRCMSTB depends on ARCH_BRCMSTB

2020-08-17 Thread Jim Quinlan
From: Jim Quinlan Have PCIE_BRCMSTB depend on ARCH_BRCMSTB. Also set the default value to ARCH_BRCMSTB. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- drivers/pci/controller/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH RESEND v10 02/11] dt-bindings: PCI: Add bindings for more Brcmstb chips

2020-08-17 Thread Jim Quinlan
From: Jim Quinlan - Add compatible strings for three more Broadcom STB chips: 7278, 7216, 7211 (STB version of RPi4). - Add new property 'brcm,scb-sizes'. - Add new property 'resets'. - Add new property 'reset-names' for 7216 only. - Allow 'ranges' and 'dma-ranges' to have more than one item

[PATCH RESEND v10 04/11] PCI: brcmstb: Add suspend and resume pm_ops

2020-08-17 Thread Jim Quinlan
From: Jim Quinlan Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend and resume. Now the PCIe driver may do so as well. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 47 +++ 1 file changed

[PATCH v1] MIPS: uasm: false warning on use of uasm_i_lui()

2020-08-07 Thread Jim Quinlan
convert it to a proper 16 bit unsigned integer. Signed-off-by: Jim Quinlan --- arch/mips/include/asm/uasm.h | 2 +- arch/mips/mm/uasm-micromips.c | 2 +- arch/mips/mm/uasm-mips.c | 2 +- arch/mips/mm/uasm.c | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/

[PATCH v10 11/11] PCI: brcmstb: Add bcm7211, bcm7216, bcm7445, bcm7278 to match list

2020-08-03 Thread Jim Quinlan
Now that the support is in place with previous commits, we add several chips that use the BrcmSTB driver. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/controller/pcie

[PATCH v10 08/11] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-08-03 Thread Jim Quinlan
in PCIe memory. As it turns out, BrcmSTB PCIe HW is rarely used in the EP role and its system of mapping memory is an artifact that requires multiple dma-ranges regions. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 68

[PATCH v10 09/11] PCI: brcmstb: Accommodate MSI for older chips

2020-08-03 Thread Jim Quinlan
From: Jim Quinlan Older BrcmSTB chips do not have a separate register for MSI interrupts; the MSIs are in a register that also contains unrelated interrupts. In addition, the interrupts lie in bits [31..24] for these legacy chips. This commit provides common code for both legacy and non-legacy

[PATCH v10 10/11] PCI: brcmstb: Set bus max burst size by chip type

2020-08-03 Thread Jim Quinlan
From: Jim Quinlan The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip. The 2711 family requires 128B whereas other devices can employ 512. The assignment is complicated by the fact that the values for this two-bit field have different meanings; Value Type_Generic

[PATCH v10 03/11] PCI: brcmstb: Add bcm7278 register info

2020-08-03 Thread Jim Quinlan
From: Jim Quinlan Add in compatibility strings and code for three Broadcom STB chips. Some of the register locations, shifts, and masks are different for certain chips, requiring the use of different constants based on of_id. We would like to add the following at this time to the match list

[PATCH v10 04/11] PCI: brcmstb: Add suspend and resume pm_ops

2020-08-03 Thread Jim Quinlan
From: Jim Quinlan Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend and resume. Now the PCIe driver may do so as well. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 47 +++ 1 file changed

[PATCH v10 06/11] PCI: brcmstb: Add control of rescal reset

2020-08-03 Thread Jim Quinlan
From: Jim Quinlan Some STB chips have a special purpose reset controller named RESCAL (reset calibration). The PCIe HW can now control RESCAL to start and stop its operation. On probe(), the RESCAL is deasserted and the driver goes through the sequence of setting registers and reading status

[PATCH v10 05/11] PCI: brcmstb: Add bcm7278 PERST# support

2020-08-03 Thread Jim Quinlan
From: Jim Quinlan The PERST# bit was moved to a different register in 7278-type STB chips. In addition, the polarity of the bit was also changed; for other chips writing a 1 specified assert; for 7278-type chips, writing a 0 specifies assert. Of course, PERST# is a PCIe asserted-low signal

[PATCH v10 01/11] PCI: brcmstb: PCIE_BRCMSTB depends on ARCH_BRCMSTB

2020-08-03 Thread Jim Quinlan
From: Jim Quinlan Have PCIE_BRCMSTB depend on ARCH_BRCMSTB. Also set the default value to ARCH_BRCMSTB. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- drivers/pci/controller/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v10 02/11] dt-bindings: PCI: Add bindings for more Brcmstb chips

2020-08-03 Thread Jim Quinlan
From: Jim Quinlan - Add compatible strings for three more Broadcom STB chips: 7278, 7216, 7211 (STB version of RPi4). - Add new property 'brcm,scb-sizes'. - Add new property 'resets'. - Add new property 'reset-names' for 7216 only. - Allow 'ranges' and 'dma-ranges' to have more than one item

[PATCH v10 00/11] PCI: brcmstb: enable PCIe for STB chips

2020-08-03 Thread Jim Quinlan
possible. This patchset implements a generalization of "dev->dma_pfn_offset", except that instead of a single scalar offset it provides for multiple offsets via a function which depends upon the "dma-ranges" property of the PCIe host controller. This is required for pr

Re: [PATCH v9 09/12] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-08-03 Thread Jim Quinlan
fls64 On Sat, Aug 1, 2020 at 1:39 PM Nicolas Saenz Julienne wrote: > > Hi Jim, > > On Fri, 2020-07-24 at 16:33 -0400, Jim Quinlan wrote: > > The Raspberry Pi (RPI) is currently the only chip using this driver > > (pcie-brcmstb.c). There, only one memory con

[PATCH v9 10/12] PCI: brcmstb: Accommodate MSI for older chips

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan Older BrcmSTB chips do not have a separate register for MSI interrupts; the MSIs are in a register that also contains unrelated interrupts. In addition, the interrupts lie in bits [31..24] for these legacy chips. This commit provides common code for both legacy and non-legacy

[PATCH v9 01/12] PCI: brcmstb: PCIE_BRCMSTB depends on ARCH_BRCMSTB

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan Have PCIE_BRCMSTB depend on ARCH_BRCMSTB. Also set the default value to ARCH_BRCMSTB. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- drivers/pci/controller/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v9 00/12] PCI: brcmstb: enable PCIe for STB chips

2020-07-24 Thread Jim Quinlan
1]. There have been many changes to the DMA and OF subsystems since that time, making a cleaner and less intrusive patchset possible. This patchset implements a generalization of "dev->dma_pfn_offset", except that instead of a single scalar offset it provides for multiple offsets via a functi

[PATCH v9 02/12] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan A reset controller "rescal" is shared between the AHCI driver and the PCIe driver for the BrcmSTB 7216 chip. Use devm_reset_control_get_optional_shared() to handle this sharing. Signed-off-by: Jim Quinlan Fixes: 272ecd60a636 ("ata: ahci_brcm: BCM7216 r

[PATCH v9 11/12] PCI: brcmstb: Set bus max burst size by chip type

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip. The 2711 family requires 128B whereas other devices can employ 512. The assignment is complicated by the fact that the values for this two-bit field have different meanings; Value Type_Generic

[PATCH v9 09/12] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-07-24 Thread Jim Quinlan
in PCIe memory. As it turns out, BrcmSTB PCIe HW is rarely used in the EP role and its system of mapping memory is an artifact that requires multiple dma-ranges regions. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 68

[PATCH v9 05/12] PCI: brcmstb: Add suspend and resume pm_ops

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend and resume. Now the PCIe driver may do so as well. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 47 +++ 1 file changed

[PATCH v9 03/12] dt-bindings: PCI: Add bindings for more Brcmstb chips

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan - Add compatible strings for three more Broadcom STB chips: 7278, 7216, 7211 (STB version of RPi4). - Add new property 'brcm,scb-sizes'. - Add new property 'resets'. - Add new property 'reset-names' for 7216 only. - Allow 'ranges' and 'dma-ranges' to have more than one item

[PATCH v9 12/12] PCI: brcmstb: Add bcm7211, bcm7216, bcm7445, bcm7278 to match list

2020-07-24 Thread Jim Quinlan
Now that the support is in place with previous commits, we add several chips that use the BrcmSTB driver. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/controller/pcie

[PATCH v9 06/12] PCI: brcmstb: Add bcm7278 PERST# support

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan The PERST# bit was moved to a different register in 7278-type STB chips. In addition, the polarity of the bit was also changed; for other chips writing a 1 specified assert; for 7278-type chips, writing a 0 specifies assert. Of course, PERST# is a PCIe asserted-low signal

[PATCH v9 04/12] PCI: brcmstb: Add bcm7278 register info

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan Add in compatibility strings and code for three Broadcom STB chips. Some of the register locations, shifts, and masks are different for certain chips, requiring the use of different constants based on of_id. We would like to add the following at this time to the match list

[PATCH v9 07/12] PCI: brcmstb: Add control of rescal reset

2020-07-24 Thread Jim Quinlan
From: Jim Quinlan Some STB chips have a special purpose reset controller named RESCAL (reset calibration). The PCIe HW can now control RESCAL to start and stop its operation. On probe(), the RESCAL is deasserted and the driver goes through the sequence of setting registers and reading status

[PATCH v8 12/12] PCI: brcmstb: Add bcm7211, bcm7216, bcm7445, bcm7278 to match list

2020-07-15 Thread Jim Quinlan
Now that the support is in place with previous commits, we add several chips that use the BrcmSTB driver. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/controller/pcie

[PATCH v8 09/12] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-07-15 Thread Jim Quinlan
in PCIe memory. As it turns out, BrcmSTB PCIe HW is rarely used in the EP role and its system of mapping memory is an artifact that requires multiple dma-ranges regions. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 68

[PATCH v8 02/12] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan A reset controller "rescal" is shared between the AHCI driver and the PCIe driver for the BrcmSTB 7216 chip. Use devm_reset_control_get_optional_shared() to handle this sharing. Signed-off-by: Jim Quinlan Fixes: 272ecd60a636 ("ata: ahci_brcm: BCM7216 r

[PATCH v8 05/12] PCI: brcmstb: Add suspend and resume pm_ops

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend and resume. Now the PCIe driver may do so as well. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 47 +++ 1 file changed

[PATCH v8 06/12] PCI: brcmstb: Add bcm7278 PERST# support

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan The PERST# bit was moved to a different register in 7278-type STB chips. In addition, the polarity of the bit was also changed; for other chips writing a 1 specified assert; for 7278-type chips, writing a 0 specifies assert. Of course, PERST# is a PCIe asserted-low signal

[PATCH v8 00/12] PCI: brcmstb: enable PCIe for STB chips

2020-07-15 Thread Jim Quinlan
possible. This patchset implements a generalization of "dev->dma_pfn_offset", except that instead of a single scalar offset it provides for multiple offsets via a function which depends upon the "dma-ranges" property of the PCIe host controller. This is required for proper functio

[PATCH v8 07/12] PCI: brcmstb: Add control of rescal reset

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan Some STB chips have a special purpose reset controller named RESCAL (reset calibration). The PCIe HW can now control RESCAL to start and stop its operation. On probe(), the RESCAL is deasserted and the driver goes through the sequence of setting registers and reading status

[PATCH v8 04/12] PCI: brcmstb: Add bcm7278 register info

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan Add in compatibility strings and code for three Broadcom STB chips. Some of the register locations, shifts, and masks are different for certain chips, requiring the use of different constants based on of_id. We would like to add the following at this time to the match list

[PATCH v8 11/12] PCI: brcmstb: Set bus max burst size by chip type

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip. The 2711 family requires 128B whereas other devices can employ 512. The assignment is complicated by the fact that the values for this two-bit field have different meanings; Value Type_Generic

[PATCH v8 10/12] PCI: brcmstb: Accommodate MSI for older chips

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan Older BrcmSTB chips do not have a separate register for MSI interrupts; the MSIs are in a register that also contains unrelated interrupts. In addition, the interrupts lie in bits [31..24] for these legacy chips. This commit provides common code for both legacy and non-legacy

[PATCH v8 03/12] dt-bindings: PCI: Add bindings for more Brcmstb chips

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan - Add compatible strings for three more Broadcom STB chips: 7278, 7216, 7211 (STB version of RPi4). - Add new property 'brcm,scb-sizes'. - Add new property 'resets'. - Add new property 'reset-names' for 7216 only. - Allow 'ranges' and 'dma-ranges' to have more than one item

[PATCH v8 01/12] PCI: brcmstb: PCIE_BRCMSTB depends on ARCH_BRCMSTB

2020-07-15 Thread Jim Quinlan
From: Jim Quinlan Have PCIE_BRCMSTB depend on ARCH_BRCMSTB. Also set the default value to ARCH_BRCMSTB. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli Reviewed-by: Rob Herring --- drivers/pci/controller/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v7 11/12] PCI: brcmstb: Set bus max burst size by chip type

2020-07-08 Thread Jim Quinlan
From: Jim Quinlan The proper value of the parameter SCB_MAX_BURST_SIZE varies per chip. The 2711 family requires 128B whereas other devices can employ 512. The assignment is complicated by the fact that the values for this two-bit field have different meanings; Value Type_Generic

[PATCH v7 00/12] PCI: brcmstb: enable PCIe for STB chips

2020-07-08 Thread Jim Quinlan
f "dev->dma_pfn_offset", except that instead of a single scalar offset it provides for multiple offsets via a function which depends upon the "dma-ranges" property of the PCIe host controller. This is required for proper functionality of the BrcmSTB PCIe controller and possibly s

[PATCH v7 09/12] PCI: brcmstb: Set additional internal memory DMA viewport sizes

2020-07-08 Thread Jim Quinlan
in PCIe memory. As it turns out, BrcmSTB PCIe HW is rarely used in the EP role and its system of mapping memory is an artifact that requires multiple dma-ranges regions. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 68

[PATCH v7 05/12] PCI: brcmstb: Add suspend and resume pm_ops

2020-07-08 Thread Jim Quinlan
From: Jim Quinlan Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend and resume. Now the PCIe driver may do so as well. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 47 +++ 1 file changed

[PATCH v7 12/12] PCI: brcmstb: Add bcm7211, bcm7216, bcm7445, bcm7278 to match list

2020-07-08 Thread Jim Quinlan
Now that the support is in place with previous commits, we add several chips that use the BrcmSTB driver. Signed-off-by: Jim Quinlan Acked-by: Florian Fainelli --- drivers/pci/controller/pcie-brcmstb.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/controller/pcie

[PATCH v7 02/12] ata: ahci_brcm: Fix use of BCM7216 reset controller

2020-07-08 Thread Jim Quinlan
From: Jim Quinlan A reset controller "rescal" is shared between the AHCI driver and the PCIe driver for the BrcmSTB 7216 chip. Use devm_reset_control_get_optional_shared() to handle this sharing. Signed-off-by: Jim Quinlan Fixes: 272ecd60a636 ("ata: ahci_brcm: BCM7216 r

<    1   2   3   4   5   >