tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
commit: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf [1/1] REVERT-ME: Temporary Enable D0i3
flow for PSE IOs
config: x86_64-randconfig-a006-20210713 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
8d69635ed9ecf36fd0ca85906bfde17949671cbe)
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
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/intel/linux-intel-lts/commit/2e228f3df9479e9e061cc7e0b...
git remote add intel-linux-intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 5.4/yocto
git checkout 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> drivers/counter/intel-qep.c:808:6: warning: variable
'cgsr_reg' set but not used [-Wunused-but-set-variable]
u32
cgsr_reg;
^
1 warning generated.
vim +/cgsr_reg +808 drivers/counter/intel-qep.c
800
801 #ifdef CONFIG_PM
802 static int intel_qep_runtime_suspend(struct device *dev)
803 {
804 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev);
805 struct intel_qep *qep = pci_get_drvdata(pdev);
806 unsigned long j0, j1, delay;
807 u32 d0i3c_reg;
808 u32 cgsr_reg;
809
810 delay = msecs_to_jiffies(100);
811 j0 = jiffies;
812 j1 = j0 + delay;
813
814 cgsr_reg = intel_qep_readl(qep->regs, INTEL_QEP_CGSR);
815 intel_qep_writel(qep->regs, INTEL_QEP_CGSR, INTEL_QEP_CGSR_CG);
816
817 d0i3c_reg = intel_qep_readl(qep->regs, INTEL_QEP_D0I3C);
818
819 if (d0i3c_reg & INTEL_QEP_D0I3_CIP) {
820 dev_info(dev, "%s d0i3c CIP detected", __func__);
821 } else {
822 intel_qep_writel(qep->regs, INTEL_QEP_D0I3C, INTEL_QEP_D0I3_EN);
823 d0i3c_reg = intel_qep_readl(qep->regs, INTEL_QEP_D0I3C);
824 }
825
826 while (time_before(jiffies, j1)) {
827 d0i3c_reg = intel_qep_readl(qep->regs, INTEL_QEP_D0I3C);
828 if (!(d0i3c_reg & INTEL_QEP_D0I3_CIP))
829 break;
830 }
831
832 if (d0i3c_reg & INTEL_QEP_D0I3_CIP)
833 dev_info(dev, "%s: timeout waiting CIP to be cleared",
834 __func__);
835 return 0;
836 }
837
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org