Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2993989rdb; Wed, 15 Nov 2023 17:55:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEHE47t8gvQUp6DvsSiw0jyDubRCSRkyyRGGIPc2hU/GynkvcoG+wSgudmQs87dX37/yr2 X-Received: by 2002:a9d:6e08:0:b0:6d6:471e:1eda with SMTP id e8-20020a9d6e08000000b006d6471e1edamr8702459otr.4.1700099723588; Wed, 15 Nov 2023 17:55:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700099723; cv=none; d=google.com; s=arc-20160816; b=b+GWX0VK7KXIXEogMP74izR6XyANZgIXB/1AbngDThlP1C/zs9XVyn0zqXeor30Du+ ObFLU+Bco+mQ5Kg3lrv3JbLvXLDCtasLZZKIM92rC3P1Z22AKPqNcBbTNQsnpqur6AtK R6+A1yOjlxCaClX6onb6UvDRDtS757B/77d6VcBPBVPsusLiBVt6M9VnzIvrqDIVt2dy z3lgLf7hiisGMjuM1ARPu3/VxDBTCycsugXdnA/1+oWs8exHsHwBIzgRky3AyBagJznX ObmAqPv4nG9J4KD3F1iAVQs4mUb3JsQFLc/iZSlgd+7b4kGTFFgNURxGZ7XQ638tagA3 dj8Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=IIxzX5gUnf5lf7a4aW64blGJN8Yy8Uaf20c50o+Cx0k=; fh=5K4v/0ku97kpa0vTvhWLyUEWwXZiIFVMmzwLLirrjJ4=; b=qd995lupEwfYkqXvV5AgQdW1+BT8SS5G5b/TUdV3DErr9yWDuiIFqrAOw/OkTRDBoC rYBGyeHIvksQgWmOXk8AhTmw7Hqdh+o8C0wiCorwbO6+fUzWT435kdrlAbsT8RPFxL8j tFmuX/w6tCVma9+w2/xTXQCrdON7Od59Dzk7ABjwX9ryNg4v9YaMQwdk9lviMDutatrm m+9fLjWCAbjzPyWN51be1UcMR5MUGW68KHImpHgnOemk6StQDogMrEcrtxxwOjhUmsHg SbnWLy32mc4YV8MjIlOvZMeNY48B7RkT1rxLnuPQcuHqnE2e0XoFgS4xA1aeUmwg4gIw XsxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PN2Yb2fo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id a24-20020a656418000000b005be37e27238si11832396pgv.893.2023.11.15.17.55.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 17:55:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PN2Yb2fo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 4561880279EA; Wed, 15 Nov 2023 17:55:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344246AbjKPBzK (ORCPT + 99 others); Wed, 15 Nov 2023 20:55:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbjKPBzJ (ORCPT ); Wed, 15 Nov 2023 20:55:09 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 191EE193 for ; Wed, 15 Nov 2023 17:55:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700099706; x=1731635706; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=wT7dbjKEZPnJlKx0LG/sRI7UdmUYfosJsm3/37/KvOs=; b=PN2Yb2forat/avhek0PzXxIDZtUGdpEKHHTLaepTe2mND+YaJjUkFzgU gkhYgtGddaTD3wz/tlABo+YTtqfODRZ65Kg1aX4hXaZBXmSdTwnDqcqE+ jJ2hFUjvLuwblmgsn78XqyY8WHEmjOCxj7m/XJTynMH/q1bloj6T2KVQW zs6k5eCJPxzwiHYclShWfaboHeDLR6CX75gfn4oIAhIUOXDQh102iWTX5 0yKGlBiPe4APhfj7zs2aAxB1pNP3n4VbT9kE1mhFpl04uCPFpcGi30DBv 9IxVkjd49ACaR7Zust0ROZ9OJ7ZokCODdU3R433GhHF/f0Nn81HxO5VnK w==; X-IronPort-AV: E=McAfee;i="6600,9927,10895"; a="381387673" X-IronPort-AV: E=Sophos;i="6.03,306,1694761200"; d="scan'208";a="381387673" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2023 17:55:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,306,1694761200"; d="scan'208";a="13395413" Received: from allen-box.sh.intel.com ([10.239.159.127]) by fmviesa001.fm.intel.com with ESMTP; 15 Nov 2023 17:55:03 -0800 From: Lu Baolu To: Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , Kevin Tian Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Lu Baolu Subject: [PATCH 0/4] iommu/vt-d: Miscellaneous cleanups Date: Thu, 16 Nov 2023 09:50:44 +0800 Message-Id: <20231116015048.29675-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 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,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 15 Nov 2023 17:55:18 -0800 (PST) This series includes several miscellaneous cleanups that were discovered during recent development. Please let me know if anything I have overlooked. Best regards, baolu Lu Baolu (4): iommu/vt-d: Introduce dev_to_iommu() iommu/vt-d: Remove unused parameter of intel_pasid_setup_pass_through() iommu/vt-d: Remove unused vcmd interfaces iommu/vt-d: Move inline helpers to header files drivers/iommu/intel/iommu.h | 184 +++++++++++++++++++++++- drivers/iommu/intel/pasid.h | 213 +++++++++++++++++++++++++++- drivers/iommu/intel/iommu.c | 237 +++---------------------------- drivers/iommu/intel/pasid.c | 274 +----------------------------------- drivers/iommu/intel/svm.c | 20 +-- 5 files changed, 421 insertions(+), 507 deletions(-) -- 2.34.1