On 09/06/17 11:02, Manish Jaggi wrote:
SMMU 0
// Note that range of StreamIDs that map to DeviceIDs excludes
// the NIC 0 DeviceID as it does not generate MSIs
// Input ID --> Output reference: Output ID
0x0000-0x01ff --> ITS GROUP 0 : 0x10000->0x101ff
0x0200-0xffff --> ITS GROUP 0 : 0x20000->0x207ff
It can be from 2 different RC's and not from same RC.
It is not my point in this example. My point is same RC with split
DeviceID mapping.
ok, I will add that as well.
The current code parses all entries in pci_rc id_array and patches
output reference and output_base.
The only assumption was on Number of ids in pci_rc id_array element and
the matching smmu id_array element be same.
I can remove the assumption, will that be ok?
The only thing I care is that you don't have *any* assumption of how the
IORT is designed.
So,One ID Mapping element (Input_base, num_ids, out_base) can translate
into two or more id_array entries of smmu node.
Which is basically solution 1) below... Anyway, I will wait the next
version hoping that you will handle properly the IORT generation.
Cheers,
--
Julien Grall
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel