open-power / petitboot

GNU General Public License v2.0
212 stars 56 forks source link

Petitboot: v1.15: No video output after kexec #109

Closed carlosgonz0 closed 4 months ago

carlosgonz0 commented 5 months ago

I have a very weird issue on Petitboot 1.15 that the Operating system can not video output after kexec, however after unlock luks by serial console the video output come work, however older Petitboot version worked without to use serial console to unlock luks. Computer Blackbird Power9, Linux 6.8.8, Mesa 23.2 Thanks

jk-ozlabs commented 5 months ago

The petitboot process itself doesn't control any of the video output; you'll want to check out what the kernel is doing with regards to the video driver init (and behaviour over kexec).

Do blackbird have a mechanism to support the kernel used there?

carlosgonz0 commented 5 months ago

The petitboot process itself doesn't control any of the video output; you'll want to check out what the kernel is doing with regards to the video driver init (and behaviour over kexec).

Ok i will try to get traces about ast driver on host. Ok looks like the issue will be at Linux in Skiroot i guess.

Do blackbird have a mechanism to support the kernel used there?

I not sure what you mean to say?

Thanks

jk-ozlabs commented 5 months ago

Ok i will try to get traces about ast driver on host. Ok looks like the issue will be at Linux in Skiroot i guess.

Yep, the traces from the host ast driver would be handy there. I can take a look at those, but it has been a while since I have dealt with the ast video driver!

I not sure what you mean to say?

The folks that provided your petitboot update - do they have a mechanism to support that update?

carlosgonz0 commented 5 months ago

The folks that provided your petitboot update - do they have a mechanism to support that update?

They shipped Petitiboot 1.15 as you can see on changelog: Firmware 2.10: PNOR:

Update hostboot to latest upstream version
Update skiboot to latest upstream version
Update petitboot to latest upstream version
Update hcode to latest upstream version
Update skiroot to Linux 6.6.y stable branch
Enable Infiniband drivers in skiroot
Fix sporadic crash on paired-core machines (higher than 8 core) under specific workloads
Compress hostboot runtime to free up additional space in the BOOTKERNFW partition
Enable firmware component signature checks during IPL by default. Note that this uses the well-known (insecure) public transitional key in the official firmware builds, but makes the transition to a machine owner's key easier should the user wish to enable a secure boot chain using their own signing keys.

https://gitlab.raptorengineering.com/openpower-firmware/machine-blackbird/op-build/-/commits/02-29-2024/

I really interested what is going on... i will share the ast host traces here soon, however with petitboot 1.15 i either can not boot any usb iso or img. I do not think this issue come from petitboot 1.15 but on older version if. At the moment i think that issue may come from kexecore but i just guessing.........

Thanks of advance

carlosgonz0 commented 4 months ago

carlosgonz@blackbird:~$ sudo dmesg | grep ast [ 0.678486] ast 0005:02:00.0: enabling device (0140 -> 0142) [ 0.678498] ast 0005:02:00.0: Using device-tree for configuration [ 0.678501] ast 0005:02:00.0: AST 2500 detected [ 0.678580] ast 0005:02:00.0: [drm] Using Sil164 TMDS transmitter [ 0.678585] ast 0005:02:00.0: [drm] dram MCLK=800 Mhz type=7 bus_width=16 [ 0.679179] [drm] Initialized ast 0.1.0 20120228 for 0005:02:00.0 on minor 0 [ 0.682389] ast 0005:02:00.0: [drm] fb0: astdrmfb frame buffer device [ 45.775068] Bluetooth: BNEP filters: protocol multicast

carlosgonz@blackbird:~$ sudo dmesg | grep failed [ 0.138314] pci 0000:00:00.0: bridge window [io size 0x1000]: failed to assign [ 0.138408] pci 0000:01:00.0: BAR 4 [io size 0x0100]: failed to assign [ 0.138553] pci 0002:00:00.0: bridge window [io size 0x1000]: failed to assign [ 0.138579] pci 0002:01:00.0: BAR 4 [io size 0x0020]: failed to assign [ 0.138588] pci 0002:01:00.0: BAR 0 [io size 0x0008]: failed to assign [ 0.138597] pci 0002:01:00.0: BAR 2 [io size 0x0008]: failed to assign [ 0.138606] pci 0002:01:00.0: BAR 1 [io size 0x0004]: failed to assign [ 0.138615] pci 0002:01:00.0: BAR 3 [io size 0x0004]: failed to assign [ 0.139044] pci 0005:00:00.0: bridge window [io size 0x1000]: failed to assign [ 0.139059] pci 0005:01:00.0: bridge window [io size 0x1000]: failed to assign [ 0.139091] pci 0005:02:00.0: BAR 2 [io size 0x0080]: failed to assign

carlosgonz0 commented 4 months ago

OK i fixed the issue by adding...

ast to: /etc/initramfs-tools/modules then update-initramfs -u -k all console=tty0 to: /etc/default/grub(GRUB_CMDLINE_LINUX="console=tty0") then update-grub

Full thanks to @jk-ozlabs for the support.

jk-ozlabs commented 4 months ago

Oh, great to hear that it's sorted. Just for my own understanding & public record: the fix included:

Is that correct? (mainly: the initramfs you're referring to was the installed OS' one, right?)

carlosgonz0 commented 4 months ago

Is that correct?

Yes it correct.

(mainly: the initramfs you're referring to was the installed OS' one, right?)

Yes on an installed OS, in my case i using: GNU OS (trisquel aramo).