Message ID | 20221108073408.1005721-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 l7csp2545912wru; Mon, 7 Nov 2022 23:42:29 -0800 (PST) X-Google-Smtp-Source: AMsMyM4IRqyQlXMP5NY/5UHvD0hkiRmr5ujvGfHx8O0zj7zO6uxAbiub/F3ZSNdS4wL5rr/dxD0r X-Received: by 2002:a17:90a:4dce:b0:213:9d22:8870 with SMTP id r14-20020a17090a4dce00b002139d228870mr57999031pjl.7.1667893349355; Mon, 07 Nov 2022 23:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667893349; cv=none; d=google.com; s=arc-20160816; b=i+/hgRe/Y3Nz0ZVrYYcTBCb8ULgOsCejLb1yRmpCT+rjA99t6ROCDxUGhCEZVEaCWO i7jpI5qhlOVXUa+k2Duf3sPTAg/W/PPJhAg8usMGQrAAb+BtUXqt1h/SOw2eyONeGUAq LPp1D39PeiDZ5oJYPZGFQHhiWG9gr/ujAdZnCBIbDhdZ7yBPjwf6iKgvhFcpNtOidzSL 8WU/qsfLn+nIp6mhiYds5xlhUc+xHpbSMmQ5D3jv7N5odkZfjAW3/uXFMt42dJ8LzeIi +sOIDwFPmtdys+IU+OOr2JsWPDxD8Tc7mmY87siwSX33PibzC9SzrtS39lh49M4jOukn zxIg== 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=QjKBjmPhtcpX1ikbf5DqZKFohLdabgTnkfha5aQ55BE=; b=V2HG2UBtxyNLcv7TNPQP8zCyWzsFeFLTLyrOalxs9ncXU5/3pppHsmkNRqTje5nBMb dsHoypA/+S7TEczy5wzgzwE8VAp32ueCuqDxOXgOx4I27TOsrQXCTg0cTp84QbqANhdv 2rWMbjAwOsONGPS8D3uVBEGY7IuK5vu+R9sF6aOjz6vT65vvZuNCgGZqUO1lZgAzmyZG 0JGGa1cxDEC6r1Monepcoh0RD3/t+L9RBG9jTRg0Xcw2mWwdJqL4h8QCuAXp8FMAE6Jm Ou0zuG2V2gTz9Dz5gAnO/Q7iVEIGKI/rFzkw1+JEKSXb2YbfteGVjX6FxNs/hCvQhw5w TIuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Cdzu5fNj; 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 n8-20020a170902e54800b0018678dab05dsi15848687plf.199.2022.11.07.23.42.15; Mon, 07 Nov 2022 23:42:29 -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=Cdzu5fNj; 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 S232307AbiKHHln (ORCPT <rfc822;hjfbswb@gmail.com> + 99 others); Tue, 8 Nov 2022 02:41:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233727AbiKHHlV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Nov 2022 02:41:21 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 508F811173 for <linux-kernel@vger.kernel.org>; Mon, 7 Nov 2022 23:41:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667893268; x=1699429268; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6qOtZq4rvrJXcgDLPt2P44yk74yMTtt98uYccFxHG8k=; b=Cdzu5fNjC+1p42wWkEkkCsDvLTmambzA/s7zlWT/Bm17pCJNRwzulml8 ArmHo95R4z6oODh5gXQgjcdIvws6EuNN0FcgNrmNADO9x2qys3p6LC9LB tbGOP2ouLhaSN6PvG3dNLoYVLF+/DEI+LoTbyuFfLZqjTAdGvwG9uvNe7 9Vo1/KE0uuZNJb7BFZ9JBswTwpGEmzcKXw3StkgicWASAW4lPrajEw66t +tLHrcosn+/mOq93/X8c852jBpmFie4igKqAiuxXRjSlP7YSQXSQsM4nM OCqadalDOhF0RaCy+hYq/1wFIi4paSozx9SQ2u5OiQG0k/AcDJU5PVlF3 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="309339824" X-IronPort-AV: E=Sophos;i="5.96,147,1665471600"; d="scan'208";a="309339824" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 23:41:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="699821790" X-IronPort-AV: E=Sophos;i="5.96,147,1665471600"; d="scan'208";a="699821790" Received: from allen-box.sh.intel.com ([10.239.159.48]) by fmsmga008.fm.intel.com with ESMTP; 07 Nov 2022 23:40:59 -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 v2 0/8] iommu/vt-d: Some cleanups Date: Tue, 8 Nov 2022 15:34:00 +0800 Message-Id: <20221108073408.1005721-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,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?1748912936499410360?= X-GMAIL-MSGID: =?utf-8?q?1748912936499410360?= |
Series |
iommu/vt-d: Some cleanups
|
|
Message
Baolu Lu
Nov. 8, 2022, 7:34 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: v2: - 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 (8): iommu/vt-d: Allocate pasid table in device probe path iommu/vt-d: Improve iommu_enable_pci_caps() 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 | 252 +++++++++++++++++++----------------- 2 files changed, 138 insertions(+), 129 deletions(-)