Re: [PATCH v4] sparc64: shut down to OBP correctly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Larry Bassel <larry.bassel@xxxxxxxxxx>
Date: Thu,  5 Jan 2017 09:23:33 -0800

> The command "shutdown -h -H now" should shut the system down to the
> OBP, however the machine was being powered off in the LDOM case.
> 
> In the LDOM case, the "reboot-command" variable must be set to
> the string "noop" and then ldom_reboot() must be called.
> This will make the OBP ignore the setting of "auto-boot?" after it
> completes the reset. This causes the system to stop at the ok prompt.
> 
> Signed-off-by: Larry Bassel <larry.bassel@xxxxxxxxxx>

This really doesn't make any sense.

The purpose of shutting down to the "OK" prompt is to inspect the
system state using OBP commands from the context of the currently
running kernel boot.

If you allow the software reset to happen and then force a stop at the
"OK" prompt, the intention of the facility has been completely
compromised so this is pointless.

User's who want the behavior you mention can get it by setting the
reboot-command variable from userspace using the 'eeprom' or similar
commands, and then simply reboot.

I am not applying this patch, sorry.

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux