]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitd7bd554f27c942e6b8b54100b4044f9be1038edf
tree022dae6e2bf8d18a5a305904cc8ab323a32b4ce2
parentc016555091119b469fe49d1b1b359f0ae3fc6ed7
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