Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp759714rdd; Tue, 9 Jan 2024 21:04:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IHVR8jj1K12FEgkrpYvnxkSzJEnJMfMn7dR5uH8FTuvyaTKWg/5iaLrt1f3Ka5mI3coxhqo X-Received: by 2002:a50:ab02:0:b0:558:55:b1a4 with SMTP id s2-20020a50ab02000000b005580055b1a4mr79875edc.42.1704863085966; Tue, 09 Jan 2024 21:04:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704863085; cv=none; d=google.com; s=arc-20160816; b=NQ8+Wm61lzDmnqx6xmvEkoyauUwjQcRAft4EhZO5xJJ421JF5Kt81oJqV/D7+nITI8 J8Mtqzv6+IN/I4gheMccSpJu+keHZ6fUeAaSIIfvagaLQkznKZx7lnHl+rHQQyGRNkzt g24DitNooxNMXBbsWoWZzlS/kkG6wg9OT+MEMoawG8wDlO8LFNxHKpKZDVILyPJ6jFhW LgUylkmVIEuAEv0o/xmVLDjQr/m/vP2r2ESnoO46rmFNE1solWIpLo6Y8My9aYi919Lu XGEaFp9X6WFtj2SeT16CduRuhGKUbJ0B88g4VQFaa2lEKQqsHCYWmRq/vM79AbgDxS/Q zQkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=teK3E6/Q7vHgC/cMCLIUQT1XcEQJMa5CPNFtnHiSHeU=; fh=zw0Oa20iAp3YmN+cf7yM/4gaqNNqI0hGhBN5fNR7xEY=; b=jpVHI7uXzTNMq7k+ImUnvmJhs5g5lZZI77flIWIQhkBGWt+wg0GRMiK/t4V0A7+7fC LHIT910UoLIDurFBCAqfmJexESWtBNIEbDhqr+srVL6YoG2TbQ0WeqQchiBN3gUwpbic 6xr8NWmIXRTMlPhxRL04I8lT1Nf21XUnEFR/RSZJ8wvlgukPr0yofRDM/N/YAwEvX/p6 OM2IOpH3dwDOMrzJDDhJgYWOwWqCLvqLPi8l88D1dpT1xXMJ4TNhIttKS1bMFLlAN1mt Af00YqZTzP+TVRYRcl3qPkm5lOgcKGWiIrbYow+gGyqN1KMV1rxap3bYwCSaBX5VDF98 bNMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YDDeqim8; spf=pass (google.com: domain of linux-kernel+bounces-21714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g13-20020a056402428d00b005581b8f702fsi919160edc.16.2024.01.09.21.04.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 21:04:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YDDeqim8; spf=pass (google.com: domain of linux-kernel+bounces-21714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id B06F31F26A60 for ; Wed, 10 Jan 2024 05:04:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 836B8D520; Wed, 10 Jan 2024 05:04:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YDDeqim8" Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 465FDD512; Wed, 10 Jan 2024 05:04:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1704863074; x=1736399074; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=k64/f9r7Qp36i1XX1i9jcMtrmGXtcJyhgHq6uyIFl64=; b=YDDeqim8fSjoE4zYkzLIvVa6FjWGHOs9v7u6o3goFL/oiEY+QLiTCpqx iJRFjdMGAMJPZjpBU1wqTifvhewGw31VgIGNtMWshdnilxmLcQ7ASaVrs Wt5ZSOF5jYvYKsgXCVzldNC4ywvJ5XaxsPOFiO4XBtTxm5faUm9eIBuPk 0zxUCNn2k4Ozyk935r/FHB4DRb0Rx7//R4qAAOVFXVI6vkTA7ahsCMKYF juk+nVCu8oDx5lBXLMLCEUVvFmlNl+ga9MAMR0BtTuGAzRgpIvJrgd0Yb shvRdxj5k4TLEMyhm5MvOLnqKgLeeCDvVkp7EIbqcmAZm68PGHDs1mcpG g==; X-IronPort-AV: E=McAfee;i="6600,9927,10947"; a="429596918" X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="429596918" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jan 2024 21:04:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,184,1695711600"; d="scan'208";a="16511841" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by fmviesa002.fm.intel.com with ESMTP; 09 Jan 2024 21:04:30 -0800 Message-ID: Date: Wed, 10 Jan 2024 12:59:16 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, linux-pci@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v10 1/5] iommu/vt-d: add pci_dev parameter to qi_submit_sync and refactor callers Content-Language: en-US To: Ethan Zhao , kevin.tian@intel.com, bhelgaas@google.com, dwmw2@infradead.org, will@kernel.org, robin.murphy@arm.com, lukas@wunner.de References: <20231228170206.720675-1-haifeng.zhao@linux.intel.com> <20231228170206.720675-2-haifeng.zhao@linux.intel.com> From: Baolu Lu In-Reply-To: <20231228170206.720675-2-haifeng.zhao@linux.intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 12/29/23 1:02 AM, Ethan Zhao wrote: > Signed-off-by: Ethan Zhao Please don't leave the message body empty. You should describe why do you want to add the change in this patch. > --- > drivers/iommu/intel/dmar.c | 45 +++++++++++++++++++++-------- > drivers/iommu/intel/iommu.c | 26 +++++------------ > drivers/iommu/intel/iommu.h | 17 +++++------ > drivers/iommu/intel/irq_remapping.c | 2 +- > drivers/iommu/intel/pasid.c | 11 ++----- > drivers/iommu/intel/svm.c | 13 ++++----- > 6 files changed, 58 insertions(+), 56 deletions(-) > > diff --git a/drivers/iommu/intel/dmar.c b/drivers/iommu/intel/dmar.c > index 23cb80d62a9a..3d661f2b7946 100644 > --- a/drivers/iommu/intel/dmar.c > +++ b/drivers/iommu/intel/dmar.c > @@ -1344,7 +1344,7 @@ static int qi_check_fault(struct intel_iommu *iommu, int index, int wait_index) > * can be part of the submission but it will not be polled for completion. > */ > int qi_submit_sync(struct intel_iommu *iommu, struct qi_desc *desc, > - unsigned int count, unsigned long options) > + unsigned int count, unsigned long options, struct pci_dev *pdev) How about adding a bit in options parameter to tell whether the @pdev is valid? Best regards, baolu