[Skiboot] [PATCH v2] opal-prd: display explicit message on IBM Power systems
Stewart Smith
stewart at linux.vnet.ibm.com
Thu Dec 3 16:22:14 AEDT 2015
Cédric Le Goater <clg at fr.ibm.com> writes:
> Today, when run on an IBM Power systems, opal-prd complains in syslog
> with a set of messages similar to these :
>
> opal-prd: CTRL: Starting PRD daemon
> opal-prd: I2C: Found Chip: 00000000 engine 1 port 0
> opal-prd: I2C: Found Chip: 00000010 engine 1 port 0
> opal-prd: CTRL: Listening on control socket /run/opal-prd-control
> opal-prd: FW: Can't open PRD device /dev/opal-prd: No such file or directory
> opal-prd: FW: Error initialising PRD channel
> opal-prd: CTRL: stopping PRD daemon
>
> Which are difficult to interpret for a person not initiated to Power
> firmware.
>
> The patch below detects if the platform has support for PRD by looking
> at the device tree property :
>
> /sys/firmware/devicetree/base/ibm,opal/diagnostics/compatible
>
> and stops opal-prd early in the main routine with an explicit
> message for the user.
>
> Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
> ---
>
> Changes since v2:
>
> - use ibm,opal/diagnostics/compatible property to detect PRD support
>
> external/opal-prd/opal-prd.c | 51 +++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 51 insertions(+)
>
Thanks, merged to stable at d379d6d and master as of 3ee71369
More information about the Skiboot
mailing list