tree:
https://github.com/intel/linux-intel-lts.git 5.4/yocto
head: 10c3d69bc60059b194dcfa816cbc1240ffb0431d
commit: 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf [14047/18530] REVERT-ME: Temporary Enable
D0i3 flow for PSE IOs
config: m68k-randconfig-s031-20211117 (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
#
https://github.com/intel/linux-intel-lts/commit/2e228f3df9479e9e061cc7e0b...
git remote add intel-lts
https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-lts 5.4/yocto
git checkout 2e228f3df9479e9e061cc7e0b7aba0c071ea22bf
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash
drivers/gpu/drm/ drivers/spi/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
> drivers/spi/spi-dw-pci.c:155:5: sparse: sparse: undefined
preprocessor identifier 'CONFIG_PM'
drivers/spi/spi-dw-pci.c: note: in
included file:
drivers/spi/spi-dw.h:188:16: sparse: sparse: cast removes address space
'<asn:2>' of expression
drivers/spi/spi-dw.h:198:9: sparse: sparse: cast removes address space
'<asn:2>' of expression
vim +/CONFIG_PM +155 drivers/spi/spi-dw-pci.c
154
155 #if CONFIG_PM
156 static int
dw_spi_runtime_suspend(struct device *dev)
157 {
158 struct dw_spi *dws = dev_get_drvdata(dev);
159 unsigned long j0, j1, delay;
160 u32 d0i3c_reg;
161 u32 cgsr_reg;
162
163 delay = msecs_to_jiffies(100);
164 j0 = jiffies;
165 j1 = j0 + delay;
166
167
168 cgsr_reg = dw_readl(dws, PSE_SPI_CGSR);
169 dw_writel(dws, PSE_SPI_CGSR, PSE_SPI_D0I3_RR);
170
171 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
172
173 if (d0i3c_reg & PSE_SPI_D0I3_CIP) {
174 dev_info(dev, "%s d0i3c CIP detected", __func__);
175 } else {
176 dw_writel(dws, PSE_SPI_D0I3C, PSE_SPI_D0I3_EN);
177 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
178 }
179
180 while (time_before(jiffies, j1)) {
181 d0i3c_reg = dw_readl(dws, PSE_SPI_D0I3C);
182 if (!(d0i3c_reg & PSE_SPI_D0I3_CIP))
183 break;
184 }
185
186 if (d0i3c_reg & PSE_SPI_D0I3_CIP)
187 dev_info(dev, "%s: timeout waiting CIP to be cleared",
188 __func__);
189
190 return 0;
191 }
192
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org