Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1231095 > unrolled thread

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

Started bychenfeng <puck.chen@hisilicon.com>
First post2015-09-23 04:00 +0200
Last post2015-09-23 14:10 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  How to ensure that different peripherals getting different IOVA  address in kernel? chenfeng <puck.chen@hisilicon.com> - 2015-09-23 04:00 +0200
    Re: How to ensure that different peripherals getting different IOVA  address in kernel? Jiang Liu <jiang.liu@linux.intel.com> - 2015-09-23 04:50 +0200
    Re: How to ensure that different peripherals getting different IOVA  address in kernel? Robin Murphy <robin.murphy@arm.com> - 2015-09-23 14:10 +0200

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

Fromchenfeng <puck.chen@hisilicon.com>
Date2015-09-23 04:00 +0200
SubjectHow to ensure that different peripherals getting different IOVA address in kernel?
Message-ID<qbHvI-6uL-5@gated-at.bofh.it>
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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1231113

FromJiang Liu <jiang.liu@linux.intel.com>
Date2015-09-23 04:50 +0200
Message-ID<qbIi5-7Kb-1@gated-at.bofh.it>
In reply to#1231095
On 2015/9/23 9:55, chenfeng wrote:
> 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.
Hi Chenfeng,
	Seems IOMMU group may help you, please take a look at
Documentation/vfio.txt.
Thanks!
Gerry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1231397

FromRobin Murphy <robin.murphy@arm.com>
Date2015-09-23 14:10 +0200
Message-ID<qbR22-3Gg-7@gated-at.bofh.it>
In reply to#1231095
On 23/09/15 02:55, chenfeng wrote:
> 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.

>
> Any help will be appreciated.
>
> Puck
>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web