From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F7FF171BA for ; Tue, 12 Sep 2023 13:00:03 +0000 (UTC) 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="378277349" X-IronPort-AV: E=Sophos;i="6.02,139,1688454000"; d="scan'208";a="378277349" 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 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 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> Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Vasant Hegde 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 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) }; -- 2.34.1