kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* How is rid (requester ID) is used in SMMU-v3 connected to PCIe RC?
@ 2022-05-24 23:01 Chan Kim
  0 siblings, 0 replies; only message in thread
From: Chan Kim @ 2022-05-24 23:01 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 1225 bytes --]

Hello all,

I read Documentation/devicetree/bindings/pci/pci-iommu.txt (linux-5.10)
again.
There is an example (Example(1)).

	/ {
	    #address-cells = <1>;
	    #size-cells = <1>;
	  
	    iommu: iommu@a {
	        reg = <0xa 0x1>;
	        compatible = "vendor,some-iommu";
	        #iommu-cells = <1>;
	    };
	  
	    pci: pci@f {
	        reg = <0xf 0x1>;
	        compatible = "vendor,pcie-root-complex"; 
	        device_type = "pci";

	        /*
	         * The sideband data provided to the IOMMU is the RID,
	         * identity-mapped.
	         */
	        iommu-map = <0x0 &iommu 0x0 0x10000>;
	    };
	};

The "iommu-map" property for pcie is expanding the "iommus" property of
general bus master.
(That is, mapping between the master and {iommu, master ID} is expanded to 
mapping between the range of devices represented by RID (16 bit
bus,device,function pair) and {iommu, requester ID ranges})
This is because there can be many masters on the PCIe bus. Yes, I can
understand that. 
My question is, In arm's SMMUv3 case, how is this rid used in setting up the
stream table (or context table)?
Is rid equal to StreamID in SMMUv3?
Any comment or explanation will be really appreciated.
Thank you!

Chan Kim


[-- Attachment #1.2: Type: text/html, Size: 8768 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-24 23:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 23:01 How is rid (requester ID) is used in SMMU-v3 connected to PCIe RC? Chan Kim

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).