Message ID | 20230912125936.722348-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:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp670811vqx; Tue, 12 Sep 2023 13:46:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE2+mDuexvws/xXxcdfwsyvgGhzut1lH0FCPoamWhSL7RgMtUub3ojiGyBS9ve/2RSmniUd X-Received: by 2002:a05:6a20:3ca9:b0:145:47af:57d8 with SMTP id b41-20020a056a203ca900b0014547af57d8mr628598pzj.2.1694551568291; Tue, 12 Sep 2023 13:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694551568; cv=none; d=google.com; s=arc-20160816; b=u2T5gWVIWkvDcVYXdTEMG8aMyqLO+cA2CTnZjKdgXLmyQeU705+QASttprHodYXAAg 7fTIZ6Lr7joNnPpGzCC1OH90cOt5Im1iIJDgFJZELHw7GKdVGXvBD/GWikZbfVIuv2xw TyHMCR/vp+Na2scTG3eaUx8N6utaQW2WGFC8RRTUpU8nNTAuBGIv1oKvMJFTeMZD1dEz cfbkEWcejZYo5QzN8t/5Sx8pFa5/mWwQj+gilj2LnaXln3wZl4BMBfNnAqTX1JsRhgym qWd8JNr/Mmlwp3Lq6yjOkME86a0EOXTBZvvjzFqkE7Tr7Ej5rIF6F8GIVvAVPq1pF5OH EWfA== 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=f4ued0zf2rysKkOOLLWW3WpexywB8PzbB0mgR2mIrRQ=; fh=zW1GPeUL3MQGLvvmLmBmaazP2MzqJ1fOEi8He5Dzy3k=; b=j/OtcWyzBuYTJDCvRKpIRvUNXNQNXKE8iVDOXVbP5TWXecVZMG9XlPf62WFMzKytlf geqgwWwjHUt+rrbkka1XC9qkZgSzPrEvZml4G04RgoKdM903x2qm+lYTUM4lgigYzI19 U3QAILpFhqDAC/yCtQgv5N2Dj+NaIrXos1+2uBArlDUraVHlU/UuauEFCxhgifiChjmg df+s1zeaJhXtMU8yU4Eu3FCei2qwuBK1xhQFa5MhLngv1+zLcJL8zCy5qjaAbYORHUqz GpQQ7HB0pdkEoXUNheidemMrWN5RuM8yjG2f9FCfUFoTNFKFtlMVF+dnvKGlzRkU7oJe cpkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eyRM+Xql; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s21-20020a63af55000000b0055785a37147si8367600pgo.590.2023.09.12.13.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 13:46:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eyRM+Xql; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 5A6FE8108BD4; Tue, 12 Sep 2023 06:00:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235503AbjILNAb (ORCPT <rfc822;pwkd43@gmail.com> + 37 others); Tue, 12 Sep 2023 09:00:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235381AbjILNAI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Sep 2023 09:00:08 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3333910E5 for <linux-kernel@vger.kernel.org>; Tue, 12 Sep 2023 06:00:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694523603; x=1726059603; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sLavevVR2/ebOFF/RgWFP9jTGobd5rMYRFpptbLPi5Y=; b=eyRM+XqltNgo78jiDJN/IOcXYw1V3omhkGWofhekj8y3mqQNe8aVIQLP uuaJly77dr41SC9yyng47yELx9W8hmVLG6JWVjGhNx/Og3Sl2fjCr2vCg 4QgSQO4xz9nsoYyyoTcpQGELiUkfJHXujrv6JfnH5t5tza5xt2dZVP4eY x583Bx5kGHDZ7/bWvPyV00+UeYEULNSsv9O5WQtHfb9eRd1ZuJJJjOL7O ccEIJ1mdPma1ZDH5q8x+DrmOG1G1q79qS1oRNweoGBlTTLW0NtQeGGIwQ 7hz2/ThCLWWpjUAoQz90zPCZHVzSy6IjaaMWbV1+LHurFd6KZPK7W6hKF Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="378277348" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="378277348" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 06:00:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10831"; a="858799363" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="858799363" Received: from tongshi-mobl.ccr.corp.intel.com (HELO tinazhan-desk1.intel.com) ([10.255.28.214]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Sep 2023 06:00:00 -0700 From: Tina Zhang <tina.zhang@intel.com> To: Jason Gunthorpe <jgg@ziepe.ca>, Kevin Tian <kevin.tian@intel.com>, Lu Baolu <baolu.lu@linux.intel.com> Cc: Michael Shavit <mshavit@google.com>, Vasant Hegde <vasant.hegde@amd.com>, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Tina Zhang <tina.zhang@intel.com> Subject: [PATCH v4 6/6] mm: Deprecate pasid field Date: Tue, 12 Sep 2023 20:59:36 +0800 Message-Id: <20230912125936.722348-7-tina.zhang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230912125936.722348-1-tina.zhang@intel.com> References: <20230912125936.722348-1-tina.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 12 Sep 2023 06:00:55 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776866105135367782 X-GMAIL-MSGID: 1776866105135367782 |
Series |
Share sva domains with all devices bound to a mm
|
|
Commit Message
Zhang, Tina
Sept. 12, 2023, 12:59 p.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. Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Tina Zhang <tina.zhang@intel.com> --- include/linux/mm_types.h | 1 - mm/init-mm.c | 3 --- 2 files changed, 4 deletions(-)
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 9f4efed85f74..37f049c4b059 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -883,7 +883,6 @@ struct mm_struct { struct work_struct async_put_work; #ifdef CONFIG_IOMMU_SVA - u32 pasid; struct iommu_mm_data *iommu_mm; #endif #ifdef CONFIG_KSM diff --git a/mm/init-mm.c b/mm/init-mm.c index cfd367822cdd..24c809379274 100644 --- a/mm/init-mm.c +++ b/mm/init-mm.c @@ -44,9 +44,6 @@ struct mm_struct init_mm = { #endif .user_ns = &init_user_ns, .cpu_bitmap = CPU_BITS_NONE, -#ifdef CONFIG_IOMMU_SVA - .pasid = IOMMU_PASID_INVALID, -#endif INIT_MM_CONTEXT(init_mm) };