From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 43AD6C64EC4 for ; Fri, 10 Mar 2023 16:47:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KcCYRyjBG15RQEnF32uQ5wF02XxIS4YqRANgdr8hggw=; b=t66M2jrGQ1a/kY c5qKeLHunT1Sn2S0cnmQoHo9zBkliZtVceG477zWMZpjLKTJKWaAVwx3scvxQSrsGVnB6PKuI8SLW qs1CbatsJk/mGiToqV4vUIuxeXqrDrxYEG7Ym/BQhv8dx74lZVN2bffiLzpHAvNObhy62hI+/PYwa cxv6Z5qmn7XCFsc+BmibkXgbwLr/4fcMrNHlQLVc1otPR/Ym6t/ufBW+5WnAmpNCjdFBRXuc95q2p oaxZuhKSsVlAg/qlIlp36DFdDGvgZw6UEnGf11YBN0ocSDGCjaAN3WtBZ+vnCFOndEly5UZhGt64w gHejGisxCLIzAF84F0/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1paft1-00FMGK-JS; Fri, 10 Mar 2023 16:46:31 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pafsL-00FLwD-Hw for linux-arm-kernel@bombadil.infradead.org; Fri, 10 Mar 2023 16:45:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=MIME-Version:Content-Transfer-Encoding :Content-Type:In-Reply-To:References:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=vrTKo8GYPnBUztY38cShVtHnqNv0sG0VI8SAcD4lgQQ=; b=pp2fwr0l5Ai42Ga5qaCXG5k2O3 88Hs/zPgMzFNmjeWpu7yhz1tkabl8h9uVX/1e9Jt1S0qzWzQRrTWFoZcjR6hp75SoBqi1t+EMSMkg 08gm6FUK8cK3FS6cXtXrUOdB5VslpXp0PJKrfJ5kieONb15R0kBt+RcIVqdBYBnRpbBZ6V+QRWSwU f82nP2H9J15VOYNuhNzXyUlwUlzuh0Jp9QY7vMKl+2TJmSlvdN7l9BbMzv7W6mJ4EughR5qzyed3B mll6eNgaB0puNgClgB8Mc5ewZPIS/ElHK9BXr6ONXMSCIEp4C16FJFY5tuADLAzfDKKrzm0FpsNh0 JLSEixyA==; Received: from frasgout.his.huawei.com ([185.176.79.56]) by desiato.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pafHf-000VnO-2Z for linux-arm-kernel@lists.infradead.org; Fri, 10 Mar 2023 16:07:58 +0000 Received: from lhrpeml100002.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4PY9tS3bt7z6J6L2; Sat, 11 Mar 2023 00:07:28 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (7.191.163.240) by lhrpeml100002.china.huawei.com (7.191.160.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 10 Mar 2023 16:07:38 +0000 Received: from lhrpeml500005.china.huawei.com ([7.191.163.240]) by lhrpeml500005.china.huawei.com ([7.191.163.240]) with mapi id 15.01.2507.021; Fri, 10 Mar 2023 16:07:38 +0000 From: Shameerali Kolothum Thodi To: Jason Gunthorpe CC: Eric Auger , Nicolin Chen , "robin.murphy@arm.com" , "will@kernel.org" , "kevin.tian@intel.com" , "baolu.lu@linux.intel.com" , "joro@8bytes.org" , "jean-philippe@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v1 01/14] iommu: Add iommu_get_unmanaged_domain helper Thread-Topic: [PATCH v1 01/14] iommu: Add iommu_get_unmanaged_domain helper Thread-Index: AQHZUnWRmBwtrmleCk69JH8tQLhaPq7zzWuAgABY2gCAAAIMsIAABIwAgAABG+A= Date: Fri, 10 Mar 2023 16:07:38 +0000 Message-ID: References: <9b1077601cace998533129327f5e7ad946752d29.1678348754.git.nicolinc@nvidia.com> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.227.178] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230310_160756_039034_42BB131D X-CRM114-Status: GOOD ( 23.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org > -----Original Message----- > From: Jason Gunthorpe [mailto:jgg@nvidia.com] > Sent: 10 March 2023 15:57 > To: Shameerali Kolothum Thodi > Cc: Eric Auger ; Nicolin Chen > ; robin.murphy@arm.com; will@kernel.org; > kevin.tian@intel.com; baolu.lu@linux.intel.com; joro@8bytes.org; > jean-philippe@linaro.org; linux-arm-kernel@lists.infradead.org; > iommu@lists.linux.dev; linux-kernel@vger.kernel.org > Subject: Re: [PATCH v1 01/14] iommu: Add iommu_get_unmanaged_domain > helper > > On Fri, Mar 10, 2023 at 03:44:02PM +0000, Shameerali Kolothum Thodi > wrote: > > > > > > > -----Original Message----- > > > From: Jason Gunthorpe [mailto:jgg@nvidia.com] > > > Sent: 10 March 2023 15:33 > > > To: Eric Auger > > > Cc: Nicolin Chen ; robin.murphy@arm.com; > > > will@kernel.org; kevin.tian@intel.com; baolu.lu@linux.intel.com; > > > joro@8bytes.org; Shameerali Kolothum Thodi > > > ; jean-philippe@linaro.org; > > > linux-arm-kernel@lists.infradead.org; iommu@lists.linux.dev; > > > linux-kernel@vger.kernel.org > > > Subject: Re: [PATCH v1 01/14] iommu: Add > iommu_get_unmanaged_domain > > > helper > > > > > > On Fri, Mar 10, 2023 at 11:14:59AM +0100, Eric Auger wrote: > > > > Hi Nicolin, > > > > > > > > On 3/9/23 11:53, Nicolin Chen wrote: > > > > > The nature of ITS virtualization on ARM is done via hypercalls, > > > > > so kernel handles all IOVA mappings for the MSI doorbell in > > > > > iommu_dma_prepare_msi() and iommu_dma_compose_msi_msg(). > The > > > current > > > > > virtualization solution with a 2-stage nested translation setup > > > > > is to do 1:1 IOVA mappings at stage-1 > > > > Note that if we still intend to use that trick there is a known > > > > issue at kernel side that needs to be fixed. > > > > > > > > ARM DEN 0049E.b IORT specification mandates that when RMRs are > > > > present, the OS must preserve PCIe configuration performed by the > > > > boot FW. > > > > > > This limitation doesn't seem necessary for this MSI stuff? > > > > > > What is it for? > > > > That is to make sure the Stream Ids specified in RMR are still valid > > and is not being reassigned by OS. The kernel checks for > > this(iort_rmr_has_dev()), > > > https://lore.kernel.org/linux-arm-kernel/20220420164836.1181-5-shameer > > ali.kolothum.thodi@huawei.com/ > > So "boot configration" is more like "don't change the RIDs"? Ie don't enable > SRIOV? Yes. Don't think it will work with SR-IOV if you can't guarantee the RMR specified SID. Thanks, Shameer _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel