Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp556899rdb; Sat, 27 Jan 2024 21:02:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9PucgVbQN8ipmTYqbJRWdQqYEvZXSH5NqtOOaThedpTlZkDOEDbPO2PfbPS9a0E9F87DC X-Received: by 2002:a05:6830:10c7:b0:6e1:11b7:9a39 with SMTP id z7-20020a05683010c700b006e111b79a39mr2488168oto.23.1706418156621; Sat, 27 Jan 2024 21:02:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706418156; cv=pass; d=google.com; s=arc-20160816; b=dOJIukS9ijVWMjC83hrVMI/2lnPfKO1IIZaxFFG53Zc9rLS5TFPLC4/tEvRZgKDxzw s1pgHjgJLP+XB9G5mLMW/NrVT0NG/r3Pg1Q/2C8aPFiCh74mL5IhIf6GcKM5RFJ6Cij/ sNyIF9OBMe+mVxoWV2Mh3FCJUQ7aNBjEnjhA+viTz22HyLNGDBn4J0aa8OPcydc8hhtK rzSgUpza3WEv3z6uyi4POteo4vrA+uiy7YaVusCKFXB0ONWb9gBcHtYJpUsU7bATQc1N UkYEb9krA4smwlJBWGGGAbym4KbCZ6Qi3Kl3dBSBRp4Ik9QABG27C0+6UbYGMf1RAYG/ NKVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7ciBKiykI7uG73mUtPU0k06i9zYW0Wx9Wy0G8JPkF48=; fh=/N4ob4tgEJssOf7JDP6dyGsFvqRy2CvMFZJrTL862CQ=; b=0VrlMQsJ6JfnLopghOE1Htdoyo+kk0HFw1Jt1MoYtkL+ct/fVA1wdHZNKOuc+XPcI4 aSBEfuxBrScgKsrraMoAy/LtWsZXIwQOtXhnSJiUSSFSmlfVr21TzzK2c9+ua0AUG6T6 oK2dD4vlYT5/a3fADcrzhWmLVFbjUbLGjkfUjEGiy4WEosdJuvbmjBvLI9EFKUD/uANx EnQr/jBzVdGXMIFnrOvAu21GNeh9Bz5I97e2gmhMNR0zOpCxVBaRLKqAODaRwMAgRmHO Uum8fszs6VZxPLOgCPFBXw47mV6t+UpLe3Ws5wHnoxQeuBAFCrmNEl/STMipHi0n09Xg XzGQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y+1cLkCS; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-41533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 15-20020a630d4f000000b005cdffd0ec5esi3638602pgn.477.2024.01.27.21.02.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 21:02:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Y+1cLkCS; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-41533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41533-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 10BA0B22639 for ; Sun, 28 Jan 2024 05:02:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 394BF748D; Sun, 28 Jan 2024 05:02:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Y+1cLkCS" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 3DDAD53A6; Sun, 28 Jan 2024 05:02:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706418140; cv=none; b=LysV2g5Qu7Z6dQmgjxPxVRPzVry19AIpq7/g2nlcYKey9vckc+dKugzGHqwKVnJ1fy+aupE7wkN8i5Rv2tfXKr3JyCl91/JT2OrhFnvLzNIQpO/carNfZUmNYlXOrB/RLZjW6x7VcAJT3qUrbfrmBxoZ9ibUk2KYnpoTeNCMnys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706418140; c=relaxed/simple; bh=EqmmZIu81GWPbHbee6X4MmpvxWOYMvGa84unotv6/pM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Mo3he8J3hL5xTcxO3O8gs88/7cPHR89qnBVeRkCT6RETT+AD1NJ7+Og0dEh7gGasYL0kaNKDsHZ3HeAbmM9UZBoAuAsM8oIFWewkqjqcxihtyqO2yRvH6lu/eaEd2rVI/KM2qztctwRgNVsBDxVybBBFtx/D1ehKiG7moJs8Nxo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Y+1cLkCS; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706418139; x=1737954139; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=EqmmZIu81GWPbHbee6X4MmpvxWOYMvGa84unotv6/pM=; b=Y+1cLkCSDPpFrIp0ZgbuG2MudjtS/froZdtJLahSsqdD2rucdlLfUoLu tJSbcsol52g4ZIK5u/qJvol+1n1NTC7BK90XFz5F/wCXqIHauE1Hyq5aK Fm9nbU/4Th1CaEYI5fi0FWZIBh66W3AQDPHa8tKe2buvtx1ZgL2FC02t6 QjFQDUQnzuAWZ1GrlHkD3x2NtJ/jov52xzN5SXYjAmf7ahSp7IS2tqNIG DGCEBKa8aPrEfsDAxFsWaE/GfL90GjMB3A8JfgzHoH4eX2XAyicbRh8Zq aEkaTuTfd3m+IZiR1BxcNbt8YwQA1Ft0XyGWOz9azzevs/p2kLGPvUFEk A==; X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="9394995" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="9394995" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2024 21:02:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10966"; a="821532394" X-IronPort-AV: E=Sophos;i="6.05,220,1701158400"; d="scan'208";a="821532394" Received: from lkp-server01.sh.intel.com (HELO 370188f8dc87) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 27 Jan 2024 21:02:14 -0800 Received: from kbuild by 370188f8dc87 with local (Exim 4.96) (envelope-from ) id 1rTxJ6-00035q-08; Sun, 28 Jan 2024 05:02:12 +0000 Date: Sun, 28 Jan 2024 13:01:58 +0800 From: kernel test robot To: Ethan Zhao , baolu.lu@linux.intel.com, bhelgaas@google.com, robin.murphy@arm.com, jgg@ziepe.ca Cc: oe-kbuild-all@lists.linux.dev, kevin.tian@intel.com, dwmw2@infradead.org, will@kernel.org, lukas@wunner.de, yi.l.liu@intel.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, Ethan Zhao Subject: Re: [PATCH v11 3/5] iommu/vt-d: simplify parameters of qi_submit_sync() ATS invalidation callers Message-ID: <202401281203.zNQINNbM-lkp@intel.com> References: <20240126014002.481294-4-haifeng.zhao@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240126014002.481294-4-haifeng.zhao@linux.intel.com> Hi Ethan, kernel test robot noticed the following build warnings: [auto build test WARNING on pci/next] [also build test WARNING on pci/for-linus linus/master v6.8-rc1 next-20240125] [cannot apply to joro-iommu/next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Ethan-Zhao/PCI-make-pci_dev_is_disconnected-helper-public-for-other-drivers/20240126-094305 base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next patch link: https://lore.kernel.org/r/20240126014002.481294-4-haifeng.zhao%40linux.intel.com patch subject: [PATCH v11 3/5] iommu/vt-d: simplify parameters of qi_submit_sync() ATS invalidation callers config: x86_64-randconfig-005-20240128 (https://download.01.org/0day-ci/archive/20240128/202401281203.zNQINNbM-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240128/202401281203.zNQINNbM-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202401281203.zNQINNbM-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/iommu/intel/svm.c: In function 'intel_flush_svm_all': >> drivers/iommu/intel/svm.c:229:67: warning: passing argument 2 of 'qi_flush_dev_iotlb_pasid' makes pointer from integer without a cast [-Wint-conversion] 229 | qi_flush_dev_iotlb_pasid(sdev->iommu, sdev->sid, info->pfsid, | ~~~~^~~~~ | | | u16 {aka short unsigned int} In file included from drivers/iommu/intel/svm.c:22: drivers/iommu/intel/iommu.h:1047:58: note: expected 'struct device_domain_info *' but argument is of type 'u16' {aka 'short unsigned int'} 1047 | struct device_domain_info *info, u64 addr, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ drivers/iommu/intel/svm.c:229:25: error: too many arguments to function 'qi_flush_dev_iotlb_pasid' 229 | qi_flush_dev_iotlb_pasid(sdev->iommu, sdev->sid, info->pfsid, | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/iommu/intel/iommu.h:1046:6: note: declared here 1046 | void qi_flush_dev_iotlb_pasid(struct intel_iommu *iommu, | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/iommu/intel/svm.c:232:25: error: too many arguments to function 'quirk_extra_dev_tlb_flush' 232 | quirk_extra_dev_tlb_flush(info, 0, 64 - VTD_PAGE_SHIFT, | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/iommu/intel/iommu.h:1049:6: note: declared here 1049 | void quirk_extra_dev_tlb_flush(struct device_domain_info *info, u32 pasid, | ^~~~~~~~~~~~~~~~~~~~~~~~~ vim +/qi_flush_dev_iotlb_pasid +229 drivers/iommu/intel/svm.c 2f26e0a9c9860d drivers/iommu/intel-svm.c David Woodhouse 2015-09-09 217 e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 218 static void intel_flush_svm_all(struct intel_svm *svm) e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 219 { e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 220 struct device_domain_info *info; e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 221 struct intel_svm_dev *sdev; e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 222 e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 223 rcu_read_lock(); e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 224 list_for_each_entry_rcu(sdev, &svm->devs, list) { e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 225 info = dev_iommu_priv_get(sdev->dev); e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 226 e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 227 qi_flush_piotlb(sdev->iommu, sdev->did, svm->pasid, 0, -1UL, 0); e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 228 if (info->ats_enabled) { e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 @229 qi_flush_dev_iotlb_pasid(sdev->iommu, sdev->sid, info->pfsid, e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 230 svm->pasid, sdev->qdep, e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 231 0, 64 - VTD_PAGE_SHIFT); e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 232 quirk_extra_dev_tlb_flush(info, 0, 64 - VTD_PAGE_SHIFT, e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 233 svm->pasid, sdev->qdep); e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 234 } e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 235 } e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 236 rcu_read_unlock(); e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 237 } e7ad6c2a4b1aa7 drivers/iommu/intel/svm.c Lu Baolu 2023-11-22 238 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki