linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] arm64: Fix size of __early_cpu_boot_status
@ 2019-05-15 13:43 Arun KS
  2019-05-15 13:49 ` Will Deacon
  0 siblings, 1 reply; 3+ messages in thread
From: Arun KS @ 2019-05-15 13:43 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Mark Rutland, Shaokun Zhang,
	Arun KS, James Morse, Jun Yao, Steve Capper, Alexandru Elisei,
	linux-arm-kernel, linux-kernel

__early_cpu_boot_status is of type int. Fix up the calls to
update_early_cpu_boot_status, to use a w register.

Signed-off-by: Arun KS <arunks@codeaurora.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
---
 arch/arm64/include/asm/smp.h | 2 +-
 arch/arm64/kernel/head.S     | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/include/asm/smp.h b/arch/arm64/include/asm/smp.h
index 18553f3..59e80ab 100644
--- a/arch/arm64/include/asm/smp.h
+++ b/arch/arm64/include/asm/smp.h
@@ -96,7 +96,7 @@ struct secondary_data {
 };
 
 extern struct secondary_data secondary_data;
-extern long __early_cpu_boot_status;
+extern int __early_cpu_boot_status;
 extern void secondary_entry(void);
 
 extern void arch_send_call_function_single_ipi(int cpu);
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
index fcae3f8..c7175fb 100644
--- a/arch/arm64/kernel/head.S
+++ b/arch/arm64/kernel/head.S
@@ -778,7 +778,7 @@ ENTRY(__enable_mmu)
 	ubfx	x2, x2, #ID_AA64MMFR0_TGRAN_SHIFT, 4
 	cmp	x2, #ID_AA64MMFR0_TGRAN_SUPPORTED
 	b.ne	__no_granule_support
-	update_early_cpu_boot_status 0, x2, x3
+	update_early_cpu_boot_status 0, x2, w3
 	adrp	x2, idmap_pg_dir
 	phys_to_ttbr x1, x1
 	phys_to_ttbr x2, x2
@@ -810,7 +810,7 @@ ENTRY(__cpu_secondary_check52bitva)
 	cbnz	x0, 2f
 
 	update_early_cpu_boot_status \
-		CPU_STUCK_IN_KERNEL | CPU_STUCK_REASON_52_BIT_VA, x0, x1
+		CPU_STUCK_IN_KERNEL | CPU_STUCK_REASON_52_BIT_VA, x0, w1
 1:	wfe
 	wfi
 	b	1b
@@ -822,7 +822,7 @@ ENDPROC(__cpu_secondary_check52bitva)
 __no_granule_support:
 	/* Indicate that this CPU can't boot and is stuck in the kernel */
 	update_early_cpu_boot_status \
-		CPU_STUCK_IN_KERNEL | CPU_STUCK_REASON_NO_GRAN, x1, x2
+		CPU_STUCK_IN_KERNEL | CPU_STUCK_REASON_NO_GRAN, x1, w2
 1:
 	wfe
 	wfi
-- 
1.9.1


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

* Re: [PATCH v1] arm64: Fix size of __early_cpu_boot_status
  2019-05-15 13:43 [PATCH v1] arm64: Fix size of __early_cpu_boot_status Arun KS
@ 2019-05-15 13:49 ` Will Deacon
  2019-05-16  3:29   ` Arun KS
  0 siblings, 1 reply; 3+ messages in thread
From: Will Deacon @ 2019-05-15 13:49 UTC (permalink / raw)
  To: Arun KS
  Cc: Catalin Marinas, Mark Rutland, Shaokun Zhang, James Morse,
	Jun Yao, Steve Capper, Alexandru Elisei, linux-arm-kernel,
	linux-kernel

On Wed, May 15, 2019 at 07:13:19PM +0530, Arun KS wrote:
> __early_cpu_boot_status is of type int. Fix up the calls to
> update_early_cpu_boot_status, to use a w register.
> 
> Signed-off-by: Arun KS <arunks@codeaurora.org>
> Acked-by: Mark Rutland <mark.rutland@arm.com>
> ---
>  arch/arm64/include/asm/smp.h | 2 +-
>  arch/arm64/kernel/head.S     | 6 +++---
>  2 files changed, 4 insertions(+), 4 deletions(-)

Your original patch is now in mainline:

https://git.kernel.org/linus/61cf61d81e32

Is this still needed?

Will

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

* Re: [PATCH v1] arm64: Fix size of __early_cpu_boot_status
  2019-05-15 13:49 ` Will Deacon
@ 2019-05-16  3:29   ` Arun KS
  0 siblings, 0 replies; 3+ messages in thread
From: Arun KS @ 2019-05-16  3:29 UTC (permalink / raw)
  To: Will Deacon
  Cc: Arun KS, Catalin Marinas, Mark Rutland, Shaokun Zhang,
	James Morse, Jun Yao, Steve Capper, Alexandru Elisei,
	linux-arm-kernel, linux-kernel

On Wed, May 15, 2019 at 7:20 PM Will Deacon <will.deacon@arm.com> wrote:
>
> On Wed, May 15, 2019 at 07:13:19PM +0530, Arun KS wrote:
> > __early_cpu_boot_status is of type int. Fix up the calls to
> > update_early_cpu_boot_status, to use a w register.
> >
> > Signed-off-by: Arun KS <arunks@codeaurora.org>
> > Acked-by: Mark Rutland <mark.rutland@arm.com>
> > ---
> >  arch/arm64/include/asm/smp.h | 2 +-
> >  arch/arm64/kernel/head.S     | 6 +++---
> >  2 files changed, 4 insertions(+), 4 deletions(-)
>
> Your original patch is now in mainline:
>
> https://git.kernel.org/linus/61cf61d81e32
>
> Is this still needed?
Thanks for pointing that out. We can ignore this patch.

Regards,
Arun
>
> Will

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

end of thread, other threads:[~2019-05-16  3:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-15 13:43 [PATCH v1] arm64: Fix size of __early_cpu_boot_status Arun KS
2019-05-15 13:49 ` Will Deacon
2019-05-16  3:29   ` Arun KS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).