]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: dwc: Restore ATU memory resource setup to use last entry
authorRob Herring <robh@kernel.org>
Mon, 26 Oct 2020 15:48:52 +0000 (10:48 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 4 Nov 2020 19:55:30 +0000 (13:55 -0600)
commitf9aa1763baf4809e1f4b6eeae71b9b78badf0083
tree38e79732eaa3eae9e8c7add784a237e47a44b4ff
parentde3ca01bffe5239f0fb9e515d2440cf3f8354310
PCI: dwc: Restore ATU memory resource setup to use last entry

Prior to commit b130220afcc5 ("PCI: dwc: Remove storing of PCI resources"),
the DWC driver was setting up the last memory resource rather than the
first memory resource. This doesn't matter for most platforms which only
have 1 memory resource, but it broke Tegra194 which has a 2nd
(prefetchable) memory region that requires an ATU entry. The first region
on Tegra194 relies on the default 1:1 pass-thru of outbound transactions
and doesn't need an ATU entry.

Fixes: b130220afcc5 ("PCI: dwc: Remove storing of PCI resources")
Link: https://lore.kernel.org/r/20201026154852.221483-1-robh@kernel.org
Reported-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
Cc: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
drivers/pci/controller/dwc/pcie-designware-host.c