Re: [PATCH] powerpc: Fix LPCR_VRMASD definition

2016-12-08 Thread Paul Mackerras
On Thu, Dec 08, 2016 at 11:29:30AM +0800, Jia He wrote:
> Fixes: a4b349540a ("powerpc/mm: Cleanup LPCR defines")
> Signed-off-by: Jia He 

Acked-by: Paul Mackerras 


Re: [PATCH] powerpc: Fix LPCR_VRMASD definition

2016-12-07 Thread Aneesh Kumar K.V
Jia He  writes:

> Fixes: a4b349540a ("powerpc/mm: Cleanup LPCR defines")
> Signed-off-by: Jia He 

I sent another one 
https://lkml.kernel.org/r/20161208034213.21700-1-aneesh.ku...@linux.vnet.ibm.com
to fix the same issue. I didn't notice this on the list. 


> ---
>  arch/powerpc/include/asm/reg.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
> index 9e1499f..93ec25e 100644
> --- a/arch/powerpc/include/asm/reg.h
> +++ b/arch/powerpc/include/asm/reg.h
> @@ -337,7 +337,7 @@
>  #define   LPCR_DPFD_SH   52
>  #define   LPCR_DPFD  (ASM_CONST(7) << LPCR_DPFD_SH)
>  #define   LPCR_VRMASD_SH 47
> -#define   LPCR_VRMASD(ASM_CONST(1) << LPCR_VRMASD_SH)
> +#define   LPCR_VRMASD(ASM_CONST(0x1f) << LPCR_VRMASD_SH)
>  #define   LPCR_VRMA_LASM_CONST(0x0008)
>  #define   LPCR_VRMA_LP0  ASM_CONST(0x0001)
>  #define   LPCR_VRMA_LP1  ASM_CONST(0x8000)
> -- 
> 2.5.5



[PATCH] powerpc: Fix LPCR_VRMASD definition

2016-12-07 Thread Jia He
Fixes: a4b349540a ("powerpc/mm: Cleanup LPCR defines")
Signed-off-by: Jia He 
---
 arch/powerpc/include/asm/reg.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h
index 9e1499f..93ec25e 100644
--- a/arch/powerpc/include/asm/reg.h
+++ b/arch/powerpc/include/asm/reg.h
@@ -337,7 +337,7 @@
 #define   LPCR_DPFD_SH 52
 #define   LPCR_DPFD(ASM_CONST(7) << LPCR_DPFD_SH)
 #define   LPCR_VRMASD_SH   47
-#define   LPCR_VRMASD  (ASM_CONST(1) << LPCR_VRMASD_SH)
+#define   LPCR_VRMASD  (ASM_CONST(0x1f) << LPCR_VRMASD_SH)
 #define   LPCR_VRMA_L  ASM_CONST(0x0008)
 #define   LPCR_VRMA_LP0ASM_CONST(0x0001)
 #define   LPCR_VRMA_LP1ASM_CONST(0x8000)
-- 
2.5.5