[Skiboot] [PATCH V7 09/12] errorlog: Replace elog_init() with opal_elog_init() for QEMU platform

Mukesh Ojha mukesh02 at linux.vnet.ibm.com
Mon Sep 26 16:03:55 AEST 2016



On Wednesday 07 September 2016 03:51 PM, Mukesh Ojha wrote:
> Presently qemu platform initializes opal_init(), but does not have
> platform hook to write error log to host OS.
>
> This patch replaces opal_init() with opal_elog_init() call...which
> calls opal_init() and also does OPAL elog API registration.

s/opal_init/elog_init

-Mukesh

>
> Following patch adds generic ELOG interface.. which makes use of ELOG
> OPAL calls.
>
> Signed-off-by: Mukesh Ojha <mukesh02 at linux.vnet.ibm.com>
> Reviewed-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
> ---
> Changes in V7:
>   - New patch.
>
>   platforms/qemu/qemu.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/platforms/qemu/qemu.c b/platforms/qemu/qemu.c
> index 0c583f1..73415a4 100644
> --- a/platforms/qemu/qemu.c
> +++ b/platforms/qemu/qemu.c
> @@ -92,8 +92,8 @@ static void qemu_init(void)
>
>   	/* Register the BT interface with the IPMI layer */
>   	bt_init();
> -	/* Initialize elog */
> -	elog_init();
> +	/* Initialize error log */
> +	opal_elog_init();
>   	ipmi_sel_init();
>   	ipmi_wdt_init();
>   	ipmi_opal_init();



More information about the Skiboot mailing list