Red Hat Bugzilla – Bug 859223
grub2 must support IBM client architecture (CAS) reboot
Last modified: 2012-10-30 19:29:48 EDT
There are cases where the POWER firmware must reboot in order to support specific features requested by a kernel. The kernel calls ibm,client-architecture-support and it may either return or reboot with the new feature set. eg:
Elapsed time since release of system processors: 70959 mins 50 secs
Welcome to GRUB!
Right now we get dumped back into the grub menus and we will end up booting the default kernel the second time around if the user doesn't catch it in time.
grub2 must catch and handle this by immediately booting the same kernel again. As an example the yaboot code does this before booting a kernel:
strlen(bootlastlabel) + 1);
And it checks a couple of properties to see if the reboot count is above 0:
if (prom_get_options("ibm,client-architecture-support-reboot",fw_nbr_reboots, FW_NBR_REBOOTSZ) == -1 )
fw_reboot_cnt = simple_strtol(fw_nbr_reboots,&endp,10);
if (fw_reboot_cnt > 0L)
prom_get_options("boot-last-label", bootlastlabel, BOOTLASTSZ);
I tested Paulo's patch and it works great. Thanks Paulo!
A simple test case for this is to boot an old kernel (I used 2.6.31) and then reboot into Fedora's latest kernel. It starts booting, then you see the client-architecture-support call and a reboot. This time grub boots directly into the latest selected kernel. Even when I edited the menu entry (for additional kernel parameters) my changes were saved and reused on the second boot.
Created attachment 615112 [details]
IBM CAS reboot implementation patch using pjones's guideline
grub2-2.00-10.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing grub2-2.00-10.fc18'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
grub2-2.00-11.fc18 has been submitted as an update for Fedora 18.
grub2-2.00-10.fc18 works fine.