x86: Boot failure on select chromebooks with v6.15-rc5
Hi,
With v6.15-rc5, the below chromebooks were not booting with the following message. These tests were run in drm-ci.
Starting kernel ...
[ 1.843801] ? __pfx_kernel_init+0x10/0x10 [ 1.909838] ? __pfx_kernel_init+0x10/0x10
https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1420485
Failing jobs:
amdgpu:stoney (AMD Stoney Ridge chipset): https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000926
i915:amly (64 bit Intel Whiskey Lake): https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000929
i915:whl (64 bit Intel Amber Lake): https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000931
These tests were passing till v6.14-rc7, and the issue was seen starting in v6.15-rc1. This issue is seen only with these 3 boards and does not affect other chromebooks (the pipeline log shows the other i915 driver tests).
On bisecting the commits, the commit which introduced this issue is, 3181424aeac2f6596534bf43021a10eae294a9b0 x86/early_printk: Add support for MMIO-based UARTs
After reverting the below commits in v6.15-rc5, the board boots and tests are executed:3181424aeac2 x86/early_printk: Add support for MMIO-based UARTs996457176bb7 x86/early_printk: Use 'mmio32' for consistency, fix comments (this fixes 3181424aeac2)
pipeline after reverting the commits,
https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1420493
Please could you look into this issue. Thank you.
Regards,
Vignesh
Quoted 29 lines · Vignesh Raman
Hi,
With v6.15-rc5, the below chromebooks were not booting with the following message. These tests were run in drm-ci.
Starting kernel ...
[ 1.843801] ? __pfx_kernel_init+0x10/0x10 [ 1.909838] ? __pfx_kernel_init+0x10/0x10https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1420485
Failing jobs:
amdgpu:stoney (AMD Stoney Ridge chipset):
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000926i915:amly (64 bit Intel Whiskey Lake):
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000929i915:whl (64 bit Intel Amber Lake):
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000931These tests were passing till v6.14-rc7, and the issue was seen starting in v6.15-rc1. This issue is seen only with these 3 boards and does not affect other chromebooks (the pipeline log shows the other i915 driver tests).
On bisecting the commits, the commit which introduced this issue is,
3181424aeac2f6596534bf43021a10eae294a9b0x86/early_printk: Add support for MMIO-based UARTs
Quoted 5 lines
After reverting the below commits in v6.15-rc5, the board boots and tests are executed:
3181424aeac2x86/early_printk: Add support for MMIO-based UARTs996457176bb7x86/early_printk: Use 'mmio32' for consistency, fix comments (this fixes3181424aeac2)
What boot cmdline does your kernel have? The MMIO-UART patches should only have an effect if the feature is specifically enabled via a boot option:
+ if (!strncmp(buf, "mmio32", 6)) {
+ buf += 6;
+ early_mmio_serial_init(buf); + early_console_register(&early_serial_console, keep); + buf += 4;
+ }
The only other change I can see is the moving of an #if line.
Thanks,
Ingo
Hi Ingo,
Quoted 43 lines · Ingo Molnar
Quoted 29 lines · Vignesh Raman
Hi,
With v6.15-rc5, the below chromebooks were not booting with the following message. These tests were run in drm-ci.
Starting kernel ...
[ 1.843801] ? __pfx_kernel_init+0x10/0x10 [ 1.909838] ? __pfx_kernel_init+0x10/0x10https://gitlab.freedesktop.org/vigneshraman/linux/-/pipelines/1420485
Failing jobs:
amdgpu:stoney (AMD Stoney Ridge chipset):
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000926i915:amly (64 bit Intel Whiskey Lake):
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000929i915:whl (64 bit Intel Amber Lake):
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76000931These tests were passing till v6.14-rc7, and the issue was seen starting in v6.15-rc1. This issue is seen only with these 3 boards and does not affect other chromebooks (the pipeline log shows the other i915 driver tests).
On bisecting the commits, the commit which introduced this issue is,
3181424aeac2f6596534bf43021a10eae294a9b0x86/early_printk: Add support for MMIO-based UARTsQuoted 5 lines
After reverting the below commits in v6.15-rc5, the board boots and tests are executed:
3181424aeac2x86/early_printk: Add support for MMIO-based UARTs996457176bb7x86/early_printk: Use 'mmio32' for consistency, fix comments (this fixes3181424aeac2)What boot cmdline does your kernel have? The MMIO-UART patches should only have an effect if the feature is specifically enabled via a boot option:
Review
Quoted 6 lines
(quoted diff) +6
-0+ if (!strncmp(buf, "mmio32", 6)) { + buf += 6; + early_mmio_serial_init(buf); + early_console_register(&early_serial_console, keep); + buf += 4; + }
amdgpu:stoney:
earlyprintk=uart8250,mmio32,0xfedc6000,115200n8 console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598802/extract-nfsrootfs-wgn1xjer,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp tftpserverip=192.168.201.1
i915:amly:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598804/extract-nfsrootfs-5rlm_b6z,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp tftpserverip=192.168.201.1
i915:whl:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598833/extract-nfsrootfs-3w0w5_mi,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp tftpserverip=192.168.201.1
Regards,
Vignesh
Quoted 5 lines
The only other change I can see is the moving of an #if line.
Thanks,
Ingo
Quoted 24 lines · Vignesh Raman
Review
Quoted 11 lines
What boot cmdline does your kernel have? The MMIO-UART patches should only have an effect if the feature is specifically enabled via a boot option:
(quoted diff) +6
-0+ if (!strncmp(buf, "mmio32", 6)) { + buf += 6; + early_mmio_serial_init(buf); + early_console_register(&early_serial_console, keep); + buf += 4; + }amdgpu:stoney:
earlyprintk=uart8250,mmio32,0xfedc6000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598802/extract-nfsrootfs-wgn1xjer,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1i915:amly:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598804/extract-nfsrootfs-5rlm_b6z,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1
Quoted 5 lines
i915:whl:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598833/extract-nfsrootfs-3w0w5_mi,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1
Well, if you remove the earlyprintk option then it will boot fine, right?
The earlyprintk=mmio32 in v6.15 is a new debugging feature that was tested on a single board by Denis Mukhin AFAIK, and it may or may not work on your particular UART - even assuming that all the parameters are correct.
Thanks,
Ingo
Hi Ingo,
Quoted 27 lines · Ingo Molnar
Quoted 24 lines · Vignesh Raman
Review
Quoted 11 lines
What boot cmdline does your kernel have? The MMIO-UART patches should only have an effect if the feature is specifically enabled via a boot option:
(quoted diff) +6
-0+ if (!strncmp(buf, "mmio32", 6)) { + buf += 6; + early_mmio_serial_init(buf); + early_console_register(&early_serial_console, keep); + buf += 4; + }amdgpu:stoney:
earlyprintk=uart8250,mmio32,0xfedc6000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598802/extract-nfsrootfs-wgn1xjer,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1i915:amly:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598804/extract-nfsrootfs-5rlm_b6z,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1
Quoted 8 lines
Quoted 5 lines
i915:whl:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598833/extract-nfsrootfs-3w0w5_mi,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1Well, if you remove the earlyprintk option then it will boot fine, right?
Yes, it works when mmio32 option is removed.
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76005338
earlyprintk=uart8250,0xde000000,115200n8 console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18599938/extract-nfsrootfs-neuejjq0,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp tftpserverip=192.168.201.1
Quoted 5 lines
The earlyprintk=mmio32 in v6.15 is a new debugging feature that was tested on a single board by Denis Mukhin AFAIK, and it may or may not work on your particular UART - even assuming that all the parameters are correct.
So the earlyprintk=mmio32 debugging feature is needed only for v6.15 and is not necessary in previous kernels (e.g., v6.14 and earlier). Is my understanding correct?
Regards,
Vignesh
Quoted 4 lines
Thanks,
Ingo
Hi,
Quoted 39 lines · Vignesh Raman
Hi Ingo,
Quoted 27 lines · Ingo Molnar
Quoted 24 lines · Vignesh Raman
Review
Quoted 11 lines
What boot cmdline does your kernel have? The MMIO-UART patches should only have an effect if the feature is specifically enabled via a boot option:
(quoted diff) +6
-0+ if (!strncmp(buf, "mmio32", 6)) { + buf += 6; + early_mmio_serial_init(buf); + early_console_register(&early_serial_console, keep); + buf += 4; + }amdgpu:stoney:
earlyprintk=uart8250,mmio32,0xfedc6000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598802/extract-nfsrootfs-wgn1xjer,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1i915:amly:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598804/extract-nfsrootfs-5rlm_b6z,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1Quoted 8 lines
Quoted 5 lines
i915:whl:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598833/extract-nfsrootfs-3w0w5_mi,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1Well, if you remove the earlyprintk option then it will boot fine, right?
Quoted 8 lines
Yes, it works when mmio32 option is removed.
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76005338
earlyprintk=uart8250,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18599938/extract-nfsrootfs-neuejjq0,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1
For the above example, can you please try something like
earlyprintk=mmio32,0xde000000,nocfg
?
In my case, configuring exact baud rate did not work. I started to dig that, but did not finish, because nocfg worked (firmware happened to configure the UART correctly). Using nocfg was sufficient for the system bringup debugging.
Quoted 6 lines
Quoted 6 lines
The earlyprintk=mmio32 in v6.15 is a new debugging feature that was tested on a single board by Denis Mukhin AFAIK, and it may or may not work on your particular UART - even assuming that all the parameters are correct.
Correct, I have tested with one board only and with limited UART configuration combinations.
Quoted 13 lines
So the earlyprintk=mmio32 debugging feature is needed only for v6.15 and is not necessary in previous kernels (e.g., v6.14 and earlier). Is my understanding correct?
Regards,
VigneshQuoted 4 lines
Thanks,
Ingo
Thanks,
Denis
Hi Denis
Quoted 51 lines · On 12/05/25 23:00, [email protected] wrote:
Hi,
Quoted 39 lines · Vignesh Raman
Hi Ingo,
Quoted 27 lines · Ingo Molnar
Quoted 24 lines · Vignesh Raman
Review
Quoted 11 lines
What boot cmdline does your kernel have? The MMIO-UART patches should only have an effect if the feature is specifically enabled via a boot option:
(quoted diff) +6
-0+ if (!strncmp(buf, "mmio32", 6)) { + buf += 6; + early_mmio_serial_init(buf); + early_console_register(&early_serial_console, keep); + buf += 4; + }amdgpu:stoney:
earlyprintk=uart8250,mmio32,0xfedc6000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598802/extract-nfsrootfs-wgn1xjer,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1i915:amly:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598804/extract-nfsrootfs-5rlm_b6z,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1Quoted 8 lines
Quoted 5 lines
i915:whl:
earlyprintk=uart8250,mmio32,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18598833/extract-nfsrootfs-3w0w5_mi,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1Well, if you remove the earlyprintk option then it will boot fine, right?
Quoted 8 lines
Yes, it works when mmio32 option is removed.
https://gitlab.freedesktop.org/vigneshraman/linux/-/jobs/76005338
earlyprintk=uart8250,0xde000000,115200n8 console=ttyS0,115200n8
root=/dev/nfs rw nfsroot=192.168.201.1:/var/lib/lava/dispatcher/tmp/18599938/extract-nfsrootfs-neuejjq0,tcp,hard,v3 init=/init rootwait usbcore.quirks=0bda:8153:k ip=dhcp
tftpserverip=192.168.201.1
Quoted 5 lines
For the above example, can you please try something like
earlyprintk=mmio32,0xde000000,nocfg?
This option didn’t work. For now, we’ll use earlycon instead of earlyprintk to fix the issue.
Thanks.
Regards,
Vignesh
Quoted 32 lines
In my case, configuring exact baud rate did not work. I started to dig that, but did not finish, because
nocfgworked (firmware happened to configure the UART correctly). Usingnocfgwas sufficient for the system bringup debugging.Quoted 6 lines
Quoted 6 lines
The earlyprintk=mmio32 in v6.15 is a new debugging feature that was tested on a single board by Denis Mukhin AFAIK, and it may or may not work on your particular UART - even assuming that all the parameters are correct.
Correct, I have tested with one board only and with limited UART configuration combinations.
Quoted 13 lines
So the earlyprintk=mmio32 debugging feature is needed only for v6.15 and is not necessary in previous kernels (e.g., v6.14 and earlier). Is my understanding correct?
Regards,
VigneshQuoted 4 lines
Thanks,
Ingo
Thanks,
Denis