From patchwork Tue Aug 8 07:49:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Tina" X-Patchwork-Id: 132578 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2277619vqr; Tue, 8 Aug 2023 10:26:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESgXCyvWXcFK5x9yT9EH2mJvl7/pg6YZBN+6h9dI+HM8rx9xjEYMz+vxIwRECMEAVbCmcY X-Received: by 2002:a05:6a21:3390:b0:140:a6ec:b56a with SMTP id yy16-20020a056a21339000b00140a6ecb56amr188509pzb.3.1691515609075; Tue, 08 Aug 2023 10:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691515609; cv=none; d=google.com; s=arc-20160816; b=T/8Bboa+Kve4DtFzH+cejjEO7FF5WaFD0E5SD34nG76TP9OKlNEDRLgxE+iVQ56lXA 6GjIizrArU1DS92ZbXLo4qyyI60nFqb0JrpTjLy6fvHM6f6gS50Uz6+6o/I5oQuWuCPx RSo+VKYPyEAjBZQFfJJhs3tZ3rDI4xPl1nGygnqSatoG3bmTqOIA1tkI8T0QEXIzARRI kOIIqwCmy8pq+lvMy6wrL+mBZwDmSffeGvyTAM9xxg2mdO7B8VVZp0KpGuto/yLTV+uC LIj+v1PXNWFg76aBrRORnAjIdQwBY2vXochQ1VNPo4DuW3/LBlZSpn9zFZudcODrV9G/ RkjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=EA6CGSY4cqRnEOjFp5kgQRSqBh30K2OQuevE3excNMw=; fh=/lTHmTEAhz5c6hgBRAPnmJsxw5vDTKZT1TYa5ynR+LA=; b=KvfJ49XoUHlnR61vrKZw5uYk+kuJOnlkVlPVnuALnDjYXLB2dV4isBHOK1U0RRHksL +tG3QaJkbJ/PQbnWSDjQGbcHWr65/KYZ6/gzyPh2ZAnT/m+YtFWSUlisboadGtcR/gej AOMO62+N0XLUscZxfonxwpbMtYwOm4U6vF8YTl92rrNpKmxs9OHIbo4lrHLBNVqJDkwm 8sqOm5ShVqcwVZKNL18S0wyu2MvmTNrZEa61zNqbLEm/bvEMBaOHG6TsuziEIeu8713p XGgIYIoqkFqDK0Fc6mZ2Rl3UX0A6WEWe9BTNGXFJSR7EW9VdLs2L96VfBDow9X4XGtWm 4cgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A1Rd1L7b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fb36-20020a056a002da400b00686ae67b95bsi7626922pfb.225.2023.08.08.10.26.36; Tue, 08 Aug 2023 10:26:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=A1Rd1L7b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233365AbjHHQoe (ORCPT + 99 others); Tue, 8 Aug 2023 12:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232829AbjHHQnk (ORCPT ); Tue, 8 Aug 2023 12:43:40 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3B3D91A3 for ; Tue, 8 Aug 2023 08:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691510153; x=1723046153; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=G2jQdPpYRftTNVodh55koMoZtJhLjKxrlqOJq+ORzpU=; b=A1Rd1L7bR1BPzaq/aBMbePLUqBcwgb3AkeaYIqKCAX8A3uybvplC2HuT RIywbjKTXRyCMphmRLSF3Qb/OcrmplT7cWt1Z0sPPCVroZD32211E8wfQ vc1+SbtS9e6pQKh3wfuxa4Jb6EDqrbCV9IJ6k/QEBWISiMgT5IKt/hH3f qrulmnzymJ3K7NEH5rQ+f9pebtozqANSHqQCH9O4MFvbcZyUf34lidwYi DR/E4OkYXjlxDSE/Ro1gDGKkbyF4o8D+xiwbbaN77CSl3WrC4Krndql24 cQxc33VHT3VtaJEnFvHcJOzfw7nFnq4HtQwCYRD/JAElMTBWZBqs6QNxM g==; X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="437078719" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="437078719" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Aug 2023 00:50:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10795"; a="681146448" X-IronPort-AV: E=Sophos;i="6.01,263,1684825200"; d="scan'208";a="681146448" Received: from kechen-optiplex-9020.bj.intel.com ([10.238.156.126]) by orsmga003.jf.intel.com with ESMTP; 08 Aug 2023 00:50:05 -0700 From: Tina Zhang To: Jason Gunthorpe , Kevin Tian , Lu Baolu , Michael Shavit Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Tina Zhang Subject: [PATCH 5/5] mm: Deprecate pasid field Date: Tue, 8 Aug 2023 15:49:44 +0800 Message-Id: <20230808074944.7825-6-tina.zhang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230808074944.7825-1-tina.zhang@intel.com> References: <20230808074944.7825-1-tina.zhang@intel.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773682671229650971 X-GMAIL-MSGID: 1773682671229650971 Drop the pasid field, as all the information needed for sva domain management has been moved to the newly added iommu_mm field. 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 3fd65b7537f0..6cb5cc53c480 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -808,7 +808,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 efa97b57acfd..69719291463e 100644 --- a/mm/init-mm.c +++ b/mm/init-mm.c @@ -42,9 +42,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) };