]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: tegra: Do not allocate MSI target memory
authorThierry Reding <treding@nvidia.com>
Thu, 4 May 2017 20:10:32 +0000 (22:10 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Sun, 2 Jul 2017 23:46:20 +0000 (18:46 -0500)
commit6974b0dcb2b68ee09fe87104adb8467ec1a0924a
tree022dae6e2bf8d18a5a305904cc8ab323a32b4ce2
parent6945f7c19cd3878e2a7cb2f776f2bb3514c66007
PCI: tegra: Do not allocate MSI target memory

The PCI host bridge found on Tegra SoCs doesn't require the MSI target
address to be backed by physical system memory.  Writes are intercepted
within the controller and never make it to the memory pointed to.

Since no actual system memory is required, remove the allocation of a
single page and hardcode the MSI target address with a special address that
maps to the last 4 KiB page within the range that is reserved for system
memory and memory-mapped I/O in the FPCI address map.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
drivers/pci/host/pci-tegra.c