Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1113420rdh; Mon, 25 Sep 2023 03:51:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0WW/YjROVpjmcJI70ziIe/Xs4FQ5ryUqIXvuYZ9aMZM17q/ogD/RclMk43HzM8NWLFXkw X-Received: by 2002:a05:6a20:7d94:b0:14d:7130:7bb3 with SMTP id v20-20020a056a207d9400b0014d71307bb3mr3959278pzj.13.1695639117551; Mon, 25 Sep 2023 03:51:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695639117; cv=none; d=google.com; s=arc-20160816; b=AeFDgLgV4EapTKJN1Yc2USigebmtJKSzsy/zBh3DiwJq6EGfP8a3jQIzmfqeYjwx3v AYQHWfXXPLJapDp+Rdgb6oiwjbYM2l8CJxQQMxZoN6Cw5ojx12F1ybkcpJoE8r+pDp/+ dNh7aTIQJ2sYaBQ+gBexf6dq/+IzJAOIMQWrtYOW4HbHfG6Z7bMmg5TJcXLjooeZUufO x27GJ4BQITUQ8SUDLh2ij+Me3zxnAubSOUjN/1pmv4vRwKROe7xsJ892jPRvcuCCXOve DWBtKmP83sMUBYy+6+Z9tOpM/9iEPPJaItJdOVtwGN+3Qqec7kXZgmzN+qI//ibLhKBY IMEA== 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=0uUJykV6ytqQeqG2l8lqgN02Q0K2p1CiXhjMTkolj1IkykWCQpBJhgQtzgZ/q3+/w0 2VIslM6iBdVQlowjbze0rDzDlgvT6jzQt5N4iU0bkXknd+tL0ZkNSJ8M82h4r5zIvsGd QUDs20/FAZXhgyNC1td6/PwBwJWWJHlynbNu6DU2q/sOT7p+FryuQ0nR0B5GihH+4SB4 8c6aQev4TjzkbdWEtjkynFjPzdtsnohNz3HioxA0coLE88MHM8tBdbRyzCEBbbzqCTQ6 q6F05Npldytps/jBmzJYRxdEUOHiZfVyj5Yac/tIqxt/KTZniHoCye/I0ZIhKO0TCYRF Rw5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BRrIDFg5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f4-20020a170902684400b001befd0512ecsi9130324pln.314.2023.09.25.03.51.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 03:51:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BRrIDFg5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 87B448148B84; Sun, 24 Sep 2023 19:39:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231952AbjIYCja (ORCPT + 99 others); Sun, 24 Sep 2023 22:39:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232019AbjIYCjK (ORCPT ); Sun, 24 Sep 2023 22:39:10 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 426DDE49 for ; Sun, 24 Sep 2023 19:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695609526; x=1727145526; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sLavevVR2/ebOFF/RgWFP9jTGobd5rMYRFpptbLPi5Y=; b=BRrIDFg58VLaiRi3KRErz4WQficzAVbR1SBq9HG8pj7rpmbpNDGF7izo v2/NBMd3wYKNZcV1yqxpqieo8Yw5sTR+4Ne9tSXMzkUPdSTpkj7kqy951 K02KjbK2SPi8pDPA8rOOBy8uQlH1DZ4VuqjRnhYhgz4FbYfpmczGsdEzb 1ECLccm86rBO9E+Qhu9sug3Y26flP8x0llSDNZRC/ILm8+X+WXd2/a+Kx kRpyq5A3wITFe43gpLlmJ/rR0yFMWk/TlcRa2atWA52ZDqZ9xLga28cqH ae0TYgyrv5lv17Zm6NKmrn57MRQcSo6b6p7U7FW3pneYmthZj3Nq0mJzo Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="360534626" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="360534626" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2023 19:38:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="777505094" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="777505094" Received: from jingxues-mobl1.ccr.corp.intel.com (HELO tinazhan-desk1.intel.com) ([10.254.214.78]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2023 19:38:43 -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 v5 6/6] mm: Deprecate pasid field Date: Mon, 25 Sep 2023 10:38:13 +0800 Message-Id: <20230925023813.575016-7-tina.zhang@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230925023813.575016-1-tina.zhang@intel.com> References: <20230925023813.575016-1-tina.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sun, 24 Sep 2023 19:39:35 -0700 (PDT) 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