All of lore.kernel.org
 help / color / mirror / Atom feed
* How to ensure that different peripherals getting different IOVA address in kernel?
       [not found] <5600AF72.2000106@hisilicon.com>
@ 2015-09-23  1:55   ` chenfeng
  0 siblings, 0 replies; 6+ messages in thread
From: chenfeng @ 2015-09-23  1:55 UTC (permalink / raw)
  To: joro, iommu, linux-kernel, rcallicotte, robin.murphy, jiang.liu
  Cc: Dan zhao, qijiwen, Peter Panshilin, Suzhuangluan, Yiping Xu,
	Wangfei (William, Euler)

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

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

* How to ensure that different peripherals getting different IOVA address in kernel?
@ 2015-09-23  1:55   ` chenfeng
  0 siblings, 0 replies; 6+ messages in thread
From: chenfeng @ 2015-09-23  1:55 UTC (permalink / raw)
  To: joro, iommu, linux-kernel, rcallicotte, robin.murphy, jiang.liu
  Cc: Dan zhao, qijiwen, Peter Panshilin, Suzhuangluan, Yiping Xu,
	Wangfei (William, Euler)

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



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

* Re: How to ensure that different peripherals getting different IOVA address in kernel?
  2015-09-23  1:55   ` chenfeng
@ 2015-09-23  2:42       ` Jiang Liu
  -1 siblings, 0 replies; 6+ messages in thread
From: Jiang Liu @ 2015-09-23  2:42 UTC (permalink / raw)
  To: chenfeng, joro-zLv9SwRftAIdnm+yROfE0A,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	rcallicotte-Re5JQEeQqe8AvxtiuMwx3w, robin.murphy-5wv7dgnIgG8
  Cc: Dan zhao, Wangfei (William, Euler), Suzhuangluan, qijiwen,
	Peter Panshilin

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
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

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

* Re: How to ensure that different peripherals getting different IOVA address in kernel?
@ 2015-09-23  2:42       ` Jiang Liu
  0 siblings, 0 replies; 6+ messages in thread
From: Jiang Liu @ 2015-09-23  2:42 UTC (permalink / raw)
  To: chenfeng, joro, iommu, linux-kernel, rcallicotte, robin.murphy
  Cc: Dan zhao, qijiwen, Peter Panshilin, Suzhuangluan, Yiping Xu,
	Wangfei (William, Euler)

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

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

* Re: How to ensure that different peripherals getting different IOVA address in kernel?
  2015-09-23  1:55   ` chenfeng
@ 2015-09-23 12:08       ` Robin Murphy
  -1 siblings, 0 replies; 6+ messages in thread
From: Robin Murphy @ 2015-09-23 12:08 UTC (permalink / raw)
  To: chenfeng, joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org,
	iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	rcallicotte-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	jiang.liu-VuQAYsv1563Yd54FQh9/CA@public.gmane.org
  Cc: Dan zhao, Wangfei (William, Euler), Suzhuangluan, qijiwen,
	Peter Panshilin

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

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

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

* Re: How to ensure that different peripherals getting different IOVA address in kernel?
@ 2015-09-23 12:08       ` Robin Murphy
  0 siblings, 0 replies; 6+ messages in thread
From: Robin Murphy @ 2015-09-23 12:08 UTC (permalink / raw)
  To: chenfeng, joro@8bytes.org, iommu@lists.linux-foundation.org,
	linux-kernel@vger.kernel.org, rcallicotte@gmail.com,
	jiang.liu@linux.intel.com
  Cc: Dan zhao, qijiwen, Peter Panshilin, Suzhuangluan, Yiping Xu,
	Wangfei (William, Euler)

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


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

end of thread, other threads:[~2015-09-23 12:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <5600AF72.2000106@hisilicon.com>
2015-09-23  1:55 ` How to ensure that different peripherals getting different IOVA address in kernel? chenfeng
2015-09-23  1:55   ` chenfeng
     [not found]   ` <560206AE.4020608-C8/M+/jPZTeaMJb+Lgu22Q@public.gmane.org>
2015-09-23  2:42     ` Jiang Liu
2015-09-23  2:42       ` Jiang Liu
2015-09-23 12:08     ` Robin Murphy
2015-09-23 12:08       ` Robin Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.