powerpc/prom_init: Pass the "os-term" message to hypervisor
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 12 Mar 2020 07:44:04 +0000 (18:44 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:38:10 +0000 (10:38 +0200)
commitaa3ae3cad9e83bfb0ff38f400bddd35401f6c4c1
treecb3cb67760a86455efc8ac8441333b7d293f40cf
parentb2c639db78cf7e4f30452903ecce90ddeece4f58
powerpc/prom_init: Pass the "os-term" message to hypervisor

[ Upstream commit 74bb84e5117146fa73eb9d01305975c53022b3c3 ]

The "os-term" RTAS calls has one argument with a message address of OS
termination cause. rtas_os_term() already passes it but the recently
added prom_init's version of that missed it; it also does not fill
args correctly.

This passes the message address and initializes the number of arguments.

Fixes: 6a9c930bd775 ("powerpc/prom_init: Add the ESM call to prom_init")
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200312074404.87293-1-aik@ozlabs.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/kernel/prom_init.c