linux/drivers/pci/host
Tomasz Nowicki feb199ebef PCI: thunder-pem: Fix legacy firmware PEM-specific resources
SZ_16M PEM resource size includes PEM-specific register and its children
resources. Reservation of the whole SZ_16M range leads to child device
driver failure when pcieport driver is requesting resources:

  pcieport 0004:1f:00.0: can't enable device: BAR 0 [mem 0x87e0c0f00000-0x87e0c0ffffff 64bit] not claimed

So we cannot reserve full 16M here and instead we want to reserve
PEM-specific register only which is SZ_64K.

At the end increase PEM resource to SZ_16M since this is what
thunder_pem_init() call expects for proper initialization.

Fixes: 9abb27c759 ("PCI: thunder-pem: Add legacy firmware support for Cavium ThunderX host controller")
Signed-off-by: Tomasz Nowicki <tn@semihalf.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: stable@vger.kernel.org	# v4.10+
2017-04-03 15:10:21 -05:00
..
Kconfig PCI: Move DesignWare IP support to new drivers/pci/dwc/ directory 2017-02-21 14:59:53 -06:00
Makefile PCI: Move DesignWare IP support to new drivers/pci/dwc/ directory 2017-02-21 14:59:53 -06:00
pci-aardvark.c PCI: aardvark: Remove unused platform data 2016-10-11 19:44:04 -05:00
pci-host-common.c PCI: generic: Call pci_fixup_irqs() only on ARM 2017-02-09 09:13:20 -06:00
pci-host-generic.c Merge branches 'pci/demodularize-hosts' and 'pci/host-request-windows' into next 2016-08-01 12:23:57 -05:00
pci-hyperv.c PCI: hv: Use device serial number as PCI domain 2017-02-17 13:53:29 -06:00
pci-mvebu.c PCI: mvebu: Change delay after reset to the PCIe spec mandated 100ms 2017-02-08 13:33:57 -06:00
pci-rcar-gen2.c PCI: rcar-gen2: Use gen2 fallback compatibility last 2016-12-07 16:56:02 -06:00
pci-tegra.c PCI: tegra: Add Tegra210 support 2016-12-07 12:06:42 -06:00
pci-thunder-ecam.c PCI: Add MCFG quirks for Cavium ThunderX pass1.x host controller 2016-12-06 13:45:50 -06:00
pci-thunder-pem.c PCI: thunder-pem: Fix legacy firmware PEM-specific resources 2017-04-03 15:10:21 -05:00
pci-versatile.c PCI: versatile: Configure PCIe MPS settings 2017-02-08 15:42:26 -06:00
pci-xgene-msi.c PCI/MSI: pci-xgene-msi: Fix CPU hotplug registration handling 2017-01-17 08:41:51 -06:00
pci-xgene.c PCI: xgene: Configure PCIe MPS settings 2017-02-10 11:36:14 -06:00
pcie-altera-msi.c Merge branches 'pci/host-aardvark', 'pci/host-altera', 'pci/host-artpec', 'pci/host-designware', 'pci/host-hv', 'pci/host-keystone', 'pci/host-rcar', 'pci/host-rockchip', 'pci/host-tegra' and 'pci/host-xilinx' into next 2016-10-05 13:59:14 -05:00
pcie-altera.c PCI: altera: Fix TLP_CFG_DW0 for TLP write 2017-02-28 15:06:29 -06:00
pcie-iproc-bcma.c PCI: iproc: Save host bridge window resource in struct iproc_pcie 2017-03-09 11:27:07 -06:00
pcie-iproc-msi.c PCI: iproc: Add BCMA type 2016-11-14 15:55:33 -06:00
pcie-iproc-platform.c PCI: iproc: Save host bridge window resource in struct iproc_pcie 2017-03-09 11:27:07 -06:00
pcie-iproc.c PCI: iproc: Configure PCIe MPS settings 2017-02-08 15:20:09 -06:00
pcie-iproc.h PCI: iproc: Save host bridge window resource in struct iproc_pcie 2017-03-09 11:27:07 -06:00
pcie-rcar.c PCI: rcar: Use of_device_get_match_data() to simplify probe 2017-01-31 16:35:42 -06:00
pcie-rockchip.c PCI: rockchip: Set vendor ID from local core config space 2017-02-17 14:13:05 -06:00
pcie-xilinx-nwl.c PCI: xilinx-nwl: Remove mask for messages not supported by AXI 2017-02-10 14:22:17 -06:00
pcie-xilinx.c PCI: xilinx: Configure PCIe MPS settings 2017-02-08 15:37:47 -06:00
vmd.c treewide: Constify most dma_map_ops structures 2017-01-24 12:23:35 -05:00