All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ARM: virt: fix wrong HSCTLR.EE bit setting
@ 2014-07-01  3:08 john.liuli
  2014-07-01  9:23 ` Marc Zyngier
  0 siblings, 1 reply; 2+ messages in thread
From: john.liuli @ 2014-07-01  3:08 UTC (permalink / raw)
  To: kvm, kvmarm; +Cc: victor.kamensky, marc.zyngier, hanweidong, Li Liu

From: Li Liu <john.liuli@huawei.com>

HSCTLR.EE is defined as bit[25] referring to arm manual
DDI0606C.b(p1590).

changes v1 -> v2:
1)Use the canonical syntax for orr (orr r7, r7, #(1 << 25))
2)Use the ARM_BE8 macro instead of the open-coded CONFIG_CPU_BIG_ENDIAN

Signed-off-by: Li Liu <john.liuli@huawei.com>
---
 arch/arm/kernel/hyp-stub.S |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S
index 797b1a6..7e666cf 100644
--- a/arch/arm/kernel/hyp-stub.S
+++ b/arch/arm/kernel/hyp-stub.S
@@ -134,9 +134,7 @@ ENTRY(__hyp_stub_install_secondary)
 	mcr	p15, 4, r7, c1, c1, 3	@ HSTR
 
 THUMB(	orr	r7, #(1 << 30)	)	@ HSCTLR.TE
-#ifdef CONFIG_CPU_BIG_ENDIAN
-	orr	r7, #(1 << 9)		@ HSCTLR.EE
-#endif
+ARM_BE8(orr	r7, r7, #(1 << 25))     @ HSCTLR.EE
 	mcr	p15, 4, r7, c1, c0, 0	@ HSCTLR
 
 	mrc	p15, 4, r7, c1, c1, 1	@ HDCR
-- 
1.7.9.5



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] ARM: virt: fix wrong HSCTLR.EE bit setting
  2014-07-01  3:08 [PATCH v2] ARM: virt: fix wrong HSCTLR.EE bit setting john.liuli
@ 2014-07-01  9:23 ` Marc Zyngier
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Zyngier @ 2014-07-01  9:23 UTC (permalink / raw)
  To: john.liuli
  Cc: kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu,
	victor.kamensky@linaro.org, hanweidong@huawei.com

Hi Li,

On 01/07/14 04:08, john.liuli wrote:
> From: Li Liu <john.liuli@huawei.com>
> 
> HSCTLR.EE is defined as bit[25] referring to arm manual
> DDI0606C.b(p1590).
> 
> changes v1 -> v2:
> 1)Use the canonical syntax for orr (orr r7, r7, #(1 << 25))
> 2)Use the ARM_BE8 macro instead of the open-coded CONFIG_CPU_BIG_ENDIAN

Two things:

- This log should not be part of the commit message, but placed after
the "---" below (do a git format-patch, edit the file produced).

- Post it also to linux-arm-kernel@lists.infradead.org, as this touches
the core ARM code and should be reviewed there.

> Signed-off-by: Li Liu <john.liuli@huawei.com>
> ---
>  arch/arm/kernel/hyp-stub.S |    4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S
> index 797b1a6..7e666cf 100644
> --- a/arch/arm/kernel/hyp-stub.S
> +++ b/arch/arm/kernel/hyp-stub.S
> @@ -134,9 +134,7 @@ ENTRY(__hyp_stub_install_secondary)
>  	mcr	p15, 4, r7, c1, c1, 3	@ HSTR
>  
>  THUMB(	orr	r7, #(1 << 30)	)	@ HSCTLR.TE
> -#ifdef CONFIG_CPU_BIG_ENDIAN
> -	orr	r7, #(1 << 9)		@ HSCTLR.EE
> -#endif
> +ARM_BE8(orr	r7, r7, #(1 << 25))     @ HSCTLR.EE
>  	mcr	p15, 4, r7, c1, c0, 0	@ HSCTLR
>  
>  	mrc	p15, 4, r7, c1, c1, 1	@ HDCR
> 

Other than that, it looks good to me. When you repost it, you can add:

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>

Thanks,

	M.
-- 
Jazz is not dead. It just smells funny...

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-01  9:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-01  3:08 [PATCH v2] ARM: virt: fix wrong HSCTLR.EE bit setting john.liuli
2014-07-01  9:23 ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.