linux/drivers/pci/controller
Shmuel Hazan 216f8e95aa PCI: mvebu: Setup BAR0 in order to fix MSI
According to the Armada XP datasheet, section 10.2.6: "in order for
the device to do a write to the MSI doorbell address, it needs to write
to a register in the internal registers space".

As a result of the requirement above, without this patch, MSI won't
function and therefore some devices won't operate properly without
pci=nomsi.

This requirement was not present at the time of writing this driver
since the vendor u-boot always initializes all PCIe controllers
(incl. BAR0 initialization) and for some time, the vendor u-boot was
the only available bootloader for this driver's SoCs (e.g. A38x,A37x,
etc).

Tested on an Armada 385 board on mainline u-boot (2020.4), without
u-boot PCI initialization and the following PCIe devices:
        - Wilocity Wil6200 rev 2 (wil6210)
        - Qualcomm Atheros QCA6174 (ath10k_pci)

Both failed to get a response from the device after loading the
firmware and seem to operate properly with this patch.

Link: https://lore.kernel.org/r/20200623060334.108444-1-sh@tkos.co.il
Signed-off-by: Shmuel Hazan <sh@tkos.co.il>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-07-14 15:09:16 +01:00
..
cadence Merge branch 'remotes/lorenzo/pci/rcar' 2020-06-04 12:59:18 -05:00
dwc Merge branch 'remotes/lorenzo/pci/tegra' 2020-06-04 12:59:19 -05:00
mobiveil
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile pci-v5.8-changes 2020-06-06 11:01:58 -07:00
pci-aardvark.c Merge branch 'remotes/lorenzo/pci/aardvark' 2020-06-04 12:59:14 -05:00
pci-ftpci100.c
pci-host-common.c
pci-host-generic.c
pci-hyperv-intf.c
pci-hyperv.c pci-v5.8-changes 2020-06-06 11:01:58 -07:00
pci-loongson.c
pci-mvebu.c PCI: mvebu: Setup BAR0 in order to fix MSI 2020-07-14 15:09:16 +01:00
pci-rcar-gen2.c
pci-tegra.c PCI: tegra: Fix runtime PM imbalance on error 2020-06-01 09:58:59 +01:00
pci-thunder-ecam.c
pci-thunder-pem.c
pci-v3-semi.c Merge branch 'remotes/lorenzo/pci/v3-semi' 2020-06-04 12:59:19 -05:00
pci-versatile.c
pci-xgene-msi.c
pci-xgene.c
pcie-altera-msi.c
pcie-altera.c
pcie-brcmstb.c
pcie-iproc-bcma.c
pcie-iproc-msi.c
pcie-iproc-platform.c
pcie-iproc.c
pcie-iproc.h
pcie-mediatek.c
pcie-rcar-ep.c
pcie-rcar-host.c
pcie-rcar.c
pcie-rcar.h
pcie-rockchip-ep.c
pcie-rockchip-host.c
pcie-rockchip.c
pcie-rockchip.h
pcie-tango.c Merge branch 'remotes/lorenzo/pci/host-generic' 2020-06-04 12:59:16 -05:00
pcie-xilinx-nwl.c
pcie-xilinx.c
vmd.c PCI: vmd: Filter resource type bits from shadow register 2020-05-29 17:05:06 +01:00