Message ID | 20231012030112.82270-6-tina.zhang@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp949382vqb; Wed, 11 Oct 2023 20:02:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkQXfqolYmKMbupe6ejZnxcHVhrwlmN48DjnoYCjuZlWOjkpf6FPCJYJJ5Chw28ZfRo7SH X-Received: by 2002:a05:6808:181a:b0:3a9:efde:a022 with SMTP id bh26-20020a056808181a00b003a9efdea022mr28618612oib.5.1697079748336; Wed, 11 Oct 2023 20:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697079748; cv=none; d=google.com; s=arc-20160816; b=pA0iz/KKORSjaO2nz1kUDqQ+mNf+hAUJt55FvAajPp/foiHks44LCQfh5sqMkq7bQT veXYXqQ7iLv4ksUCU8d6IlcdpsZ02cLmqLWWLlnDOtzN5U7pi9f/9+QpA1dPWepFe46l Xs7PGsBPgJ0U5cLbklQIn3bG06AX7IQrmPNZMeto3338qnXZ0qA/X8UFa8RzwtO6+sUY 7P0QUkpOSccK6S0ybSFsulYUxCfY8lCcYkxsAZ9Bs799Lai5nDjYqKERq5PMbOWTO54b XXHJ1ZUGUqd1bxgMRHzr4pi+TSz+anjtAgJzqNgujdZWogFdg18WZChH1UAX0deFrq7u 9Vkg== 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=tFmNgJLrbbprZYS9qbPoRomUA/KrST8LSFRT//HpShk=; b=HsQ0sERM6MROeE2W7WQfzWLCIDR8SKlqgDeSkBTrX231K4IRlLHo48JUsGlfQmg97I /CAQ2O060fOyRbjcZk/xtC7U6hyDPw/fE2/mFjJrXtGtGErnZzttvGHCHEGbdsu4HYeR Sra0XUk643T48LW927ZIpxFsAiQiQs0DO4bmZxwDAf8mC0YqWCMWCDI2D6gBrQSIHcEx cug9CYIl6G0kISnTn65B3T/qHMcWyH8VXXt80KfzJn0O3YNWHRrxFqPBjRjvYQgasuVr sJ+gLp882gx8bKWhPrJVLqhFGKcwod99KQ3Dr71S5FkvIJqvjE8UKwO6/PVArCf05g6P wnYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RagMMJOR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id a70-20020a639049000000b00565ecd01399si1144308pge.783.2023.10.11.20.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 20:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RagMMJOR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id BE26F8030D05; Wed, 11 Oct 2023 20:02:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376835AbjJLDB7 (ORCPT <rfc822;kartikey406@gmail.com> + 18 others); Wed, 11 Oct 2023 23:01:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235296AbjJLDBo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 11 Oct 2023 23:01:44 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81084CC for <linux-kernel@vger.kernel.org>; Wed, 11 Oct 2023 20:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697079697; x=1728615697; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/TKSJz2uqhYSu+kqp+Wq9KnZNxzR/1bl8TV8gHaytgw=; b=RagMMJORw7AFTKjHbU0sHTDGtfkX3cKIEtggwQXU+c8Whz4RBvBZexBl SbYrYG3TqlscKMjE+cAJ4bRaoHe/gmTu8ViLfuEi+amIYsbDTxpCPkMG+ Aq3GcDpKUokbCxiolHN4B7DV9s0V5uypcFtOvXqZzuMMUZTL0/0pUV8rH acklAy3Wl6el2hFnkhjlsRubRPGMDa3sRTY8Qc9QAJmyiZOFFdfBj2r5r kW7eFP9iby4JTu3sW65utog2f47oyyQ1YIfq9MViVYEtzKttGhI5KxEmZ tJ/lUKEKjL57ZUEuGHO+D1IAmrFI0Juujx5q131eupqYRugEaOORCvXgN Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="6371548" X-IronPort-AV: E=Sophos;i="6.03,217,1694761200"; d="scan'208";a="6371548" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2023 20:01:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10860"; a="730736541" X-IronPort-AV: E=Sophos;i="6.03,217,1694761200"; d="scan'208";a="730736541" Received: from sqa-gate.sh.intel.com (HELO spr-2s5.tsp.org) ([10.239.48.212]) by orsmga006.jf.intel.com with ESMTP; 11 Oct 2023 20:01:33 -0700 From: Tina Zhang <tina.zhang@intel.com> To: Jason Gunthorpe <jgg@ziepe.ca>, Kevin Tian <kevin.tian@intel.com>, Lu Baolu <baolu.lu@linux.intel.com> Cc: Michael Shavit <mshavit@google.com>, Vasant Hegde <vasant.hegde@amd.com>, "Nicolin Chen ^C-cc=iommu @ lists . linux . dev" <nicolinc@nvidia.com>, linux-kernel@vger.kernel.org, Tina Zhang <tina.zhang@intel.com>, Jason Gunthorpe <jgg@nvidia.com> Subject: [PATCH v7 5/5] mm: Deprecate pasid field Date: Thu, 12 Oct 2023 11:01:12 +0800 Message-Id: <20231012030112.82270-6-tina.zhang@intel.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231012030112.82270-1-tina.zhang@intel.com> References: <20231012030112.82270-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 howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 11 Oct 2023 20:02:25 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779517094194607814 X-GMAIL-MSGID: 1779517094194607814 |
Series |
Share sva domains with all devices bound to a mm
|
|
Commit Message
Zhang, Tina
Oct. 12, 2023, 3:01 a.m. UTC
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 <baolu.lu@linux.intel.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Tina Zhang <tina.zhang@intel.com> --- 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) };