Subject: Re: [PATCH v7 3/6] PCI: Allow pci_bus_for_each_resource() to take less arguments

From: kernel test robot <[email-masked]>
Date: Thu, 30 Mar 2023 21:24:21 +0800

Greeting,

FYI, we noticed various errors such like
    "i40e: probe of 0000:3d:00.0 failed with error -12"
due to commit (built with gcc-11):

commit: d23d5938fd7ced817d6aa1ff86cd671ebbaebfc2 ("[PATCH v7 3/6] PCI: Allow pci_bus_for_each_resource() to take less arguments")
url: https://github.com/intel-lab-lkp/linux/commits/Andy-Shevchenko/kernel-h-Split-out-COUNT_ARGS-and-CONCATENATE/20230324-013857
base: https://git.kernel.org/cgit/linux/kernel/git/pci/pci.git next
patch link: https://lore.kernel.org/all/[email-masked]/
patch subject: [PATCH v7 3/6] PCI: Allow pci_bus_for_each_resource() to take less arguments

in testcase: boot

on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz (Cascade Lake) with 512G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):

If you fix the issue, kindly add following tag
| Reported-by: kernel test robot <[email-masked]>
| Link: https://lore.kernel.org/oe-lkp/[email-masked]

$ xzgrep error dmesg.xz
[   51.684385][    T1] i40e: probe of 0000:3d:00.0 failed with error -12
[   51.709906][    T1] i40e: probe of 0000:3d:00.1 failed with error -12
[   51.979447][  T638] xhci_hcd: probe of 0000:00:14.0 failed with error -16
[   55.722124][    T1] calling  init_error_injection+0x0/0x70 @ 1
[   55.729441][    T1] initcall init_error_injection+0x0/0x70 returned 0 after 1316 usecs
e Volatile Files[   69.603735][ T1054] ioatdma: probe of 0000:00:04.0 failed with error -22
[   69.630580][ T1054] ioatdma: probe of 0000:00:04.1 failed with error -22
[   69.658415][ T1054] ioatdma: probe of 0000:00:04.2 failed with error -22
[   69.706342][ T1054] ioatdma: probe of 0000:00:04.3 failed with error -22
[   69.788776][ T1054] ioatdma: probe of 0000:00:04.4 failed with error -22
         Startin[   69.810610][ T1054] ioatdma: probe of 0000:00:04.5 failed with error -22
[   69.838865][ T1054] ioatdma: probe of 0000:00:04.6 failed with error -22
ind portmap serv[   69.866504][ T1054] ioatdma: probe of 0000:00:04.7 failed with error -22
[   69.897288][ T1054] ioatdma: probe of 0000:80:04.0 failed with error -22
tem Boot/Shutdow[   69.917172][ T1054] ioatdma: probe of 0000:80:04.1 failed with error -22
[   69.936033][ T1054] ioatdma: probe of 0000:80:04.2 failed with error -22
1;39mRPC bind po[   69.954728][ T1054] ioatdma: probe of 0000:80:04.3 failed with error -22
[   69.979795][ T1054] ioatdma: probe of 0000:80:04.4 failed with error -22
[   70.015547][ T1054] ioatdma: probe of 0000:80:04.6 failed with error -22
[   70.017299][ T1054] ioatdma: probe of 0000:80:04.7 failed with error -22
[   70.093241][ T1012] ahci: probe of 0000:00:11.5 failed with error -22
0m] Reached targ[   70.113139][ T1012] ahci: probe of 0000:00:17.0 failed with error -22

To reproduce:

        # build kernel
	cd linux
	cp config-6.3.0-rc1-00011-gd23d5938fd7c .config
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-11 CC=gcc-11 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests