All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
@ 2021-01-18 13:01 ` Marc Zyngier
  0 siblings, 0 replies; 8+ messages in thread
From: Marc Zyngier @ 2021-01-18 13:01 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm; +Cc: Catalin Marinas, kernel-team, Will Deacon

Since GCC < 5.1 has been shown to be unsuitable for the arm64 kernel,
let's drop the workaround for the 'S' asm constraint that GCC 4.9
doesn't always grok.

This is effectively a revert of 9fd339a45be5 ("arm64: Work around
broken GCC 4.9 handling of "S" constraint").

Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 arch/arm64/include/asm/kvm_asm.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/arch/arm64/include/asm/kvm_asm.h b/arch/arm64/include/asm/kvm_asm.h
index 8a33d83ea843..7ccf770c53d9 100644
--- a/arch/arm64/include/asm/kvm_asm.h
+++ b/arch/arm64/include/asm/kvm_asm.h
@@ -199,12 +199,6 @@ extern void __vgic_v3_init_lrs(void);
 
 extern u32 __kvm_get_mdcr_el2(void);
 
-#if defined(GCC_VERSION) && GCC_VERSION < 50000
-#define SYM_CONSTRAINT	"i"
-#else
-#define SYM_CONSTRAINT	"S"
-#endif
-
 /*
  * Obtain the PC-relative address of a kernel symbol
  * s: symbol
@@ -221,7 +215,7 @@ extern u32 __kvm_get_mdcr_el2(void);
 		typeof(s) *addr;					\
 		asm("adrp	%0, %1\n"				\
 		    "add	%0, %0, :lo12:%1\n"			\
-		    : "=r" (addr) : SYM_CONSTRAINT (&s));		\
+		    : "=r" (addr) : "S" (&s));				\
 		addr;							\
 	})
 
-- 
2.29.2

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
@ 2021-01-18 13:01 ` Marc Zyngier
  0 siblings, 0 replies; 8+ messages in thread
From: Marc Zyngier @ 2021-01-18 13:01 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm; +Cc: Catalin Marinas, kernel-team, Will Deacon

Since GCC < 5.1 has been shown to be unsuitable for the arm64 kernel,
let's drop the workaround for the 'S' asm constraint that GCC 4.9
doesn't always grok.

This is effectively a revert of 9fd339a45be5 ("arm64: Work around
broken GCC 4.9 handling of "S" constraint").

Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 arch/arm64/include/asm/kvm_asm.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/arch/arm64/include/asm/kvm_asm.h b/arch/arm64/include/asm/kvm_asm.h
index 8a33d83ea843..7ccf770c53d9 100644
--- a/arch/arm64/include/asm/kvm_asm.h
+++ b/arch/arm64/include/asm/kvm_asm.h
@@ -199,12 +199,6 @@ extern void __vgic_v3_init_lrs(void);
 
 extern u32 __kvm_get_mdcr_el2(void);
 
-#if defined(GCC_VERSION) && GCC_VERSION < 50000
-#define SYM_CONSTRAINT	"i"
-#else
-#define SYM_CONSTRAINT	"S"
-#endif
-
 /*
  * Obtain the PC-relative address of a kernel symbol
  * s: symbol
@@ -221,7 +215,7 @@ extern u32 __kvm_get_mdcr_el2(void);
 		typeof(s) *addr;					\
 		asm("adrp	%0, %1\n"				\
 		    "add	%0, %0, :lo12:%1\n"			\
-		    : "=r" (addr) : SYM_CONSTRAINT (&s));		\
+		    : "=r" (addr) : "S" (&s));				\
 		addr;							\
 	})
 
-- 
2.29.2


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
  2021-01-18 13:01 ` Marc Zyngier
@ 2021-01-18 16:26   ` Catalin Marinas
  -1 siblings, 0 replies; 8+ messages in thread
From: Catalin Marinas @ 2021-01-18 16:26 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: kernel-team, Will Deacon, kvmarm, linux-arm-kernel

On Mon, Jan 18, 2021 at 01:01:29PM +0000, Marc Zyngier wrote:
> Since GCC < 5.1 has been shown to be unsuitable for the arm64 kernel,
> let's drop the workaround for the 'S' asm constraint that GCC 4.9
> doesn't always grok.
> 
> This is effectively a revert of 9fd339a45be5 ("arm64: Work around
> broken GCC 4.9 handling of "S" constraint").
> 
> Signed-off-by: Marc Zyngier <maz@kernel.org>

It looks like I merged this fix in -rc1. Do you want me to merge the
revert as well or you'll handle it?

-- 
Catalin
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* Re: [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
@ 2021-01-18 16:26   ` Catalin Marinas
  0 siblings, 0 replies; 8+ messages in thread
From: Catalin Marinas @ 2021-01-18 16:26 UTC (permalink / raw)
  To: Marc Zyngier; +Cc: kernel-team, Will Deacon, kvmarm, linux-arm-kernel

On Mon, Jan 18, 2021 at 01:01:29PM +0000, Marc Zyngier wrote:
> Since GCC < 5.1 has been shown to be unsuitable for the arm64 kernel,
> let's drop the workaround for the 'S' asm constraint that GCC 4.9
> doesn't always grok.
> 
> This is effectively a revert of 9fd339a45be5 ("arm64: Work around
> broken GCC 4.9 handling of "S" constraint").
> 
> Signed-off-by: Marc Zyngier <maz@kernel.org>

It looks like I merged this fix in -rc1. Do you want me to merge the
revert as well or you'll handle it?

-- 
Catalin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
  2021-01-18 16:26   ` Catalin Marinas
@ 2021-01-18 16:28     ` Marc Zyngier
  -1 siblings, 0 replies; 8+ messages in thread
From: Marc Zyngier @ 2021-01-18 16:28 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: kernel-team, Will Deacon, kvmarm, linux-arm-kernel

On 2021-01-18 16:26, Catalin Marinas wrote:
> On Mon, Jan 18, 2021 at 01:01:29PM +0000, Marc Zyngier wrote:
>> Since GCC < 5.1 has been shown to be unsuitable for the arm64 kernel,
>> let's drop the workaround for the 'S' asm constraint that GCC 4.9
>> doesn't always grok.
>> 
>> This is effectively a revert of 9fd339a45be5 ("arm64: Work around
>> broken GCC 4.9 handling of "S" constraint").
>> 
>> Signed-off-by: Marc Zyngier <maz@kernel.org>
> 
> It looks like I merged this fix in -rc1. Do you want me to merge the
> revert as well or you'll handle it?

It'd make sense if it went via the arm64 tree as well.

Thanks,

         M.
-- 
Jazz is not dead. It just smells funny...
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* Re: [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
@ 2021-01-18 16:28     ` Marc Zyngier
  0 siblings, 0 replies; 8+ messages in thread
From: Marc Zyngier @ 2021-01-18 16:28 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: kernel-team, Will Deacon, kvmarm, linux-arm-kernel

On 2021-01-18 16:26, Catalin Marinas wrote:
> On Mon, Jan 18, 2021 at 01:01:29PM +0000, Marc Zyngier wrote:
>> Since GCC < 5.1 has been shown to be unsuitable for the arm64 kernel,
>> let's drop the workaround for the 'S' asm constraint that GCC 4.9
>> doesn't always grok.
>> 
>> This is effectively a revert of 9fd339a45be5 ("arm64: Work around
>> broken GCC 4.9 handling of "S" constraint").
>> 
>> Signed-off-by: Marc Zyngier <maz@kernel.org>
> 
> It looks like I merged this fix in -rc1. Do you want me to merge the
> revert as well or you'll handle it?

It'd make sense if it went via the arm64 tree as well.

Thanks,

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
  2021-01-18 13:01 ` Marc Zyngier
@ 2021-01-20 13:01   ` Will Deacon
  -1 siblings, 0 replies; 8+ messages in thread
From: Will Deacon @ 2021-01-20 13:01 UTC (permalink / raw)
  To: linux-arm-kernel, Marc Zyngier, kvmarm
  Cc: catalin.marinas, kernel-team, Will Deacon

On Mon, 18 Jan 2021 13:01:29 +0000, Marc Zyngier wrote:
> Since GCC < 5.1 has been shown to be unsuitable for the arm64 kernel,
> let's drop the workaround for the 'S' asm constraint that GCC 4.9
> doesn't always grok.
> 
> This is effectively a revert of 9fd339a45be5 ("arm64: Work around
> broken GCC 4.9 handling of "S" constraint").

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
      https://git.kernel.org/arm64/c/7001d4af926b

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

* Re: [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
@ 2021-01-20 13:01   ` Will Deacon
  0 siblings, 0 replies; 8+ messages in thread
From: Will Deacon @ 2021-01-20 13:01 UTC (permalink / raw)
  To: linux-arm-kernel, Marc Zyngier, kvmarm
  Cc: catalin.marinas, kernel-team, Will Deacon

On Mon, 18 Jan 2021 13:01:29 +0000, Marc Zyngier wrote:
> Since GCC < 5.1 has been shown to be unsuitable for the arm64 kernel,
> let's drop the workaround for the 'S' asm constraint that GCC 4.9
> doesn't always grok.
> 
> This is effectively a revert of 9fd339a45be5 ("arm64: Work around
> broken GCC 4.9 handling of "S" constraint").

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64: Drop workaround for broken 'S' constraint with GCC 4.9
      https://git.kernel.org/arm64/c/7001d4af926b

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-01-20 13:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 13:01 [PATCH] arm64: Drop workaround for broken 'S' constraint with GCC 4.9 Marc Zyngier
2021-01-18 13:01 ` Marc Zyngier
2021-01-18 16:26 ` Catalin Marinas
2021-01-18 16:26   ` Catalin Marinas
2021-01-18 16:28   ` Marc Zyngier
2021-01-18 16:28     ` Marc Zyngier
2021-01-20 13:01 ` Will Deacon
2021-01-20 13:01   ` Will Deacon

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.