[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <201805171414.Zk5q0V2W%fengguang.wu@intel.com>
Date: Thu, 17 May 2018 16:44:35 +0800
From: kbuild test robot <lkp@...el.com>
To: Jacob Pan <jacob.jun.pan@...ux.intel.com>
Cc: kbuild-all@...org, iommu@...ts.linux-foundation.org,
LKML <linux-kernel@...r.kernel.org>,
Joerg Roedel <joro@...tes.org>,
David Woodhouse <dwmw2@...radead.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Alex Williamson <alex.williamson@...hat.com>,
Jean-Philippe Brucker <jean-philippe.brucker@....com>,
Rafael Wysocki <rafael.j.wysocki@...el.com>,
"Liu, Yi L" <yi.l.liu@...el.com>,
"Tian, Kevin" <kevin.tian@...el.com>,
Raj Ashok <ashok.raj@...el.com>,
Jean Delvare <khali@...ux-fr.org>,
Christoph Hellwig <hch@...radead.org>,
Lu Baolu <baolu.lu@...ux.intel.com>,
Jacob Pan <jacob.jun.pan@...ux.intel.com>
Subject: Re: [PATCH v5 08/23] iommu/vt-d: support flushing more translation
cache types
Hi Jacob,
I love your patch! Perhaps something to improve:
[auto build test WARNING on iommu/next]
[also build test WARNING on v4.17-rc5 next-20180516]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Jacob-Pan/IOMMU-and-VT-d-driver-support-for-Shared-Virtual-Address-SVA/20180512-114854
base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next
config: x86_64-rhel-7.2 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers/iommu/dmar.c: In function 'qi_flush_dev_eiotlb':
>> drivers/iommu/dmar.c:1382:12: warning: 'desc.high' is used uninitialized in this function [-Wuninitialized]
desc.high |= QI_DEV_EIOTLB_GLOB(granu);
^~
vim +1382 drivers/iommu/dmar.c
1374
1375 void qi_flush_dev_eiotlb(struct intel_iommu *iommu, u16 sid,
1376 u32 pasid, u16 qdep, u64 addr, unsigned size, u64 granu)
1377 {
1378 struct qi_desc desc;
1379
1380 desc.low = QI_DEV_EIOTLB_PASID(pasid) | QI_DEV_EIOTLB_SID(sid) |
1381 QI_DEV_EIOTLB_QDEP(qdep) | QI_DEIOTLB_TYPE;
> 1382 desc.high |= QI_DEV_EIOTLB_GLOB(granu);
1383
1384 /* If S bit is 0, we only flush a single page. If S bit is set,
1385 * The least significant zero bit indicates the size. VT-d spec
1386 * 6.5.2.6
1387 */
1388 if (!size)
1389 desc.high = QI_DEV_EIOTLB_ADDR(addr) & ~QI_DEV_EIOTLB_SIZE;
1390 else {
1391 unsigned long mask = 1UL << (VTD_PAGE_SHIFT + size);
1392
1393 desc.high = QI_DEV_EIOTLB_ADDR(addr & ~mask) | QI_DEV_EIOTLB_SIZE;
1394 }
1395 qi_submit_sync(&desc, iommu);
1396 }
1397
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (40417 bytes)
Powered by blists - more mailing lists