@@ -546,6 +546,8 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
op_display(OP_LOG, OP_MOD_INIT, 0x000B);
+ add_fast_reboot_dt_entries();
+
/* Create the device tree blob to boot OS. */
fdt = create_dtb(dt_root, false);
if (!fdt) {
@@ -71,3 +71,13 @@ supported POWER8 systems.
On the earliest POWER8 OPAL systems, there was `ibm,heartbeat-freq` instead.
However, no OS at the time ever looked at that value, so it can be ignored
by any new operating systems.
+
+fast-reboot property
+^^^^^^^^^^^^^^^^^^^^
+
+This property of the `ibm,opal` node is an option property that will either be
+the string `okay` or the reason the fast reboot feature was disabled on boot.
+
+The motivation behind adding this property is to help the OPAL test suite work
+out if it should even try the fast reboot test on a particular platform
+(without it having to resort to grepping firmware logs).
@@ -182,6 +182,7 @@ extern int64_t opal_signal_system_reset(int cpu_nr);
/* Fast reboot support */
extern void disable_fast_reboot(const char *reason);
+extern void add_fast_reboot_dt_entries(void);
extern void fast_reboot(void);
extern void __noreturn __secondary_cpu_entry(void);
extern void __noreturn load_and_boot_kernel(bool is_reboot);
this means that if it's permanently disabled on boot, the test suite can pick that up and not try a fast reboot test. Signed-off-by: Stewart Smith <stewart@linux.ibm.com> --- core/init.c | 2 ++ doc/device-tree/ibm,opal.rst | 10 ++++++++++ include/skiboot.h | 1 + 3 files changed, 13 insertions(+)