From patchwork Tue Oct 17 00:48:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Tina" X-Patchwork-Id: 153842 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp3818247vqb; Mon, 16 Oct 2023 17:49:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4n1d99+Otutl4G2Yfp4ASNE8CxFdyVhGTo6dDJ7v5s0ZOYRyPYqsv4PYtNumyF2u9x2sv X-Received: by 2002:a17:90b:1d81:b0:27d:6009:36c7 with SMTP id pf1-20020a17090b1d8100b0027d600936c7mr817010pjb.4.1697503747852; Mon, 16 Oct 2023 17:49:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697503747; cv=none; d=google.com; s=arc-20160816; b=jKo9fPHDCGYe+PGhazUt2EV76XNb7mbBDT7ASmKnT9m7gDqXuEFlEcYU+zP4leP/vA wKGaWw6txowAWY0NXHLtSZq8wnRCILlx58HDxEaWBPFGC6l+/PICS8IhGiW7dz/c/T2Q 9lVeEtpWzK5fWnlbeSekF7lbV36PdMrfD4/pzJ05qiTKQTKlf2i03bnWQ9oFfS663ke5 8WDrpARATV1846yP1Snkm6vPV+C6tX/SjvtlCHdhZX9FMTKqHmKeddUAKxZ0e2+l4jeT 0GgX0X48I5yJxW7zSnuFO30qLw6sTSjZIYz/z4jCP68e9IkgKFcKgebFpLGwV3fXeRyw kFGQ== 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=nxJodcD0A/BVNjC5Ms8LFReraPUssM65AtJgITza2eY=; fh=dJBxdn+RXcUABM1aUIOqfrsndRxIHilofn8/gNUoPfs=; b=e3ZZkfx+52ldQsSH1IufCTToJfJd3CcF9BWsGsTVaWOw4rEINWrq/B9JOlg87u6+b1 qVFiv6/j4QZYAsVDPl88cpvKbhPpkebOrn2mdlyrEKXRd+E5EYLNYFleL65SdSUiporv wz4+sQlLM8ash+TvBTToPIuUe8h+1csnOZ5Rng4WE5jgkmdjZEJOYjgY31mFdMjIuUUj /29T9KlvFW2PKoTif4L6gp19ijhRh6A92MHJ0wK95vHw3dcL1c/37/YoMmKopbmI3y2E H1yya/ruiUa5ZTsCqnkegyOVVX+kBciwHyawJlqGaRdDkF1CSmWFIr0+SdtSutA+Ll86 P/Xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Wb2YZt8B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id be3-20020a656e43000000b005789f94cd34si525492pgb.636.2023.10.16.17.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 17:49:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Wb2YZt8B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 50F7C80D7E48; Mon, 16 Oct 2023 17:49:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234357AbjJQAtD (ORCPT + 18 others); Mon, 16 Oct 2023 20:49:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234311AbjJQAsz (ORCPT ); Mon, 16 Oct 2023 20:48:55 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73AA2134 for ; Mon, 16 Oct 2023 17:48:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697503730; x=1729039730; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/TKSJz2uqhYSu+kqp+Wq9KnZNxzR/1bl8TV8gHaytgw=; b=Wb2YZt8B8HaguTNwmBa6Ic4iiQcoaCDSsUevmElbIJolLKzx+aGIozbj QB4HGJFLNhfyJaV2PhXqnzYIn+ZeGamK57BnqGTbt8mOIpn0QOBPdydPJ aoyvB6b301C7DoZ9Aru49J+1vMtcVhV0fx4J11VdQnHsQl7c4kdafti2g yp7c4cR5itDfg69RYvbOdaBTxb5kPVhcK9t+0Dk9Ist886N/DRyJOxRl5 ZtTti7f2pzEDAU/4bPkrW5Ca26mthuYC5irdoKdnQphJ/1ibaLwtQqDDe 7u+gTt+rjB2vWfyYqo2ebmfG9tksQrngYAJMzi2pW8GtP8sIkYrRJA3Wb Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="382893373" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="382893373" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 17:48:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10865"; a="705793803" X-IronPort-AV: E=Sophos;i="6.03,230,1694761200"; d="scan'208";a="705793803" Received: from sqa-gate.sh.intel.com (HELO spr-2s5.tsp.org) ([10.239.48.212]) by orsmga003.jf.intel.com with ESMTP; 16 Oct 2023 17:48:46 -0700 From: Tina Zhang To: iommu@lists.linux.dev, linux-kernel@vger.kernel.org Cc: David Woodhouse , Lu Baolu , Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , Kevin Tian , Nicolin Chen , Michael Shavit , Vasant Hegde , Tina Zhang , Jason Gunthorpe Subject: [PATCH v8 5/5] mm: Deprecate pasid field Date: Tue, 17 Oct 2023 08:48:02 +0800 Message-Id: <20231017004802.109618-6-tina.zhang@intel.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231017004802.109618-1-tina.zhang@intel.com> References: <20231017004802.109618-1-tina.zhang@intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Mon, 16 Oct 2023 17:49:07 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779961689881669667 X-GMAIL-MSGID: 1779961689881669667 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 Reviewed-by: Jason Gunthorpe 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) };