Skip to contentSkip to conversation

How to ensure that different peripherals getting different IOVA address in kernel?

DISCUSSION chenfeng 3 participants 3 messages Sep 23, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

chenfeng

author
#1 lore raw

Hi all,

In IOMMU architecture , how to make two different peripherals share the same page table ?

In other words , is there a mechanism or structure to make two peripherals get completely different address.

eg:

peri-A、peri-B and peri-C share the same iova address 0-1G for some performance requests.

So the A,B,C need to use the same IOVA generator to ensure this,but I don't find an architecture to make this.

Any help will be appreciated.

Puck

#2 lore raw
Quoted 6 lines · chenfeng

Hi all,

In IOMMU architecture , how to make two different peripherals share the same page table ?

In other words , is there a mechanism or structure to make two peripherals get completely different address.

Quoted 7 lines

eg:

peri-A、peri-B and peri-C share the same iova address 0-1G for some performance requests.

So the A,B,C need to use the same IOVA generator to ensure this,but I don't find an architecture to make this.

Any help will be appreciated.

Hi Chenfeng,
Seems IOMMU group may help you, please take a look at
Documentation/vfio.txt.
Thanks!
Gerry
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu

#3 lore raw
In reply to chenfeng
Quoted 11 lines · chenfeng

Hi all,

In IOMMU architecture , how to make two different peripherals share the same page table ?

In other words , is there a mechanism or structure to make two peripherals get completely different address.

eg:

peri-A、peri-B and peri-C share the same iova address 0-1G for some performance requests.

So the A,B,C need to use the same IOVA generator to ensure this,but I don't find an architecture to make this.

This is what IOMMU domains are all about: devices in one domain are isolated from devices in different domains, so all you need to do is make sure all devices that want to share buffers are attached to the same domain, then they will all share that domain's IOVA space.

Robin.

Quoted 6 lines

Any help will be appreciated.

Puck

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu