tree: baolu/iommu/next/20200514
head: 28c528ddc9501f8caba71dba375bd1d35403dd4b
commit: 168de992164d4bdb99dfec8f035a0ff145d39a7e [13/16] iommu/vt-d: debugfs: Add support
to show inv queue internals
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 168de992164d4bdb99dfec8f035a0ff145d39a7e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/iommu/intel-iommu-debugfs.c: In function 'invalidation_queue_show':
> drivers/iommu/intel-iommu-debugfs.c:421:30: warning: format
'%llx' expects argument of type 'long long unsigned int', but argument 3
has type 'long unsigned int' [-Wformat=]
421 | seq_printf(m, " Base:
0x%llxtHead: %lldtTail: %lldn",
| ~~~^
| |
| long long unsigned int
| %lx
vim +421 drivers/iommu/intel-iommu-debugfs.c
401
402 static int invalidation_queue_show(struct seq_file *m, void *unused)
403 {
404 struct dmar_drhd_unit *drhd;
405 struct intel_iommu *iommu;
406 unsigned long flags;
407 struct q_inval *qi;
408 int shift;
409
410 rcu_read_lock();
411 for_each_active_iommu(iommu, drhd) {
412 qi = iommu->qi;
413 shift = qi_shift(iommu);
414
415 if (!qi || !ecap_qis(iommu->ecap))
416 continue;
417
418 seq_printf(m, "Invalidation queue on IOMMU: %s\n", iommu->name);
419
420 raw_spin_lock_irqsave(&qi->q_lock, flags);
421 seq_printf(m, " Base: 0x%llx\tHead: %lld\tTail:
%lld\n",
422 virt_to_phys(qi->desc),
423 dmar_readq(iommu->reg + DMAR_IQH_REG) >> shift,
424 dmar_readq(iommu->reg + DMAR_IQT_REG) >> shift);
425 invalidation_queue_entry_show(m, iommu);
426 raw_spin_unlock_irqrestore(&qi->q_lock, flags);
427 seq_putc(m, '\n');
428 }
429 rcu_read_unlock();
430
431 return 0;
432 }
433 DEFINE_SHOW_ATTRIBUTE(invalidation_queue);
434
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org