public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] pci/layerscape: Setup mmu-masters property for the PCIe
@ 2015-07-28 18:33 Varun Sethi
  2015-09-02  2:54 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: Varun Sethi @ 2015-07-28 18:33 UTC (permalink / raw)
  To: u-boot

Setup mmu-masters property for the PCIe controllers. This would be
used by the Linux SMMU driver, while setting up stream ID table mappings
for the PCIe devices.

Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
---
 drivers/pci/pcie_layerscape.c |    9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c
index 95cfe8c..2f24a6a 100644
--- a/drivers/pci/pcie_layerscape.c
+++ b/drivers/pci/pcie_layerscape.c
@@ -689,6 +689,7 @@ void fdt_fixup_smmu_pcie(void *blob)
 {
 	int count;
 	u32 stream_ids[MAX_STREAM_IDS];
+	u32 ctlr_streamid = 0x300;
 
 	#ifdef CONFIG_PCIE1
 	/* PEX1 stream ID fixup */
@@ -696,6 +697,8 @@ void fdt_fixup_smmu_pcie(void *blob)
 	alloc_stream_ids(FSL_PEX1_STREAM_ID_START, count, stream_ids,
 			 MAX_STREAM_IDS);
 	pcie_set_available_streamids(blob, "/pcie at 3400000", stream_ids, count);
+	append_mmu_masters(blob, "/iommu at 5000000", "/pcie at 3400000",
+			   &ctlr_streamid, 1);
 	#endif
 
 	#ifdef CONFIG_PCIE2
@@ -704,6 +707,8 @@ void fdt_fixup_smmu_pcie(void *blob)
 	alloc_stream_ids(FSL_PEX2_STREAM_ID_START, count, stream_ids,
 			 MAX_STREAM_IDS);
 	pcie_set_available_streamids(blob, "/pcie at 3500000", stream_ids, count);
+	append_mmu_masters(blob, "/iommu at 5000000", "/pcie at 3500000",
+			   &ctlr_streamid, 1);
 	#endif
 
 	#ifdef CONFIG_PCIE3
@@ -712,6 +717,8 @@ void fdt_fixup_smmu_pcie(void *blob)
 	alloc_stream_ids(FSL_PEX3_STREAM_ID_START, count, stream_ids,
 			 MAX_STREAM_IDS);
 	pcie_set_available_streamids(blob, "/pcie at 3600000", stream_ids, count);
+	append_mmu_masters(blob, "/iommu at 5000000", "/pcie at 3600000",
+			   &ctlr_streamid, 1);
 	#endif
 
 	#ifdef CONFIG_PCIE4
@@ -720,6 +727,8 @@ void fdt_fixup_smmu_pcie(void *blob)
 	alloc_stream_ids(FSL_PEX4_STREAM_ID_START, count, stream_ids,
 			 MAX_STREAM_IDS);
 	pcie_set_available_streamids(blob, "/pcie at 3700000", stream_ids, count);
+	append_mmu_masters(blob, "/iommu at 5000000", "/pcie at 3700000",
+			   &ctlr_streamid, 1);
 	#endif
 }
 #endif
-- 
1.7.9.5

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

* [U-Boot] [PATCH] pci/layerscape: Setup mmu-masters property for the PCIe
  2015-07-28 18:33 [U-Boot] [PATCH] pci/layerscape: Setup mmu-masters property for the PCIe Varun Sethi
@ 2015-09-02  2:54 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2015-09-02  2:54 UTC (permalink / raw)
  To: u-boot



On 07/28/2015 01:33 PM, Varun Sethi wrote:
> Setup mmu-masters property for the PCIe controllers. This would be
> used by the Linux SMMU driver, while setting up stream ID table mappings
> for the PCIe devices.
> 
> Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com>
> ---

Applied to fsl-qoriq master branch. Awaiting upstream.

York

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

end of thread, other threads:[~2015-09-02  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-28 18:33 [U-Boot] [PATCH] pci/layerscape: Setup mmu-masters property for the PCIe Varun Sethi
2015-09-02  2:54 ` York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox