[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PCI] 3233e41d3e: WARNING:at_drivers/pci/pci.c:#pci_reset_hotplug_slot



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 3233e41d3e8ebcd44e92da47ffed97fd49b84278 ("[PATCH] PCI: pciehp: Fix 
AB-BA deadlock between reset_lock and device_lock")
url: 
https://github.com/0day-ci/linux/commits/Lukas-Wunner/PCI-pciehp-Fix-AB-BA-deadlock-between-reset_lock-and-device_lock/20200721-192848
base: https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git next

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 8 -m 16G

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


+------------------------------------------------------+------------+------------+
|                                                      | 8a445afd71 | 
3233e41d3e |
+------------------------------------------------------+------------+------------+
| boot_successes                                       | 4          | 0         
 |
| boot_failures                                        | 0          | 4         
 |
| WARNING:at_drivers/pci/pci.c:#pci_reset_hotplug_slot | 0          | 4         
 |
| RIP:pci_reset_hotplug_slot                           | 0          | 4         
 |
+------------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp@xxxxxxxxx>


[    0.971752] WARNING: CPU: 0 PID: 1 at drivers/pci/pci.c:4905 
pci_reset_hotplug_slot+0x70/0x80
[    0.971753] Modules linked in:
[    0.971755] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 
5.8.0-rc1-00053-g3233e41d3e8eb #1
[    0.971756] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 
1.12.0-1 04/01/2014
[    0.971757] RIP: 0010:pci_reset_hotplug_slot+0x70/0x80
[    0.971759] Code: 41 89 c4 48 8b 7b 20 e8 4e 3a c1 ff 44 89 e0 5b 5d 41 5c 
c3 48 8b 43 18 31 f6 48 8d b8 90 00 00 00 e8 e4 80 70 00 85 c0 75 ba <0f> 0b eb 
b6 41 bc e7 ff ff ff eb d6 0f 1f 40 00 66 66 66 66 90 48
[    0.971759] RSP: 0000:ffffbd73c0013ab0 EFLAGS: 00010246
[    0.971761] RAX: 0000000000000000 RBX: ffff9700475024c0 RCX: ffff9701048c9900
[    0.971762] RDX: ffff970047e40000 RSI: ffff9701048c9990 RDI: 0000000000000246
[    0.971763] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
[    0.971763] R10: 0000000000000001 R11: 0000000000000000 R12: ffff9700477320b0
[    0.971764] R13: ffff970047732000 R14: ffff97004769c238 R15: 0000000000000000
[    0.971765] FS:  0000000000000000(0000) GS:ffff97036fc00000(0000) 
knlGS:0000000000000000
[    0.971766] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.971767] CR2: 0000000000000000 CR3: 00000001c2c10000 CR4: 00000000000006f0
[    0.971767] Call Trace:
[    0.971768]  pci_probe_reset_function+0xc4/0xe0
[    0.971769]  pci_device_add+0x13f/0x2a0
[    0.971769]  pci_scan_single_device+0xa4/0xc0
[    0.971770]  pci_scan_slot+0x52/0x110
[    0.971771]  pci_scan_child_bus_extend+0x3a/0x2a0
[    0.971771]  acpi_pci_root_create+0x1f7/0x250
[    0.971772]  pci_acpi_scan_root+0x182/0x1b0
[    0.971773]  acpi_pci_root_add.cold+0x59/0x1b0
[    0.971773]  ? acpi_device_always_present+0x20/0x90
[    0.971774]  acpi_bus_attach+0xf6/0x200
[    0.971775]  acpi_bus_attach+0x6b/0x200
[    0.971776]  acpi_bus_scan+0x43/0x90
[    0.971776]  ? acpi_sleep_proc_init+0x24/0x24
[    0.971777]  acpi_scan_init+0x102/0x24b
[    0.971778]  acpi_init+0x2c7/0x329
[    0.971778]  do_one_initcall+0x5d/0x330
[    0.971779]  ? rcu_read_lock_sched_held+0x52/0x90
[    0.971780]  kernel_init_freeable+0x248/0x2c9
[    0.971780]  ? rest_init+0x23e/0x23e
[    0.971781]  kernel_init+0xa/0x112
[    0.971782]  ret_from_fork+0x22/0x30
[    0.971782] irq event stamp: 109115
[    0.971783] hardirqs last  enabled at (109115): [<ffffffffaa71a514>] 
_raw_spin_unlock_irqrestore+0x54/0x70
[    0.971784] hardirqs last disabled at (109114): [<ffffffffaa71ab01>] 
_raw_spin_lock_irqsave+0x21/0x60
[    0.971785] softirqs last  enabled at (109060): [<ffffffffaaa003aa>] 
__do_softirq+0x3aa/0x4af
[    0.971786] softirqs last disabled at (109053): [<ffffffffaa8010b2>] 
asm_call_on_stack+0x12/0x20
[    0.971787] ---[ end trace c3e4ce92dee5df5f ]---


To reproduce:

        # build kernel
        cd linux
        cp config-5.8.0-rc1-00053-g3233e41d3e8eb .config
        make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare 
modules_prepare bzImage

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



Thanks,
lkp

Attachment: config-5.8.0-rc1-00053-g3233e41d3e8eb
Description: Text document

Attachment: job-script
Description: Text document

Attachment: dmesg.xz
Description: application/xz


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.