From patchwork Mon Sep 25 02:38:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Tina" X-Patchwork-Id: 144231 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1016562vqu; Sun, 24 Sep 2023 23:41:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEEBnkoIpD+FsU4F2wERHAdHmj3mC4BKjjudXxWQzW5cHyxS2nSXTSSfxdfBBDj3q2xQ2f1 X-Received: by 2002:a05:6a00:14c6:b0:690:d4fa:d43d with SMTP id w6-20020a056a0014c600b00690d4fad43dmr4870084pfu.6.1695624080236; Sun, 24 Sep 2023 23:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695624080; cv=none; d=google.com; s=arc-20160816; b=eGkeCVKoj2wv2CTot89oTGgsLN+VU6Zu6e6NcUDlkvAg8tRVXrxu4Yt03pNRCMoR+1 PhzwqChppmgYm4f+EvvTdeVk4inGlacyHUWEtXcXwTRpjURr7zFyQoJ9gUNnjTpC9zIo AAioXWgrQcYrY/BgJDGWjIKbCtYA6qJPMTqRZNRWJzNGJeok4pxReffnb0Lduo76lQcl aW5XsneE5Cr+wmQmxA8c7OVj+icIUKTNTU/ydc064bDGG/o/DfOVQtFfBYUlLQYtMR15 5WQcGnTjyZXFzd+s66kz1P81C2JRsjajPqm6HP4veZhIkPSW3w7skB1CSN3qNwIDzJQ4 l11g== 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 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id f20-20020a056a00229400b0068ffe38c5ddsi9807561pfe.223.2023.09.24.23.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Sep 2023 23:41:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; 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 2620:137:e000::3:3 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 067F08148B95; Sun, 24 Sep 2023 19:39:47 -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 S231874AbjIYCjb (ORCPT + 30 others); Sun, 24 Sep 2023 22:39:31 -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 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:47 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777990715584846431 X-GMAIL-MSGID: 1777990715584846431 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 Reviewed-by: Jason Gunthorpe --- 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) };