[PATCH] powerpc/64s: Fix MASKABLE_RELON_EXCEPTION_HV_OOL macro

Alexey Kardashevskiy aik at ozlabs.ru
Tue Feb 6 23:42:20 AEDT 2018


On 06/02/18 23:36, Madhavan Srinivasan wrote:
> Commit f14e953b191f ("powerpc/64s: Add support to take additional parameter in MASKABLE_* macro")
> messed up MASKABLE_RELON_EXCEPTION_HV_OOL macro by adding the wrong
> __SOFTEN__ test which caused guest kernel trash at boot. Patch to fix
> the macro to use SOFTEN_TEST_HV instead of SOFTEN_NOTEST_HV.
> 
> Reported-by: Alexey Kardashevskiy <aik at ozlabs.ru>
> Fix-Suggested-by: Michael Ellerman <mpe at ellerman.id.au>
> Signed-off-by: Madhavan Srinivasan <maddy at linux.vnet.ibm.com>
> ---
>  arch/powerpc/include/asm/exception-64s.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/powerpc/include/asm/exception-64s.h b/arch/powerpc/include/asm/exception-64s.h
> index 176dfb73d42c..471b2274fbeb 100644
> --- a/arch/powerpc/include/asm/exception-64s.h
> +++ b/arch/powerpc/include/asm/exception-64s.h
> @@ -645,7 +645,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943)
>  					  EXC_HV, SOFTEN_TEST_HV, bitmask)
>  
>  #define MASKABLE_RELON_EXCEPTION_HV_OOL(vec, label, bitmask)		\
> -	MASKABLE_EXCEPTION_PROLOG_1(PACA_EXGEN, SOFTEN_NOTEST_HV, vec, bitmask);\
> +	MASKABLE_EXCEPTION_PROLOG_1(PACA_EXGEN, SOFTEN_TEST_HV, vec, bitmask);\
>  	EXCEPTION_RELON_PROLOG_PSERIES_1(label, EXC_HV)
>  
>  /*
> 

Tested-by: Alexey Kardashevskiy <aik at ozlabs.ru>

-- 
Alexey


More information about the Linuxppc-dev mailing list