tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6147c83fd749d19a0d3ccc2f64d12138ab010b47 commit: 2a2b8eaa5b25668a6f717f94b55f4e3aaf87629d [8183/8750] iommu: Handle freelists when using deferred flushing in iommu drivers config: ia64-randconfig-r004-20201127 (attached as .config) compiler: ia64-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2a2b8eaa5b25668a6f717f94b55f4e3aaf87629d git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 2a2b8eaa5b25668a6f717f94b55f4e3aaf87629d # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): drivers/iommu/intel/iommu.c: In function 'intel_iommu_tlb_sync': >> drivers/iommu/intel/iommu.c:5643:27: warning: variable 'last_pfn' set but not used [-Wunused-but-set-variable] 5643 | unsigned long start_pfn, last_pfn; | ^~~~~~~~ vim +/last_pfn +5643 drivers/iommu/intel/iommu.c 5636 5637 static void intel_iommu_tlb_sync(struct iommu_domain *domain, 5638 struct iommu_iotlb_gather *gather) 5639 { 5640 struct dmar_domain *dmar_domain = to_dmar_domain(domain); 5641 unsigned long iova_pfn = IOVA_PFN(gather->start); 5642 size_t size = gather->end - gather->start; > 5643 unsigned long start_pfn, last_pfn; 5644 unsigned long nrpages; 5645 int iommu_id; 5646 5647 nrpages = aligned_nrpages(gather->start, size); 5648 start_pfn = mm_to_dma_pfn(iova_pfn); 5649 last_pfn = start_pfn + nrpages - 1; 5650 5651 for_each_domain_iommu(iommu_id, dmar_domain) 5652 iommu_flush_iotlb_psi(g_iommus[iommu_id], dmar_domain, 5653 start_pfn, nrpages, !gather->freelist, 0); 5654 5655 dma_free_pagelist(gather->freelist); 5656 } 5657 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip