Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3844296imw; Mon, 11 Jul 2022 17:37:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vczHH36VQTqB3N5oDvJlDuRfNUqStGEYx4kXsMtz+K6g92ivs2rEnK9Xdl3otgiYYSKzrp X-Received: by 2002:a17:906:84f7:b0:72b:47ba:33b6 with SMTP id zp23-20020a17090684f700b0072b47ba33b6mr11039616ejb.699.1657586234858; Mon, 11 Jul 2022 17:37:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657586234; cv=none; d=google.com; s=arc-20160816; b=Rvrw0HXMypZpC3F5j+5AC6Iq9Zgm4bdDM8jlzOQUnbUkIh4+EqIu2erYFOHVwVS6zY uMJnneKK6sT7qNUgixZADo0nq0F5cz51TDpHXlVjVFCmoPa8XqJ52miDWcLCq9Io3wvn wNJdsm6ic/aTx9Q8KrobK3Rkcn00Bh9+L+K9VzgGbn7CAWZww3VTjoZnsV66t3g1WNGu kdZe4QBUibk/ean9rN+nYQBeEIMfFD9EiJtNqGiMBV6IsIdyc90cy2HaCfspKJHDXIjt QkVWIKqYO74qRaD0XwewHbpZ+QyiTcPazWij3OAYKE4QgRJwNwPPdM/Vac9Ff+vIwj9n Zvcg== 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=bD6HExuu+72HI/ey7urMvE594oWJ33euY/o90eE7oqU=; b=G03yySSW9/7eEsKQAzCcMhxLhfZcMzwB3SfLXyKoFDhULkvRzFiagvvI4HL+j8Fz5h yccfUeBEpj95GRzpfMhuTmZLKIOYXlOHu31fCKc2dJCZmFlrWMN5h4gG1iVlKHSU11C2 f0i0L25Gj5bRFXTtsuA1Wwp32HfAiA6Xsqd/pDy+N8WDUvTbvroAaUDbcp7gvAt33jVU PeYU2MIuLEiSCK5+nZggIb5iNkrzx8vpNRQI939aqTrz6tUiuIxm/PBVlqXDvFF47VPw UvpiRhh3z/g85nzmDVFk0FyOR9CRHwhMjZykS0L64DEGTeqElwOxwsmkXPeSJapngdw2 +bDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="WMoN0/QS"; 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 i20-20020a056402055400b00435bc97e2e5si11336912edx.585.2022.07.11.17.36.50; Mon, 11 Jul 2022 17:37:14 -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="WMoN0/QS"; 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 S231611AbiGLANt (ORCPT + 99 others); Mon, 11 Jul 2022 20:13:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbiGLANl (ORCPT ); Mon, 11 Jul 2022 20:13:41 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C71F663E9 for ; Mon, 11 Jul 2022 17:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657584820; x=1689120820; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YFPp8eQRfKyYxbsjHpcOv+2EbgCO4an3Fpmg9Fo1F8g=; b=WMoN0/QSrg5xbq8Z5RB9S8zBaHcI/FI8Iv/p5DnLPVlWmoDmlAeAiqgf ZBq4f/vj/wxng/3v0VezZ0A/RKiHgdvwx2d9Mnx1lH3F0ZyMWbYXaJgUS /mZ2mnMJGQ0Z3a5uFVybTirr858Vam0iDpW3dk4M75wh6+nSreO/TpCat bzQCtTGU74FkYyPiJk7Q873Mry9rJqT1FeuSKUVUoZzoZQSkHZWE2uVGO EdZyyW70fw032uucXPKr4I0s3kDgiQAZmS6c7I/P9VQjWczC9I6UWuVoc TTjhO33Z9WcF01noF7yIS907Y4V8CpsXwaIzmlVZmE5W9kt4hniFgNF4B g==; X-IronPort-AV: E=McAfee;i="6400,9594,10405"; a="284827857" X-IronPort-AV: E=Sophos;i="5.92,264,1650956400"; d="scan'208";a="284827857" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 17:13:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,264,1650956400"; d="scan'208";a="592445678" Received: from allen-box.sh.intel.com ([10.239.159.48]) by orsmga007.jf.intel.com with ESMTP; 11 Jul 2022 17:13:38 -0700 From: Lu Baolu To: Joerg Roedel Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 00/25] [PULL REQUEST] Intel IOMMU updates for Linux v5.20 Date: Tue, 12 Jul 2022 08:08:43 +0800 Message-Id: <20220712000908.3431936-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Joerg, This includes patches queued for v5.20. It includes: - Make intel-iommu.h private - Optimize the use of two locks - Extend the driver to support large-scale platforms - Cleanup some dead code The whole series is also available at: https://github.com/LuBaolu/intel-iommu/commits/vtd-update-for-v5.20 Please consider them for v5.20. [The vt-d branch needs to include below fix patch: 4140d77a02210 ("iommu/vt-d: Fix RID2PASID setup/teardown failure") before applying the patches.] Best regards, Baolu Lu Baolu (25): iommu/vt-d: Move trace/events/intel_iommu.h under iommu agp/intel: Use per device iommu check iommu/vt-d: Remove unnecessary exported symbol drm/i915: Remove unnecessary include KVM: x86: Remove unnecessary include x86/boot/tboot: Move tboot_force_iommu() to Intel IOMMU iommu/vt-d: Move include/linux/intel-iommu.h under iommu iommu/vt-d: Remove unused iovad from dmar_domain iommu/vt-d: debugfs: Remove device_domain_lock usage iommu/vt-d: Remove clearing translation data in disable_dmar_iommu() iommu/vt-d: Use pci_get_domain_bus_and_slot() in pgtable_walk() iommu/vt-d: Unnecessary spinlock for root table alloc and free iommu/vt-d: Replace spin_lock_irqsave() with spin_lock() iommu/vt-d: Acquiring lock in domain ID allocation helpers iommu/vt-d: Acquiring lock in pasid manipulation helpers iommu/vt-d: Check device list of domain in domain free path iommu/vt-d: Fold __dmar_remove_one_dev_info() into its caller iommu/vt-d: Use device_domain_lock accurately iommu/vt-d: Convert global spinlock into per domain lock iommu/vt-d: Remove unused domain_get_iommu() iommu/vt-d: Use IDA interface to manage iommu sequence id iommu/vt-d: Refactor iommu information of each domain iommu/vt-d: Remove unnecessary check in intel_iommu_add() iommu/vt-d: Remove global g_iommus array iommu/vt-d: Make DMAR_UNITS_SUPPORTED default 1024 include/linux/dmar.h | 6 +- include/linux/tboot.h | 2 - .../iommu/intel/iommu.h | 35 +- drivers/iommu/intel/pasid.h | 1 + .../iommu/intel/trace.h | 7 +- arch/x86/kernel/tboot.c | 15 - arch/x86/kvm/x86.c | 1 - drivers/char/agp/intel-gtt.c | 17 +- drivers/gpu/drm/i915/display/intel_display.c | 1 - .../gpu/drm/i915/gem/i915_gem_execbuffer.c | 1 - drivers/iommu/intel/cap_audit.c | 2 +- drivers/iommu/intel/debugfs.c | 51 +- drivers/iommu/intel/dmar.c | 39 +- drivers/iommu/intel/iommu.c | 446 ++++++------------ drivers/iommu/intel/irq_remapping.c | 2 +- drivers/iommu/intel/pasid.c | 107 +++-- drivers/iommu/intel/perf.c | 2 +- drivers/iommu/intel/svm.c | 11 +- drivers/iommu/intel/trace.c | 2 +- MAINTAINERS | 1 - 20 files changed, 297 insertions(+), 452 deletions(-) rename include/linux/intel-iommu.h => drivers/iommu/intel/iommu.h (97%) rename include/trace/events/intel_iommu.h => drivers/iommu/intel/trace.h (93%) -- 2.25.1