From patchwork Wed Oct 18 05:06:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Tina" X-Patchwork-Id: 154659 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4570843vqb; Tue, 17 Oct 2023 22:07:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHVZrThTXw+GwxfYA9ZekYsur8Tdg+3NQjkA2HzBEF/CE3sC9DhANx4HjDrZ9h4C7Adyk7H X-Received: by 2002:a17:903:334c:b0:1c7:5581:f9c with SMTP id ka12-20020a170903334c00b001c755810f9cmr4319824plb.0.1697605667309; Tue, 17 Oct 2023 22:07:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697605667; cv=none; d=google.com; s=arc-20160816; b=GW8FOUrMxTxZsMOUKM0t61Tb0BEvu3U4xxsnRgdgJfzwhU/7P+r9/oZ3tlyjamzm69 eG/oi131eD5CN1hkh/1pFD7UdZkschAD3x+Poid1l4abcKYKpvbJJpZz2/3IZ0jtfntF 4UaPUnlXyPtQ4ywJk/cWz83Q9n2l712Su94Q7uMunhHrmtcQuHDQgH5gYv9rGiu2V7q3 s9pyV5ZpVmOH8MQo9RWjnvIo50406Rj1JnKqJoA589t1AQ2X6eRrAgZuvdIMCxZZAUaF oFtpUfPx8a8UqKgSijl/XfAW7zaNuEpw7f6+u25QcmSg2Bem+qSs27fGokEXZWyXPi4O hT4w== 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=EjLA1PUWz3z3QEC2T142XwfNnWoKadCD5d4Q5VwH5US0JFHlhi6dMdHAaJ/W925+y1 WF7EgiSdcqu+n/uevTgaKqww3AwxAN3t+m4wcQwlze390CGYwjD1uVu5ZfSgl43xBLhe toxt5A/p3FkwnX9o8XTtp21R2r63Zb9B9GJwaVgzap7YLW/KgRJR4INSdccDCeAreHvK bqB3gIXWgpEgnIa2lffpdvd+9ATtKz2SoreK+hSvjW79Dzv3+eXcKN6Z2t+Sm0cqWuxc WjRw0OjugwMQ66Mk7LnJzVA1zGmtLJDLZI8WU4Jm9uOsPDZK0e4KwqxMi6+i5YBD0eK/ ngQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NeSSJPoy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id k14-20020a170902c40e00b001ca3cd7ead6si3574849plk.452.2023.10.17.22.07.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 22:07:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=NeSSJPoy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 5CEF28025888; Tue, 17 Oct 2023 22:07:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229550AbjJRFHf (ORCPT + 23 others); Wed, 18 Oct 2023 01:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229612AbjJRFHX (ORCPT ); Wed, 18 Oct 2023 01:07:23 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB1EE12E for ; Tue, 17 Oct 2023 22:07:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697605638; x=1729141638; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/TKSJz2uqhYSu+kqp+Wq9KnZNxzR/1bl8TV8gHaytgw=; b=NeSSJPoygpoqFzxY+pld34MuEcFOUqPuL63AGcD8q1nwEfaqo1wBChVi KtvRABzF3AklAZP8lnpEIWrj0mqBk5Tg1BFGwukbsuG+Fb4OFyJzeQQny n66orOJyzIb+ukf9o5lM8KrYBLRNZEvgot2qmoQhY8p66mjG4zI949e0V fw6s4rTEB9Orsr6K+LlqdrBRjxZFANV1+tn1S4nc3lBQe4sHgO2eD6cQt nPbGJv22WG7zreJ0gF/txsViHMoN7UREG1wXYJHt1Srqd3aT4tmr1xDOP IPj331YcZXW+G69n7GpUbVG1HaWFjB4C23oXIiKeeoI7noxyzAx9J/jCt Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="388802468" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="388802468" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Oct 2023 22:07:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="822288667" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="822288667" Received: from sqa-gate.sh.intel.com (HELO spr-2s5.tsp.org) ([10.239.48.212]) by fmsmga008.fm.intel.com with ESMTP; 17 Oct 2023 22:07:15 -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 v9 5/5] mm: Deprecate pasid field Date: Wed, 18 Oct 2023 13:06:40 +0800 Message-Id: <20231018050640.24936-6-tina.zhang@intel.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231018050640.24936-1-tina.zhang@intel.com> References: <20231018050640.24936-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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 22:07:45 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780068560165343396 X-GMAIL-MSGID: 1780068560165343396 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) };