From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760065AbbIWCmi (ORCPT ); Tue, 22 Sep 2015 22:42:38 -0400 Received: from mga14.intel.com ([192.55.52.115]:1766 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760050AbbIWCmT (ORCPT ); Tue, 22 Sep 2015 22:42:19 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,576,1437462000"; d="scan'208";a="650453931" Subject: Re: How to ensure that different peripherals getting different IOVA address in kernel? To: chenfeng , joro@8bytes.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, rcallicotte@gmail.com, robin.murphy@arm.com References: <5600AF72.2000106@hisilicon.com> <560206AE.4020608@hisilicon.com> Cc: Dan zhao , qijiwen , Peter Panshilin , Suzhuangluan , Yiping Xu , "Wangfei (William, Euler)" From: Jiang Liu Organization: Intel Message-ID: <56021186.4010500@linux.intel.com> Date: Wed, 23 Sep 2015 10:42:14 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <560206AE.4020608@hisilicon.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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