From nobody Tue Feb 10 04:12:44 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7D095C71153 for ; Tue, 5 Sep 2023 00:10:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242935AbjIEAKn (ORCPT ); Mon, 4 Sep 2023 20:10:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242863AbjIEAKf (ORCPT ); Mon, 4 Sep 2023 20:10:35 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF09910F9 for ; Mon, 4 Sep 2023 17:10:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693872624; x=1725408624; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=68L83X6aiWQ0u3NC5lLGeeqieoz7SK8pWWYp6gdXpkU=; b=YVj6gBTaLTRnvw3QEHmQAhHrYYwVGve4qRVh19CUyP0ZEeRp/N2/o/qB O0ddxis/U3QPWvGfXV2GYsrcJ+tMhc6PIfy91DwJfFn4tz5dxXUCMSGIy x4jIUyVlNskGvRpDkFHvSI9r+5nzRw2Gf20BpeEAJejI9E2SISR8uQYgN 0L25XFmyvOTb3xfQLyBSKpLEKVUtF6uuo1tpBZIHVg83Eh1jct8fXme58 Burf7TAUafcl4zSzpwpX5//+B7kiP7q/D0Hnv6YXqqOpu1fiw6YqbRgB1 RN0JkbFoyv1T4ziuaoXF5Vx1XgVbdt5/+MOb6B2CINFa+43bA/LrxXzNC w==; X-IronPort-AV: E=McAfee;i="6600,9927,10823"; a="463039990" X-IronPort-AV: E=Sophos;i="6.02,227,1688454000"; d="scan'208";a="463039990" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Sep 2023 17:10:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10823"; a="884125154" X-IronPort-AV: E=Sophos;i="6.02,227,1688454000"; d="scan'208";a="884125154" Received: from kechen-optiplex-9020.bj.intel.com ([10.238.157.62]) by fmsmga001.fm.intel.com with ESMTP; 04 Sep 2023 17:09:59 -0700 From: Tina Zhang To: Jason Gunthorpe , Kevin Tian , Lu Baolu Cc: Michael Shavit , Vasant Hegde , iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Tina Zhang Subject: [PATCH v3 6/6] mm: Deprecate pasid field Date: Tue, 5 Sep 2023 08:09:30 +0800 Message-Id: <20230905000930.24515-7-tina.zhang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230905000930.24515-1-tina.zhang@intel.com> References: <20230905000930.24515-1-tina.zhang@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 Signed-off-by: Tina Zhang --- 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 b486f521afee..fb0e4416d9d7 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -808,7 +808,6 @@ struct mm_struct { struct work_struct async_put_work; =20 #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 efa97b57acfd..69719291463e 100644 --- a/mm/init-mm.c +++ b/mm/init-mm.c @@ -42,9 +42,6 @@ struct mm_struct init_mm =3D { #endif .user_ns =3D &init_user_ns, .cpu_bitmap =3D CPU_BITS_NONE, -#ifdef CONFIG_IOMMU_SVA - .pasid =3D IOMMU_PASID_INVALID, -#endif INIT_MM_CONTEXT(init_mm) }; =20 --=20 2.17.1