Message ID | 20231027000525.1278806-7-tina.zhang@intel.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp252468vqb; Thu, 26 Oct 2023 17:08:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9PVJxU1oj5FsG1v19b1chbhHLBxIhoRiSzwc7I7B+z+zQN1rVzUDi6EkLApGM8Nm9CT3S X-Received: by 2002:a1f:7cc8:0:b0:4a8:fbcf:437e with SMTP id x191-20020a1f7cc8000000b004a8fbcf437emr1486799vkc.4.1698365320263; Thu, 26 Oct 2023 17:08:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698365320; cv=none; d=google.com; s=arc-20160816; b=TqkPop64inV51cKukHxJ0h80/ayKNg8oYu9ggggU3p3G8Z1DoTIH98qgWFsk05sw17 eh/AjqTwHJIYK9KLyYPr++EPauGbZHGSx43Ii0n749p5SVyawHq0Ry9PoBauesJtCKx+ j8IQLGToLial++qmw/UC+WeDe1SbQpqBGr4IzpTiwIfzrjjmBIJxZqdqzqAgvzvXyiO+ 2OVAJiv1doS/vvC5+w51LQUpvZ24CtsrzlWqggfIRbqvKJllAHKRxMs0o58pGNgw76cH icsbzjFlf4qYZ9F2RL5EAHtNWw0kzTSB8EdFODJr+vcB/wbyHxj6G9HrTSsmXbsSEVA4 94Xw== 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=ry8oxbsgNhf1Uysxv1R6XiX8Oiw6071Uz5/I0jGnWVY=; fh=dJBxdn+RXcUABM1aUIOqfrsndRxIHilofn8/gNUoPfs=; b=MAvFq8toiP/57KoPF8sdH9rKyuVvhk9NRIuZdepAXp1at+AlfkV1p8cliwgcKQSHxI v8mAWY+PZfJIdbCmC56jtV5p78m98pTzfAF9tt21+r5hN/c92bW+zokcjU8tQSdzKwuS l1snXnMeuplnsTprq1v4k8+h0Jrgf+ReAfH2tTP6/8jy3QpKhJcy3B09xpla0B8xzEYr Ne8leBWhul6b1ua/NXgdUdht/BODyaptV5pOhZrca9DDhWl3qY7+9NvW+4w1h9gvlQXR K6cdKa73GufXMd/pBwoot2iX81tSb3G0GBhIt0xky2pf56qNWq29LhvunJKQIYAgisTZ 6Iqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="bD0p7/XJ"; 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 v13-20020a81a54d000000b0059eae2bc317si740569ywg.217.2023.10.26.17.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 17:08:40 -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="bD0p7/XJ"; 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 2031B801E125; Thu, 26 Oct 2023 17:08:18 -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 S229503AbjJ0AIE (ORCPT <rfc822;aposhian.dev@gmail.com> + 26 others); Thu, 26 Oct 2023 20:08:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235015AbjJ0AGb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 26 Oct 2023 20:06:31 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45077D5A for <linux-kernel@vger.kernel.org>; Thu, 26 Oct 2023 17:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698365182; x=1729901182; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MTHNq7mq1BoG4uUzxjqrRuUzMIjd1diRWhgrOELvF9E=; b=bD0p7/XJbfe3M1jN9kRvq3vLBW74QKZvHRtNMXhefQBFNHOycfwdqI6q DWVWjr7i7or/Sb5mL/KCtlUPzq5A4uEoJZccmle63u/scRTE4A1Vv/avd PxEZVVisNobFqJFFT4NWcRouH75z6YB2zxW9IFomIOvVbSKiNr2Y9I3Mr vOq6pvGvB7QYrTledZ8NkNZpLkTGJ7H8auTqBxTPbBcEaMAGPsdJ47Dab KRPmL1t8Ca477BaAu+lsd5xmP9JGRhnZrO9tGPZ0x+DUpMh76gR4U5how TZy0zuj5KIV3aCQhtYV+H5SJv9sXNwYVcJLspJf4TlUjk+MpTePavFvTt w==; X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="390536057" X-IronPort-AV: E=Sophos;i="6.03,255,1694761200"; d="scan'208";a="390536057" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Oct 2023 17:06:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10875"; a="883017524" X-IronPort-AV: E=Sophos;i="6.03,255,1694761200"; d="scan'208";a="883017524" Received: from sqa-gate.sh.intel.com (HELO spr-2s5.tsp.org) ([10.239.48.212]) by orsmga004.jf.intel.com with ESMTP; 26 Oct 2023 17:06:18 -0700 From: Tina Zhang <tina.zhang@intel.com> To: iommu@lists.linux.dev, linux-kernel@vger.kernel.org Cc: David Woodhouse <dwmw2@infradead.org>, Lu Baolu <baolu.lu@linux.intel.com>, Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Jason Gunthorpe <jgg@ziepe.ca>, Kevin Tian <kevin.tian@intel.com>, Nicolin Chen <nicolinc@nvidia.com>, Michael Shavit <mshavit@google.com>, Vasant Hegde <vasant.hegde@amd.com>, Tina Zhang <tina.zhang@intel.com>, Jason Gunthorpe <jgg@nvidia.com> Subject: [PATCH v10 6/6] mm: Deprecate pasid field Date: Fri, 27 Oct 2023 08:05:25 +0800 Message-Id: <20231027000525.1278806-7-tina.zhang@intel.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231027000525.1278806-1-tina.zhang@intel.com> References: <20231027000525.1278806-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]); Thu, 26 Oct 2023 17:08:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780865114505686798 X-GMAIL-MSGID: 1780865114505686798 |
Series |
Share sva domains with all devices bound to a mm
|
|
Commit Message
Zhang, Tina
Oct. 27, 2023, 12:05 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> Signed-off-by: Jason Gunthorpe <jgg@nvidia.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 2dbf18e26c5a..5fb881b4758c 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_MM_DATA - 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 c52dc2740a3d..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_MM_DATA - .pasid = IOMMU_PASID_INVALID, -#endif INIT_MM_CONTEXT(init_mm) };