linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] PCI: tegra: limit MSI target address to 32-bit
@ 2017-11-06 18:03 Vidya Sagar
  2017-11-08 21:25 ` Bjorn Helgaas
  0 siblings, 1 reply; 16+ messages in thread
From: Vidya Sagar @ 2017-11-06 18:03 UTC (permalink / raw)
  To: treding, bhelgaas
  Cc: linux-tegra, linux-pci, kthota, swarren, mmaddireddy, vidyas

limits MSI target address to only 32-bit region to enable
some of the PCIe end points where only 32-bit MSIs
are supported work properly.
One example being Marvel SATA controller

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
---
 drivers/pci/host/pci-tegra.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host/pci-tegra.c
index 1987fec1f126..03d3dcdd06c2 100644
--- a/drivers/pci/host/pci-tegra.c
+++ b/drivers/pci/host/pci-tegra.c
@@ -1531,7 +1531,7 @@ static int tegra_pcie_enable_msi(struct tegra_pcie *pcie)
 	}
 
 	/* setup AFI/FPCI range */
-	msi->pages = __get_free_pages(GFP_KERNEL, 0);
+	msi->pages = __get_free_pages(GFP_DMA, 0);
 	msi->phys = virt_to_phys((void *)msi->pages);
 
 	afi_writel(pcie, msi->phys >> soc->msi_base_shift, AFI_MSI_FPCI_BAR_ST);
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2018-03-16 17:23 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-06 18:03 [PATCH] PCI: tegra: limit MSI target address to 32-bit Vidya Sagar
2017-11-08 21:25 ` Bjorn Helgaas
2017-11-09  7:18   ` Vidya Sagar
2017-11-09 18:14     ` Bjorn Helgaas
2017-11-09 18:41       ` Vidya Sagar
2017-11-10  9:37         ` Thierry Reding
2017-11-10 11:57           ` Arnd Bergmann
2017-11-10  9:47         ` David Laight
2018-03-16 17:23         ` Lorenzo Pieralisi
2017-11-10  0:47       ` subrahmanya_lingappa
2017-11-10  9:44         ` Thierry Reding
2017-11-10 11:22       ` Lorenzo Pieralisi
2017-11-10 12:04         ` Robin Murphy
2017-11-10 13:07           ` Thierry Reding
2017-11-20 17:07             ` Lorenzo Pieralisi
2017-11-13 11:06           ` Lorenzo Pieralisi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).