From nobody Fri Dec 19 12:29:43 2025 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 D48ACC83F17 for ; Sun, 27 Aug 2023 08:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230394AbjH0IpU (ORCPT ); Sun, 27 Aug 2023 04:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230265AbjH0Ioc (ORCPT ); Sun, 27 Aug 2023 04:44:32 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB490BF for ; Sun, 27 Aug 2023 01:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693125871; x=1724661871; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0/clqt9D3Bd4HIrGF9A8iz0CPvepE+kYUo7cjHUhPfg=; b=Zx3JCRN9JnUj4C/uH1zpPxYRFxGjAeoMyNOGgYlA051whMrQlrmk+Sss JxXz8ur3IF6Sbbp/kR62jVuREO7DUtZKXAQTOYo3/aJFpeNKwTmDgiY/C EY658lfmRZo53Kzwn6oKknCrZNdZp7BSgxznyhhwVUV5Dk4Nd7vwflhtu PlssX7uBWkNxx0SZsDYnCMXww9j+O+b4JMpPnR9RZyNkQ02xIbQmp4mxk Jhgc1KdcuWlIhwN4yOiz9gqHtrDMCEzZ72ooVhpAtV5lx7ZvJqlBYer1t n1HYQk0XxpZz92tE/K7SnTa3gUOk05NwMUz5NkN8HY3oBeXZO/so1wxMv g==; X-IronPort-AV: E=McAfee;i="6600,9927,10814"; a="359919944" X-IronPort-AV: E=Sophos;i="6.02,204,1688454000"; d="scan'208";a="359919944" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2023 01:44:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10814"; a="984561832" X-IronPort-AV: E=Sophos;i="6.02,204,1688454000"; d="scan'208";a="984561832" Received: from yzhu-ivm3.ccr.corp.intel.com (HELO tinazhan-desk1.intel.com) ([10.254.213.44]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2023 01:44:28 -0700 From: Tina Zhang To: Jason Gunthorpe , Kevin Tian , Lu Baolu , Michael Shavit Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Tina Zhang Subject: [PATCH v2 5/5] mm: Deprecate pasid field Date: Sun, 27 Aug 2023 16:44:01 +0800 Message-Id: <20230827084401.819852-6-tina.zhang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230827084401.819852-1-tina.zhang@intel.com> References: <20230827084401.819852-1-tina.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Signed-off-by: Tina Zhang Reviewed-by: Lu Baolu --- 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 3fd65b7537f0e..6cb5cc53c4803 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 efa97b57acfd8..69719291463ed 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.34.1