Message ID | 20230707013441.365583-7-tina.zhang@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2961974vqx; Thu, 6 Jul 2023 19:05:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFc5ucWc7YMKBAz6PI1X99yozzkqmRQPvCjELVzbNnKwArutfPURni0GZB5873hCs9vss34 X-Received: by 2002:a17:903:32d1:b0:1b8:a67f:1c15 with SMTP id i17-20020a17090332d100b001b8a67f1c15mr10828236plr.25.1688695540589; Thu, 06 Jul 2023 19:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688695540; cv=none; d=google.com; s=arc-20160816; b=W04LEUu5yok620rXT8hHGBqufqCupCn8rqiJR2JvqZb1Gampk1lA9IBoE4nb1ewJem xOLC45msQtqVicSF4aBAUOo2oa4zZyaOueWxYTiCMYuoMCxSi0csqPqMrlq3LTsZBn7E TJENBJ3h9QfwLf6leRJpG2naRumpnEsyjSlBU216kZH/CeUVqJGRQzBL+0194R1ao9tl ZC0ecFz3tS9vMaRl2wADFdENPxJ5WyJku0kNc24wnMg+MuaJsYOQShFt4JFDsZxQdDmu cJL7NyX39RVJSgBS5z5fA6S5BFgN//AXcxIWLTciP+1A2tvBAa5nX1KEJ3KvZnLRajkY tkqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4FuoBcuar9kdSM+2O4FbUViRe799+9XEPUrbnZuYsJo=; fh=YLwvJdOekjmHJibOqKattcm/709ZiAsNlTvjC0MrDUo=; b=zHdxnleWPyiACJpo1rJxKJ+u9OJWJYe0FgEZ9JOZ4uizs6Yjn5JWFcEO2PUw62eh7G 7rQEba+MY2lsyVQOPIQGu8RuUWyqWYnxZhgDfF2QGnhVjGRjdIGZ9+HguOEVL8e2+Qej LYGlfbIfymv59YROgw+90Hvzmp0oQvSMjFkFnZsJ3dFrGvjY2d3PdRcASFrwl23i6Mai RxLfOqizKTwK+magzLtgbUlsJjHTnkzEnM2c9RIoJAFmzKnMrffnEFTZEWFxiEu46hbt yUGtAViZ3clxzTMI7c2bkc2RWkwvprqEX9EtzI92kVimxOgofMAIHJU9tFFt5fKs0rMC xh6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qwiy4Tm9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a170902f39400b001b89654fa42si2356645ple.476.2023.07.06.19.05.24; Thu, 06 Jul 2023 19:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Qwiy4Tm9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229910AbjGGBgp (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 21:36:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjGGBgn (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 21:36:43 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6572B2115 for <linux-kernel@vger.kernel.org>; Thu, 6 Jul 2023 18:36:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688693779; x=1720229779; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TX3zfSSKDYdQMJ/lhBfeXvJtyWDmev5GpUgBT8vYQ+w=; b=Qwiy4Tm94fhp/tANMqil7VWuQSE71JB3YMFKorbV58HyopeSkjJ1KwnM 4Bxc1XpsT+lZC5y2ghouq5oTJyjpVwtExXjnswhQNKpWcc+FEUluHF3ZW 0BYZY/VTplsLvEJxilzQCjiDt22YHPDLZte6dHLZHvjfwi3XuFRVg4R8r TT3+yeQHPSLiJ62nP5CdVim5HCntWUdnZh5p4kdSCAzwzGdiH8aWMapne uvChwHtZI/gVaakXab7GIpR6PGNaWOFs2tyB/Q6lh9hIh2GkLxlOQGyPh I3IkDFpp3Woh3FA+Lm1Ln2452S8venTgLvoGDF1/ARI3UKylZ+yzI0jn2 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10763"; a="429832329" X-IronPort-AV: E=Sophos;i="6.01,187,1684825200"; d="scan'208";a="429832329" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2023 18:35:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10763"; a="893791373" X-IronPort-AV: E=Sophos;i="6.01,187,1684825200"; d="scan'208";a="893791373" Received: from fengj-mobl.ccr.corp.intel.com (HELO tinazhan-desk1.www.tendawifi.com) ([10.254.210.124]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2023 18:35:15 -0700 From: Tina Zhang <tina.zhang@intel.com> To: Jason Gunthorpe <jgg@ziepe.ca>, Kevin Tian <kevin.tian@intel.com>, Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, Lu Baolu <baolu.lu@linux.intel.com>, Michael Shavit <mshavit@google.com> Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Tina Zhang <tina.zhang@intel.com> Subject: [RFC PATCH 6/6] mm: Deprecate pasid field Date: Fri, 7 Jul 2023 09:34:41 +0800 Message-Id: <20230707013441.365583-7-tina.zhang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230707013441.365583-1-tina.zhang@intel.com> References: <20230707013441.365583-1-tina.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770725615007498646?= X-GMAIL-MSGID: =?utf-8?q?1770725615007498646?= |
Series |
Share sva domain with all devices bound to a mm
|
|
Commit Message
Zhang, Tina
July 7, 2023, 1:34 a.m. UTC
Drop the pasid field, as all the information needed for sva domain
management has been moved to the newly added iommu_mm field.
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
---
mm/init-mm.c | 1 -
1 file changed, 1 deletion(-)
Comments
On Fri, Jul 07, 2023 at 09:34:41AM +0800, Tina Zhang wrote: > Drop the pasid field, as all the information needed for sva domain > management has been moved to the newly added iommu_mm field. > > Signed-off-by: Tina Zhang <tina.zhang@intel.com> > --- > mm/init-mm.c | 1 - > 1 file changed, 1 deletion(-) Shouldn't this remove the field from the mmu_struct as well?? Jason
> -----Original Message----- > From: Jason Gunthorpe <jgg@ziepe.ca> > Sent: Tuesday, July 11, 2023 1:29 AM > To: Zhang, Tina <tina.zhang@intel.com> > Cc: Tian, Kevin <kevin.tian@intel.com>; Joerg Roedel <joro@8bytes.org>; Will > Deacon <will@kernel.org>; Lu Baolu <baolu.lu@linux.intel.com>; Michael > Shavit <mshavit@google.com>; iommu@lists.linux.dev; linux- > kernel@vger.kernel.org > Subject: Re: [RFC PATCH 6/6] mm: Deprecate pasid field > > On Fri, Jul 07, 2023 at 09:34:41AM +0800, Tina Zhang wrote: > > Drop the pasid field, as all the information needed for sva domain > > management has been moved to the newly added iommu_mm field. > > > > Signed-off-by: Tina Zhang <tina.zhang@intel.com> > > --- > > mm/init-mm.c | 1 - > > 1 file changed, 1 deletion(-) > > Shouldn't this remove the field from the mmu_struct as well?? Oops! You're right 😊 Thanks, -Tina > > Jason
diff --git a/mm/init-mm.c b/mm/init-mm.c index c43b7d0347312..50824dd5a949a 100644 --- a/mm/init-mm.c +++ b/mm/init-mm.c @@ -43,7 +43,6 @@ struct mm_struct init_mm = { .user_ns = &init_user_ns, .cpu_bitmap = CPU_BITS_NONE, #ifdef CONFIG_IOMMU_SVA - .pasid = IOMMU_PASID_INVALID, .iommu_mm = &default_iommu_mm, #endif INIT_MM_CONTEXT(init_mm)