Bug 14219

Summary: qemux86 backtrace on boot
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Richard Purdie <richard.purdie>
Component: kernelAssignee: Bruce Ashfield <bruce.ashfield>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: High CC: randy.macleod, tom.zanussi
Version: 3.3   
Target Milestone: 3.3 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Richard Purdie 2021-02-04 16:46:08 UTC
Seen on qemux86 on current master (with glibc 2.32 and 2.33)

[    0.883261] hpet_acpi_add: no address or irqs in _CRS
[    0.885270] Linux agpgart interface v0.103
[    0.886426] bochs-drm 0000:00:02.0: vgaarb: deactivate vga console
[    0.890511] random: crng init done
[    0.890538] Console: switching to colour dummy device 80x25
[    0.892400] [drm] Found bochs VGA, ID 0xb0c0.
[    0.895401] [drm] Framebuffer size 16384 kB @ 0xfd000000, mmio @ 0xfebd0000.
[    0.896588] [TTM] Zone  kernel: Available graphics memory: 250088 KiB
[    0.897626] [TTM] Initializing pool allocator
[    0.899645] [drm] Found EDID data blob.
[    0.900354] [drm] Initialized bochs-drm 1.0.0 20130925 for 0000:00:02.0 on minor 0
[    0.903101] fbcon: bochs-drmdrmfb (fb0) is primary device
[    0.907469] Console: switching to colour frame buffer device 128x48
[    0.913269] bochs-drm 0000:00:02.0: [drm] fb0: bochs-drmdrmfb frame buffer device
[    0.915585] brd: module loaded
[    0.917262] loop: module loaded
[    0.918009] ------------[ cut here ]------------
[    0.918785] WARNING: CPU: 0 PID: 1 at include/linux/msi.h:213 msix_capability_init+0x340/0x400
[    0.920162] Modules linked in:
[    0.920686] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.12-yocto-standard #1
[    0.921841] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    0.923655] EIP: msix_capability_init+0x340/0x400
[    0.924463] Code: 85 ff 74 09 8b 50 08 89 14 f7 83 c6 01 f6 40 31 02 75 0c 0f b7 50 32 c1 e2 04 03 50 38 75 ab c7 40 2c 00 00 00 00 31 c9 eb a6 <0f> 0b be ed ff ff ff 8b 83 d0 01 00 00 8d 8b d0 01 00 00 39 c8 0f
[    0.928248] EAX: 00000000 EBX: c1219800 ECX: 000052b0 EDX: 000052a8
[    0.929267] ESI: 00000002 EDI: c12c3cf0 EBP: c112bcb4 ESP: c112bc80
[    0.940457] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010246
[    0.941625] CR0: 80050033 CR2: 00000000 CR3: 06cea000 CR4: 000006d0
[    0.942651] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    0.943697] DR6: fffe0ff0 DR7: 00000400
[    0.944340] Call Trace:
[    0.944780]  pci_alloc_irq_vectors_affinity+0x18c/0x210
[    0.945639]  vp_find_vqs_msix+0xca/0x460
[    0.946289]  vp_find_vqs+0x29/0x190
[    0.948529]  ? setup_vq+0x240/0x240
[    0.950116]  vp_modern_find_vqs+0x21/0x80
[    0.952135]  ? setup_vq+0x240/0x240
[    0.958728]  init_vq+0x164/0x280
[    0.960269]  ? ncpus_cmp_func+0x10/0x10
[    0.961874]  virtblk_probe+0x104/0x770
[    0.963496]  virtio_dev_probe+0x1c0/0x2a0
[    0.965132]  really_probe+0xd5/0x3b0
[    0.966852]  driver_probe_device+0x49/0xa0
[    0.968502]  device_driver_attach+0x99/0xa0
[    0.970137]  __driver_attach+0x60/0xe0
[    0.971689]  ? device_driver_attach+0xa0/0xa0
[    0.973320]  bus_for_each_dev+0x5b/0xa0
[    0.975604]  driver_attach+0x19/0x20
[    0.977246]  ? device_driver_attach+0xa0/0xa0
[    0.978857]  bus_add_driver+0xed/0x1b0
[    0.980413]  driver_register+0x79/0xd0
[    0.981936]  ? loop_init+0x135/0x135
[    0.987724]  register_virtio_driver+0x1b/0x30
[    0.989338]  init+0x49/0x6f
[    0.990693]  do_one_initcall+0x49/0x1e0
[    0.992223]  kernel_init_freeable+0x16b/0x1b5
[    0.993821]  ? rest_init+0xad/0xad
[    0.995245]  kernel_init+0xd/0xf3
[    0.996651]  ret_from_fork+0x1c/0x28
[    0.998093] ---[ end trace 4deef4a5c447cb12 ]---
[    1.000004] ------------[ cut here ]------------
[    1.001576] WARNING: CPU: 0 PID: 1 at include/linux/msi.h:219 free_msi_irqs+0x49/0x180
[    1.003665] Modules linked in:
[    1.005026] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W         5.10.12-yocto-standard #1
[    1.007226] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014
[    1.010513] EIP: free_msi_irqs+0x49/0x180
[    1.012036] Code: 74 11 8b 47 08 85 c0 0f 85 f4 00 00 00 8b 3f 39 df 75 ef 8b 45 ec 8b 80 c8 01 00 00 85 c0 74 0a f6 40 14 01 0f 85 1c 01 00 00 <0f> 0b 8b 45 ec 8b b8 d0 01 00 00 8b 17 39 fb 75 08 eb 40 8d 74 26
[    1.016723] EAX: 00000000 EBX: c12199d0 ECX: c12199d0 EDX: 00000000
[    1.021648] ESI: ffffffed EDI: c12199d0 EBP: c112bc78 ESP: c112bc64
[    1.023517] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010246
[    1.025449] CR0: 80050033 CR2: 00000000 CR3: 06cea000 CR4: 000006d0
[    1.027293] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    1.029115] DR6: fffe0ff0 DR7: 00000400
[    1.030718] Call Trace:
[    1.031986]  msix_capability_init+0x228/0x400
[    1.033542]  pci_alloc_irq_vectors_affinity+0x18c/0x210
[    1.035216]  vp_find_vqs_msix+0xca/0x460
[    1.036693]  vp_find_vqs+0x29/0x190
[    1.038097]  ? setup_vq+0x240/0x240
[    1.039519]  vp_modern_find_vqs+0x21/0x80
[    1.041014]  ? setup_vq+0x240/0x240
[    1.042444]  init_vq+0x164/0x280
[    1.043813]  ? ncpus_cmp_func+0x10/0x10
[    1.045264]  virtblk_probe+0x104/0x770
[    1.046860]  virtio_dev_probe+0x1c0/0x2a0
[    1.048357]  really_probe+0xd5/0x3b0
[    1.053029]  driver_probe_device+0x49/0xa0
[    1.054539]  device_driver_attach+0x99/0xa0
[    1.056077]  __driver_attach+0x60/0xe0
[    1.057533]  ? device_driver_attach+0xa0/0xa0
[    1.059136]  bus_for_each_dev+0x5b/0xa0
[    1.060600]  driver_attach+0x19/0x20
[    1.062033]  ? device_driver_attach+0xa0/0xa0
[    1.063903]  bus_add_driver+0xed/0x1b0
[    1.065358]  driver_register+0x79/0xd0
[    1.066791]  ? loop_init+0x135/0x135
[    1.068209]  register_virtio_driver+0x1b/0x30
[    1.069742]  init+0x49/0x6f
[    1.071040]  do_one_initcall+0x49/0x1e0
[    1.072514]  kernel_init_freeable+0x16b/0x1b5
[    1.074060]  ? rest_init+0xad/0xad
[    1.075477]  kernel_init+0xd/0xf3
[    1.076844]  ret_from_fork+0x1c/0x28
[    1.078267] ---[ end trace 4deef4a5c447cb13 ]---
[    1.080809] virtio_blk virtio2: [vda] 4129552 512-byte logical blocks (2.11 GB/1.97 GiB)
[    1.082938] vda: detected capacity change from 0 to 2114330624
[    1.085709] Uniform Multi-Platform E-IDE driver
[    1.087339] piix 0000:00:01.1: IDE controller (0x8086:0x7010 rev 0x00)
Comment 1 Richard Purdie 2021-02-04 16:47:33 UTC
root@qemux86:~# cat /proc/version 
Linux version 5.10.12-yocto-standard (oe-user@oe-host) (i686-poky-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.0.20210129) #1 SMP PREEMPT Wed Feb 3 03:17:13 UTC 2021
Comment 2 Randy MacLeod 2021-02-11 15:34:16 UTC
Why doesn't this trigger in the autobuilder tests?
Comment 3 Bruce Ashfield 2021-02-20 20:25:03 UTC
I can see a similar backtrace on boot locally. Moving to "in design"
Comment 4 Bruce Ashfield 2021-02-22 04:25:36 UTC
I've added a config that changes MSI fallback for 32bit x86. The warnings are no longer seen.
Comment 5 Bruce Ashfield 2021-03-09 13:12:37 UTC
This has been merged to master.

If the traces show up again on the AB, we can re-open or create a new bug.