All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: Versatile Express: extend the MPIDR range used for pen release check
@ 2013-01-22 10:56 Lorenzo Pieralisi
  2013-01-22 18:25 ` Nicolas Pitre
  0 siblings, 1 reply; 4+ messages in thread
From: Lorenzo Pieralisi @ 2013-01-22 10:56 UTC (permalink / raw)
  To: linux-arm-kernel

In ARM multi-cluster systems the MPIDR affinity level 0 cannot be used as a
single cpu identifier, affinity levels 1 and 2 must be taken into account as
well.
This patch extends the MPIDR usage to affinity levels 1 and 2 in versatile
secondary cores start up code in order to compare the passed pen_release
value with the full-blown affinity mask.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
---
 arch/arm/plat-versatile/headsmp.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/plat-versatile/headsmp.S b/arch/arm/plat-versatile/headsmp.S
index dd703ef..b178d44 100644
--- a/arch/arm/plat-versatile/headsmp.S
+++ b/arch/arm/plat-versatile/headsmp.S
@@ -20,7 +20,7 @@
  */
 ENTRY(versatile_secondary_startup)
 	mrc	p15, 0, r0, c0, c0, 5
-	and	r0, r0, #15
+	bic	r0, #0xff000000
 	adr	r4, 1f
 	ldmia	r4, {r5, r6}
 	sub	r4, r4, r5
-- 
1.7.12

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

* [PATCH] ARM: Versatile Express: extend the MPIDR range used for pen release check
  2013-01-22 10:56 [PATCH] ARM: Versatile Express: extend the MPIDR range used for pen release check Lorenzo Pieralisi
@ 2013-01-22 18:25 ` Nicolas Pitre
  2013-01-22 18:58   ` Lorenzo Pieralisi
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pitre @ 2013-01-22 18:25 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, 22 Jan 2013, Lorenzo Pieralisi wrote:

> In ARM multi-cluster systems the MPIDR affinity level 0 cannot be used as a
> single cpu identifier, affinity levels 1 and 2 must be taken into account as
> well.
> This patch extends the MPIDR usage to affinity levels 1 and 2 in versatile
> secondary cores start up code in order to compare the passed pen_release
> value with the full-blown affinity mask.
> 
> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>

Note that my b.L series makes this patch obsolete.



> ---
>  arch/arm/plat-versatile/headsmp.S | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/plat-versatile/headsmp.S b/arch/arm/plat-versatile/headsmp.S
> index dd703ef..b178d44 100644
> --- a/arch/arm/plat-versatile/headsmp.S
> +++ b/arch/arm/plat-versatile/headsmp.S
> @@ -20,7 +20,7 @@
>   */
>  ENTRY(versatile_secondary_startup)
>  	mrc	p15, 0, r0, c0, c0, 5
> -	and	r0, r0, #15
> +	bic	r0, #0xff000000
>  	adr	r4, 1f
>  	ldmia	r4, {r5, r6}
>  	sub	r4, r4, r5
> -- 
> 1.7.12
> 
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> 

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

* [PATCH] ARM: Versatile Express: extend the MPIDR range used for pen release check
  2013-01-22 18:25 ` Nicolas Pitre
@ 2013-01-22 18:58   ` Lorenzo Pieralisi
  2013-01-22 20:27     ` Nicolas Pitre
  0 siblings, 1 reply; 4+ messages in thread
From: Lorenzo Pieralisi @ 2013-01-22 18:58 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Jan 22, 2013 at 06:25:20PM +0000, Nicolas Pitre wrote:
> On Tue, 22 Jan 2013, Lorenzo Pieralisi wrote:
> 
> > In ARM multi-cluster systems the MPIDR affinity level 0 cannot be used as a
> > single cpu identifier, affinity levels 1 and 2 must be taken into account as
> > well.
> > This patch extends the MPIDR usage to affinity levels 1 and 2 in versatile
> > secondary cores start up code in order to compare the passed pen_release
> > value with the full-blown affinity mask.
> > 
> > Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> > Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
> 
> Note that my b.L series makes this patch obsolete.

This is needed to boot TC2 in the mainline. Agreed, when the power API
BSP support for TC2 is merged this can be removed, but waiting for that to
happen we should fix the current code to enable TC2 in its current state.

Lorenzo

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

* [PATCH] ARM: Versatile Express: extend the MPIDR range used for pen release check
  2013-01-22 18:58   ` Lorenzo Pieralisi
@ 2013-01-22 20:27     ` Nicolas Pitre
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Pitre @ 2013-01-22 20:27 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, 22 Jan 2013, Lorenzo Pieralisi wrote:

> On Tue, Jan 22, 2013 at 06:25:20PM +0000, Nicolas Pitre wrote:
> > On Tue, 22 Jan 2013, Lorenzo Pieralisi wrote:
> > 
> > > In ARM multi-cluster systems the MPIDR affinity level 0 cannot be used as a
> > > single cpu identifier, affinity levels 1 and 2 must be taken into account as
> > > well.
> > > This patch extends the MPIDR usage to affinity levels 1 and 2 in versatile
> > > secondary cores start up code in order to compare the passed pen_release
> > > value with the full-blown affinity mask.
> > > 
> > > Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
> > > Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
> > 
> > Note that my b.L series makes this patch obsolete.
> 
> This is needed to boot TC2 in the mainline. Agreed, when the power API
> BSP support for TC2 is merged this can be removed, but waiting for that to
> happen we should fix the current code to enable TC2 in its current state.

Sensible.

Acked-by: Nicolas Pitre <nico@linaro.org>


Nicolas

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

end of thread, other threads:[~2013-01-22 20:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-22 10:56 [PATCH] ARM: Versatile Express: extend the MPIDR range used for pen release check Lorenzo Pieralisi
2013-01-22 18:25 ` Nicolas Pitre
2013-01-22 18:58   ` Lorenzo Pieralisi
2013-01-22 20:27     ` Nicolas Pitre

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.