From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Ellerman Date: Wed, 25 Mar 2020 10:06:22 +0000 Subject: Re: [PATCH] powerpc/prom_init: Include the termination message in ibm,os-term RTAS call Message-Id: <87zhc4wxy9.fsf@mpe.ellerman.id.au> List-Id: References: <20200324201211.1055236-1-farosas@linux.ibm.com> In-Reply-To: <20200324201211.1055236-1-farosas@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Fabiano Rosas , linuxppc-dev@lists.ozlabs.org Cc: linuxram@us.ibm.com, paulus@samba.org, kvm-ppc@vger.kernel.org Fabiano Rosas writes: > QEMU can now print the ibm,os-term message[1], so let's include it in > the RTAS call. E.g.: > > qemu-system-ppc64: OS terminated: Switch to secure mode failed. > > 1- https://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=A4c3791ae0 > > Signed-off-by: Fabiano Rosas > --- > arch/powerpc/kernel/prom_init.c | 3 +++ > 1 file changed, 3 insertions(+) I have this queued: https://patchwork.ozlabs.org/patch/1253390/ Which I think does the same thing? cheers > diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powerpc/kernel/prom_i= nit.c > index 577345382b23..d543fb6d29c5 100644 > --- a/arch/powerpc/kernel/prom_init.c > +++ b/arch/powerpc/kernel/prom_init.c > @@ -1773,6 +1773,9 @@ static void __init prom_rtas_os_term(char *str) > if (token =3D 0) > prom_panic("Could not get token for ibm,os-term\n"); > os_term_args.token =3D cpu_to_be32(token); > + os_term_args.nargs =3D cpu_to_be32(1); > + os_term_args.args[0] =3D cpu_to_be32(__pa(str)); > + > prom_rtas_hcall((uint64_t)&os_term_args); > } > #endif /* CONFIG_PPC_SVM */ > --=20 > 2.23.0