<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>16150</bug_id>
          
          <creation_ts>2026-01-26 15:10:15 +0000</creation_ts>
          <short_desc>AB-INT: oe-selftest-armhost: Failed to start QEMU (hangs with drm)</short_desc>
          <delta_ts>2026-07-22 15:08:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>oeqa/runtime</component>
          <version>unspecified</version>
          <rep_platform>ARM</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>AB-INT</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mathieu Dubois-Briand">mathieu.dubois-briand</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>kexin.hao</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>yoann.congal</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>104071</commentid>
    <comment_count>0</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-01-26 15:10:15 +0000</bug_when>
    <thetext>We got this failure on master:

RuntimeError: core-image-minimal - FAILED to start qemu - check the task log and the boot log
...
WARNING: Target didn&apos;t reach login banner in 1000 seconds (01/26/26 01:56:02)
WARNING: Last 25 lines of login console (17587):
[    0.770309] pci 0000:00:01.0: BAR 1 [mem 0x10040000-0x10040fff]: assigned
[    0.770336] pci 0000:00:02.0: BAR 1 [mem 0x10041000-0x10041fff]: assigned
[    0.770355] pci 0000:00:03.0: BAR 1 [mem 0x10042000-0x10042fff]: assigned
[    0.770367] pci 0000:00:05.0: BAR 1 [mem 0x10043000-0x10043fff]: assigned
[    0.770379] pci 0000:00:06.0: BAR 1 [mem 0x10044000-0x10044fff]: assigned
[    0.770397] pci 0000:00:03.0: BAR 0 [io  0x1000-0x107f]: assigned
[    0.770412] pci 0000:00:05.0: BAR 0 [io  0x1080-0x10bf]: assigned
[    0.770430] pci 0000:00:01.0: BAR 0 [io  0x10c0-0x10df]: assigned
[    0.770440] pci 0000:00:02.0: BAR 0 [io  0x10e0-0x10ff]: assigned
[    0.770453] pci_bus 0000:00: resource 4 [io  0x0000-0xffff]
[    0.770456] pci_bus 0000:00: resource 5 [mem 0x10000000-0x3efeffff]
[    0.770457] pci_bus 0000:00: resource 6 [mem 0x8000000000-0xffffffffff]
[    0.770488] pci 0000:00:04.0: enabling device (0000 -&gt; 0002)
[    0.772410] virtio-pci 0000:00:01.0: enabling device (0000 -&gt; 0003)
[    0.775087] virtio-pci 0000:00:02.0: enabling device (0000 -&gt; 0003)
[    0.777370] virtio-pci 0000:00:03.0: enabling device (0000 -&gt; 0003)
[    0.779704] virtio-pci 0000:00:05.0: enabling device (0000 -&gt; 0003)
[    0.784075] virtio-pci 0000:00:06.0: enabling device (0000 -&gt; 0002)
[    0.826674] [drm] pci: virtio-gpu-pci detected at 0000:00:06.0
[    0.827030] [drm] features: -virgl +edid -resource_blob -host_visible
[    0.827033] [drm] features: -context_init
[    0.828017] [drm] number of scanouts: 1
[    0.828023] [drm] number of cap sets: 0
[    0.844502] [drm] Initialized virtio_gpu 0.1.0 for 0000:00:06.0 on minor 0
[    0.881866] Console: switching to colour frame buffer device 160x50

Note, we had a similar error a few months ago, that was linked with qemu upgrade:
https://bugzilla.yoctoproject.org/show_bug.cgi?id=16001</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104073</commentid>
    <comment_count>1</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-01-26 15:28:58 +0000</bug_when>
    <thetext>oe-selftest-armhost ubuntu2504-vk-arm1 master completed at 2026-01-26 02:48:56+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3221/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104098</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-01-29 15:37:42 +0000</bug_when>
    <thetext>Richard checked the logs after this occurred but didn&apos;t find anything useful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104444</commentid>
    <comment_count>3</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-02-27 11:05:33 +0000</bug_when>
    <thetext>qemuarm64-ptest ubuntu2204-vk-arm2 master completed at 2026-02-27 10:42:08+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/3131/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104445</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-02-27 11:07:07 +0000</bug_when>
    <thetext>Logs from that build:
https://valkyrie.yocto.io/pub/shared-failure-data/qemu_boot_log.20260227100156.2
https://valkyrie.yocto.io/pub/shared-failure-data/log.do_testimage.816104

Nothing &apos;interesting&apos; I could find.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104446</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-02-27 11:09:21 +0000</bug_when>
    <thetext>One note is that there is no corresponding qemu_boot_log.20260227100156
That serial port seems to only have data after console init.

https://valkyrie.yocto.io/pub/shared-failure-data/16150-success/ contains output from a successful ptest run from the same build for comparison</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104447</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-02-27 11:12:07 +0000</bug_when>
    <thetext>Interestingly, one log has &quot;printk: legacy console [hvc0] enabled&quot;, the other does not</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104456</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-02-27 12:51:20 +0000</bug_when>
    <thetext>Since I was curious, I tried this:

Index: printk/printk.c
===================================================================
--- a/kernel/printk.orig/printk.c
+++ b/kernel/printk/printk.c
@@ -3979,6 +3979,9 @@ void register_console(struct console *ne
 	u64 init_seq;
 	int err;
 
+	if (strcmp(newcon-&gt;name, &quot;hvc&quot;) == 0)
+		mdelay(500);
+
 	console_list_lock();
 
 	for_each_console(con) {

which did change the logs to look like:

[    0.691950] virtio-pci 0000:00:05.0: enabling device (0000 -&gt; 0003)
[    0.693791] virtio-pci 0000:00:06.0: enabling device (0000 -&gt; 0002)
[    0.762657] [drm] pci: virtio-gpu-pci detected at 0000:00:06.0
[    0.763553] [drm] features: -virgl +edid -resource_blob -host_visible
[    0.763557] [drm] features: -context_init
[    0.766006] [drm] number of scanouts: 1
[    0.766028] [drm] number of cap sets: 0
[    1.261454] printk: legacy console [hvc0] enabled
[    1.261948] [drm] Initialized virtio_gpu 0.1.0 for 0000:00:06.0 on minor 0
[    1.268542] Console: switching to colour frame buffer device 160x50
[    1.273368] virtio-pci 0000:00:06.0: [drm] fb0: virtio_gpudrmfb frame buffer device
[    1.278279] brd: module loaded
[    1.278859] virtio_blk virtio2: 4/0/0 default/read/poll queues

so I was able to delay the console line to after most of the drm lines but now the virtio_gpu line and not the console switching</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104457</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-02-27 13:23:04 +0000</bug_when>
    <thetext>I was pointed at:

https://www.kernel.org/doc/Documentation/admin-guide/serial-console.rst

&quot;&quot;&quot;
The behavior is more complicated when the same device type is defined more
times. In this case, there are the following two rules:

1. The output will appear only on the first device of each defined type.

2. ``/dev/console`` will be associated with the first registered device.
   Where the registration order depends on how kernel initializes various
   subsystems.
&quot;&quot;&quot;

so is /dev/console sometimes going somewhere else? Would that explain the &quot;hang&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104458</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-02-27 17:35:11 +0000</bug_when>
    <thetext>To try and rule out ordering completely, I deferred the hvc console init by patching:

Index: drivers/tty/hvc/hvc_console.c
===================================================================
--- a/drivers/tty/hvc/hvc_console.c
+++ b/drivers/tty/hvc/hvc_console.c
@@ -243,7 +243,7 @@ static int __init hvc_console_init(void)
        register_console(&amp;hvc_console);
        return 0;
 }
-console_initcall(hvc_console_init);
+late_initcall(hvc_console_init);
 
 /* callback when the kboject ref count reaches zero. */
 static void hvc_port_destruct(struct tty_port *po

This did move the printk line much later in the boot but didn&apos;t reproduce the &quot;hang&quot;. It seems there is therefore something else going on here...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104769</commentid>
    <comment_count>10</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-23 08:55:25 +0000</bug_when>
    <thetext>pkgman-non-rpm debian12-vk-7 master&amp;master-next completed at 2026-03-19 16:10:23+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/67/builds/3445/steps/19/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104845</commentid>
    <comment_count>11</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-03-27 09:53:49 +0000</bug_when>
    <thetext>qemuarm-tc debian12-vk-9 master-next completed at 2026-03-26 19:24:51+00:00
https://valkyrie.yocto.io/pub/non-release/20260326-108/testresults/qemuarm-tc/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/42/builds/3415/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104950</commentid>
    <comment_count>12</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-04-03 08:14:24 +0000</bug_when>
    <thetext>qemuarm64-musl-ptest ubuntu2504-vk-arm1 master-next completed at 2026-04-02 11:01:54+00:00
https://valkyrie.yocto.io/pub/non-release/20260402-63/testresults/qemuarm64-musl-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/204/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104964</commentid>
    <comment_count>13</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-04-07 08:45:36 +0000</bug_when>
    <thetext>qemuarm-alt ubuntu2510-vk-1 master-next completed at 2026-04-04 00:04:53+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/3496/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105076</commentid>
    <comment_count>14</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-04-15 13:29:07 +0000</bug_when>
    <thetext>oe-selftest-armhost ubuntu2404-vk-arm1 mathieu/master-next completed at 2026-04-14 19:33:19+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3762/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105081</commentid>
    <comment_count>15</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-04-15 15:24:04 +0000</bug_when>
    <thetext>A BSP-ish issue, CCing Kexin from our BSP team who -may be able- to find time to work on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105121</commentid>
    <comment_count>16</comment_count>
    <who name="Yoann Congal">yoann.congal</who>
    <bug_when>2026-04-17 08:13:41 +0000</bug_when>
    <thetext>qemuarm64-ptest ubuntu2404-vk-arm1 whinlatter completed at 2026-04-17 02:24:36+00:00
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/61/builds/3503</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105251</commentid>
    <comment_count>17</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-04-24 06:54:17 +0000</bug_when>
    <thetext>qemuarm64-ptest ubuntu2404-vk-arm1 master completed at 2026-04-24 02:07:47+00:00
https://valkyrie.yocto.io/pub/non-release/20260424-8/testresults/qemuarm64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/3554/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105355</commentid>
    <comment_count>18</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-05-05 07:59:46 +0000</bug_when>
    <thetext>qemuarm-alt debian12-vk-9 mathieu/master-next completed at 2026-05-05 07:23:33+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/74/builds/3677/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105575</commentid>
    <comment_count>19</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-05-26 08:56:10 +0000</bug_when>
    <thetext>oe-selftest-armhost ubuntu2404-vk-arm1 master&amp;master-next completed at 2026-05-19 07:15:33+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/3968/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105615</commentid>
    <comment_count>20</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-05-28 13:16:30 +0000</bug_when>
    <thetext>Bulk move of 6.0 Medium bugs to 6.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105748</commentid>
    <comment_count>21</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-06-05 08:15:30 +0000</bug_when>
    <thetext>qemuarm64-musl-ptest ubuntu2404-vk-arm2 master&amp;master-next completed at 2026-06-04 00:51:57+00:00
https://valkyrie.yocto.io/pub/non-release/20260603-116/testresults/qemuarm64-musl-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/494/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106002</commentid>
    <comment_count>22</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-06-25 10:23:41 +0000</bug_when>
    <thetext>qemuarm debian12-vk-7 mathieu/master-next completed at 2026-06-24 08:54:32+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/16/builds/4026/steps/14/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106033</commentid>
    <comment_count>23</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-06-29 08:29:58 +0000</bug_when>
    <thetext>oe-selftest-armhost ubuntu2404-vk-arm1 master&amp;mathieu/master-next completed at 2026-06-26 12:15:05+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/4208/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106066</commentid>
    <comment_count>24</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-07-01 16:18:22 +0000</bug_when>
    <thetext>qemuarm-oecore debian11-vk-3 master completed at 2026-06-30 11:54:53+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/40/builds/4015/steps/13/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106148</commentid>
    <comment_count>25</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-07-09 15:39:17 +0000</bug_when>
    <thetext>oe-selftest-armhost ubuntu2404-vk-arm2 mathieu/master-next completed at 2026-07-08 19:41:22+00:00
https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/4306/steps/15/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106268</commentid>
    <comment_count>26</comment_count>
    <who name="Mathieu Dubois-Briand">mathieu.dubois-briand</who>
    <bug_when>2026-07-22 15:08:55 +0000</bug_when>
    <thetext>qemuarm64-ptest ubuntu2404-vk-arm1 master-next completed at 2026-07-21 17:23:03+00:00
https://valkyrie.yocto.io/pub/non-release/20260721-84/testresults/qemuarm64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/4066/steps/13/logs/stdio</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>