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 0FE01C0219D for ; Thu, 13 Feb 2025 12:00:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:Cc:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W+9jFShe+swt6iV6zeRvvjq+ucOd2xMbMetLWjETWU8=; b=nsW+SDlpmU0em2O8LO2AT8iLm5 Ym6/VLqYX6PfUlzZpG65YyOpXGRWbzrabh0RtbFpyedfhJANWsYs9k7A73flLsWXr1fDwMyUlxqmT +jYdbXbdt7OxcBfDDpmor0i1A6s2Rw3rVebcNbpb8Heh/lM2TFJWWFyqEvNXGxx11P35aZnfRzSkD R+OjmLkU/SSbs1KYJ8DBVLDPirCpZnimEFNHI++4cGFkyPytDyh+NA8v8VT8YSAQpUqgO027QtfQZ CuaqFSbjHqzwiNQZjrTIicW7zw1FY/U4bwpVds53HtoK9OBTSUF4OXIfZi/x07NOsk5xbkCa23mel FnJX0xNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tiXtR-0000000AwCq-0tMv; Thu, 13 Feb 2025 12:00:33 +0000 Received: from mgamail.intel.com ([198.175.65.18]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tiXr0-0000000AvpU-3zq0 for linux-arm-kernel@lists.infradead.org; Thu, 13 Feb 2025 11:58:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1739447883; x=1770983883; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=AK+FKyMd7dfZt0G7tPDijdfr9CalJ0oWmocbmIdcgPo=; b=OlIO4VkI+p5xONu2FQ0KpNRC/otp0aTLDqKnBtD+q8L1F1RkZZ14pXZv 11I5DQ5atYrkcyqiZZ5stzS3gaVUGMEEI/jcdnv8W2ehe1P7uZXE+j0h9 9aBUdnTE9dRyE9uvHG9j32LAJRtnRhsuhl5I7kJwUXdWHKllmREfYHrGP 2PNLCUPWU/ziRs6yWkgOiS1wCAMcEaXGcL0jCkdUH5i4PYoXtZNRdHMj6 9qUApA8e77moX0T6O25mYHCFwzavJmtAbRtrWTGz5LRx3PYwKxoadQWms XJl2D1WOsJe1ihuJtZhYKR8SpBKyNoDZ1aC9jSTcH/GnLGfyY5XkFcOHs g==; X-CSE-ConnectionGUID: DadylFSZQtyWXGB2jx3dog== X-CSE-MsgGUID: XbGgBq0eSuSJd1UsbKvotw== X-IronPort-AV: E=McAfee;i="6700,10204,11314"; a="40261279" X-IronPort-AV: E=Sophos;i="6.12,310,1728975600"; d="scan'208";a="40261279" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2025 03:58:02 -0800 X-CSE-ConnectionGUID: sqjDCNoHTtaIhPm2Z1Mc8A== X-CSE-MsgGUID: 62i6si6lRmG0UymwlyBHRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,199,1725346800"; d="scan'208";a="118060259" Received: from blu2-mobl.ccr.corp.intel.com (HELO [10.124.242.149]) ([10.124.242.149]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2025 03:57:56 -0800 Message-ID: Date: Thu, 13 Feb 2025 19:57:51 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, Zhangfei Gao , acpica-devel@lists.linux.dev, iommu@lists.linux.dev, Joerg Roedel , Kevin Tian , kvm@vger.kernel.org, Len Brown , linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Lorenzo Pieralisi , "Rafael J. Wysocki" , Robert Moore , Robin Murphy , Sudeep Holla , Will Deacon , Alex Williamson , Donald Dutile , Eric Auger , Hanjun Guo , Jean-Philippe Brucker , Jerry Snitselaar , Moritz Fischer , Michael Shavit , Nicolin Chen , patches@lists.linux.dev, "Rafael J. Wysocki" , Shameerali Kolothum Thodi , Mostafa Saleh Subject: Re: [PATCH v4 00/12] Initial support for SMMUv3 nested translation To: Jason Gunthorpe References: <0-v4-9e99b76f3518+3a8-smmuv3_nesting_jgg@nvidia.com> <20241112182938.GA172989@nvidia.com> <20241113012359.GB35230@nvidia.com> <9df3dd17-375a-4327-b2a8-e9f7690d81b1@linux.intel.com> <20241113164316.GL35230@nvidia.com> <6ed97a10-853f-429e-8506-94b218050ad3@linux.intel.com> <20241115175522.GA35230@nvidia.com> <20250122192622.GA965540@nvidia.com> <284dd081-8d53-45ef-ae18-78b0388c98ca@linux.intel.com> Content-Language: en-US From: Baolu Lu In-Reply-To: <284dd081-8d53-45ef-ae18-78b0388c98ca@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250213_035803_040159_A4521B14 X-CRM114-Status: GOOD ( 13.30 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2025/2/5 11:45, Baolu Lu wrote: > On 2025/1/23 3:26, Jason Gunthorpe wrote: >> On Fri, Nov 15, 2024 at 01:55:22PM -0400, Jason Gunthorpe wrote: >>>>> I need your help to remove IOMMU_DEV_FEAT_IOPF from the intel >>>>> driver. I have a patch series that eliminates it from all the other >>>>> drivers, and I wrote a patch to remove FEAT_SVA from intel.. >>>> Yes, sure. Let's make this happen in the next cycle. >>>> >>>> FEAT_IOPF could be removed. IOPF manipulation can be handled in the >>>> domain attachment path. A per-device refcount can be implemented. This >>>> count increments with each iopf-capable domain attachment and >>>> decrements >>>> with each detachment. PCI PRI is enabled for the first iopf-capable >>>> domain and disabled when the last one is removed. Probably we can also >>>> solve the PF/VF sharing PRI issue. >>> Here is what I have so far, if you send me a patch for vt-d to move >>> FEAT_IOPF into attach as you describe above (see what I did to arm for >>> example), then I can send it next cycle >>> >>> https://github.com/jgunthorpe/linux/commits/iommu_no_feat/ >> Hey Baolu, a reminder on this, lets try for it next cycle? > > Oh, I forgot this. Thanks for the reminding. Sure, let's try to make it > in the next cycle. Hi Jason, I've worked through the entire series. The patches are available here: https://github.com/LuBaolu/intel-iommu/commits/iommu-no-feat-v6.14-rc2 Please check if this is the right direction. Thanks, baolu