Message ID | 20221114014049.3959-1-baolu.lu@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1912939wru; Sun, 13 Nov 2022 17:49:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf56FDRDpSmAZKn82c5W7zregVJlei7xAvWqJfu5KH7UEYtd5NiBj4pMqKd4dWew3kZedv0L X-Received: by 2002:a17:906:6c8d:b0:7ad:f2f9:2b49 with SMTP id s13-20020a1709066c8d00b007adf2f92b49mr8321423ejr.94.1668390572785; Sun, 13 Nov 2022 17:49:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668390572; cv=none; d=google.com; s=arc-20160816; b=j8fPZfrz2Rx4YN1TkLYoFCmcYXzD/LVgbgVSvsJwvoDB2fT0XLXG6vUmrQgABWLT1B 0kGfmrhCKP7VoeSXwjHeb29SRhcK52PZuZRee+xwcs0fbSYbwxCNrdt14K19TPvmdWDW sA9ugoxSTLOrkXATA3r4WMeuiWoBRRCPRByTNtjXr/SeBs4M/pBK8SgDOwCeXKXn0O4Z /Q5E3CIPMw6g4mGijGrM8FSM5nIvcqIrByDtAWColMEgbRAREH5UM6aQtsNEcP9LhAIQ tuCdlxB3EtiyyEPgvMdGDz7nEkADObICrxEM5O4m2cqqQNobgyyk4oh91uJXp35qWwWx dRBA== 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=1HFSKkSSSrWIfHpaTlf1LLoF+AqP+suXhdDyJsACdZk=; b=QkHo3gapr7jRNcjrhM0l3ieuH5DdJteK9AUiKc3IC/xyQSYhPtrCAfLRuDY3MTclpE f6NDkw8aahg6DqZho4ySpXWzyTUFRfFUriXp83Rjx00Vba0GL+D/L/oGvgLuk4ppV//t u1wkNmyZROzxj9/Ewkm5HMDoj8KVj0ZTNK7wNjGxFRBWXJmyrmERZR2SS2/xsbS6PVc3 b7V+qrZyJ3JUrxOR3Ke5ez/CgFp7IV+wgm2SZj9E5CxREix6kx6yMyYSF4Rt0LEViS0q 414CH02LlkuhHw80aN0FdO414p2fPkBZsdIe5DdfD8AHD25DtbE47C2gYMh+XT4idUTl +XMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nOvD+HXT; 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 n26-20020aa7c45a000000b00461a3438b24si7269329edr.182.2022.11.13.17.49.09; Sun, 13 Nov 2022 17:49:32 -0800 (PST) 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=nOvD+HXT; 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 S235690AbiKNBrt (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Sun, 13 Nov 2022 20:47:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235687AbiKNBrs (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 13 Nov 2022 20:47:48 -0500 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C67DF7C for <linux-kernel@vger.kernel.org>; Sun, 13 Nov 2022 17:47:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668390468; x=1699926468; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=mFSd21UgPyLtwwJWI/qh4eD+vxEwHbQ+QjhXTG1Phco=; b=nOvD+HXTAl7C3uIJ4kI0onc2ITPu5YN+sOGO7BZlOHmMnv59AiDrYila Q7q4CsGesQKiNiOkgY2W7oJ/7EFwKX7p86Ydco+OjW10JOw1FS1mFOvhz wcvn0XX14XGlFHl0Fltp+aFz5NabB4TD1Gvemm9p8beZo389AAlpwz+bn V3LX0xj/2N26waSjxTHzNg2C1tuqT2uLrR+dw88s4xvXgRrnrIOiuCCRi e/egbdyntRqTUevtzlX+ph/pDDUVZ4B3+BINwmhcTukUtVJmUftCcHRdM KTlqau1YD71djej5VLBg3V6JjCrzEDAQTLrd3ZrqIBC/aGmvW3r3YwV3N Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="313006682" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="313006682" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2022 17:47:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="707124188" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="707124188" Received: from allen-box.sh.intel.com ([10.239.159.48]) by fmsmga004.fm.intel.com with ESMTP; 13 Nov 2022 17:47:45 -0800 From: Lu Baolu <baolu.lu@linux.intel.com> To: iommu@lists.linux.dev Cc: Joerg Roedel <joro@8bytes.org>, Kevin Tian <kevin.tian@intel.com>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Liu Yi L <yi.l.liu@intel.com>, Jacob jun Pan <jacob.jun.pan@intel.com>, linux-kernel@vger.kernel.org, Lu Baolu <baolu.lu@linux.intel.com> Subject: [PATCH v3 0/7] iommu/vt-d: Some cleanups Date: Mon, 14 Nov 2022 09:40:42 +0800 Message-Id: <20221114014049.3959-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=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749434313088629212?= X-GMAIL-MSGID: =?utf-8?q?1749434313088629212?= |
Series |
iommu/vt-d: Some cleanups
|
|
Message
Baolu Lu
Nov. 14, 2022, 1:40 a.m. UTC
Hi, This series includes some cleanups in the Intel IOMMU implementation after the IOMMU core implemented the blocking domain. The cleanup work is mainly in the attach_dev/device_probe/device_release paths. Please help to review. Best regards, baolu Change log: v3: - Disable PCI capabilities (PASID/ATS/PRI) when there's no domain attached to the device. v2: - https://lore.kernel.org/linux-iommu/20221108073408.1005721-1-baolu.lu@linux.intel.com/ - Reorder the patches to make the device_block_translation() work with the existing path first. - Add a new patch to improve iommu_enable_pci_caps(). v1: - https://lore.kernel.org/linux-iommu/20221103055329.633052-1-baolu.lu@linux.intel.com/ Lu Baolu (7): iommu/vt-d: Allocate pasid table in device probe path iommu/vt-d: Add device_block_translation() helper iommu/vt-d: Add blocking domain support iommu/vt-d: Fold dmar_remove_one_dev_info() into its caller iommu/vt-d: Rename domain_add_dev_info() iommu/vt-d: Remove unnecessary domain_context_mapped() iommu/vt-d: Use real field for indication of first level drivers/iommu/intel/iommu.h | 15 ++-- drivers/iommu/intel/iommu.c | 172 ++++++++++++++++-------------------- 2 files changed, 81 insertions(+), 106 deletions(-)