From mboxrd@z Thu Jan 1 00:00:00 1970 From: chenfeng Subject: How to ensure that different peripherals getting different IOVA address in kernel? Date: Wed, 23 Sep 2015 09:55:58 +0800 Message-ID: <560206AE.4020608@hisilicon.com> References: <5600AF72.2000106@hisilicon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <5600AF72.2000106@hisilicon.com> Sender: linux-kernel-owner@vger.kernel.org To: joro@8bytes.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, rcallicotte@gmail.com, robin.murphy@arm.com, jiang.liu@linux.intel.com Cc: Dan zhao , qijiwen , Peter Panshilin , Suzhuangluan , Yiping Xu , "Wangfei (William, Euler)" List-Id: iommu@lists.linux-foundation.org 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 peripher= als get completely different address. eg: peri-A=E3=80=81peri-B and peri-C share the same iova address 0-1G for s= ome performance requests. So the A,B,C need to use the same IOVA generator to ensure this,but I d= on't find an architecture to make this. Any help will be appreciated. Puck From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759987AbbIWB4P (ORCPT ); Tue, 22 Sep 2015 21:56:15 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:19957 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752217AbbIWB4O (ORCPT ); Tue, 22 Sep 2015 21:56:14 -0400 Subject: How to ensure that different peripherals getting different IOVA address in kernel? References: <5600AF72.2000106@hisilicon.com> To: , , , , , CC: Dan zhao , qijiwen , Peter Panshilin , Suzhuangluan , Yiping Xu , "Wangfei (William, Euler)" From: chenfeng X-Forwarded-Message-Id: <5600AF72.2000106@hisilicon.com> Message-ID: <560206AE.4020608@hisilicon.com> Date: Wed, 23 Sep 2015 09:55:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5600AF72.2000106@hisilicon.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.142.192.172] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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