Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4615656rwb; Tue, 8 Aug 2023 11:00:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG26083WzWAOhjA7X3oTqyEq6IJAbpVK1mMCl+2uDjViKsDUsVUfDzyCzOGXxdrLJxPZ+Xw X-Received: by 2002:a05:6a20:258a:b0:130:d5a:e40e with SMTP id k10-20020a056a20258a00b001300d5ae40emr308867pzd.7.1691517657568; Tue, 08 Aug 2023 11:00:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691517657; cv=none; d=google.com; s=arc-20160816; b=Mn/MfYmMGPBmljADdUFH3vEPt7K8Hktwxorpa4+VOtTW8lLrQP7+mnRdd9Zp3PIop2 tHfjw8COgWBWp/UA4oRPd2RHVBgR5OUDFBaEMYmG0GrItuwOJ7bJesqNtHbl1/snX84i YXGJzszsGoCgEX0F1W6i+hrfQbeEjvmZ+CpIr8QG7uYWYbFnbljWmiVLjiR3b/APw7WK vbr3/4yhZtwp0lpD+HSU9N0rBcrR/sQaKWGWPBRKzvNoRJOLGQhQchSSkY7rY+CsJVvb 8YzV6p2I3e0D9Fb/SJUjxz14ZaDrty8Na9lc/oVV5GFUvjGDdPjInkVozPdzYVTkLUyw A79w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i10-20020a639d0a000000b00564feb7e69dsi3129854pgd.788.2023.08.08.11.00.44; Tue, 08 Aug 2023 11:00:57 -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 S233364AbjHHQoe (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 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) }; -- 2.17.1