linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: tegra: enable data prefetch on L2
@ 2012-11-07  1:26 Joseph Lo
  2012-11-09 10:41 ` Peter De Schrijver
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Joseph Lo @ 2012-11-07  1:26 UTC (permalink / raw)
  To: linux-arm-kernel

Enable the data prefetch on L2. The bit28 in aux ctrl register.

Signed-off-by: Joseph Lo <josephl@nvidia.com>
---
 arch/arm/mach-tegra/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
index c25746e..c3dee56 100644
--- a/arch/arm/mach-tegra/common.c
+++ b/arch/arm/mach-tegra/common.c
@@ -124,7 +124,7 @@ static void __init tegra_init_cache(void)
 
 	cache_type = readl(p + L2X0_CACHE_TYPE);
 	aux_ctrl = (cache_type & 0x700) << (17-8);
-	aux_ctrl |= 0x6C000001;
+	aux_ctrl |= 0x7C000001;
 
 	ret = l2x0_of_init(aux_ctrl, 0x8200c3fe);
 	if (!ret)
-- 
1.7.0.4

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

* [PATCH] ARM: tegra: enable data prefetch on L2
  2012-11-07  1:26 [PATCH] ARM: tegra: enable data prefetch on L2 Joseph Lo
@ 2012-11-09 10:41 ` Peter De Schrijver
  2012-11-09 21:59 ` Stephen Warren
  2012-11-12 12:19 ` Peter De Schrijver
  2 siblings, 0 replies; 5+ messages in thread
From: Peter De Schrijver @ 2012-11-09 10:41 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Nov 07, 2012 at 02:26:37AM +0100, Joseph Lo wrote:
> Enable the data prefetch on L2. The bit28 in aux ctrl register.
> 
> Signed-off-by: Joseph Lo <josephl@nvidia.com>

Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>

Cheers,

Peter.

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

* [PATCH] ARM: tegra: enable data prefetch on L2
  2012-11-07  1:26 [PATCH] ARM: tegra: enable data prefetch on L2 Joseph Lo
  2012-11-09 10:41 ` Peter De Schrijver
@ 2012-11-09 21:59 ` Stephen Warren
  2012-11-12 12:19 ` Peter De Schrijver
  2 siblings, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2012-11-09 21:59 UTC (permalink / raw)
  To: linux-arm-kernel

On 11/06/2012 06:26 PM, Joseph Lo wrote:
> Enable the data prefetch on L2. The bit28 in aux ctrl register.

Applied to Tegra's for-3.8/soc branch. Thanks.

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

* [PATCH] ARM: tegra: enable data prefetch on L2
  2012-11-07  1:26 [PATCH] ARM: tegra: enable data prefetch on L2 Joseph Lo
  2012-11-09 10:41 ` Peter De Schrijver
  2012-11-09 21:59 ` Stephen Warren
@ 2012-11-12 12:19 ` Peter De Schrijver
  2012-11-12 16:19   ` Stephen Warren
  2 siblings, 1 reply; 5+ messages in thread
From: Peter De Schrijver @ 2012-11-12 12:19 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Nov 07, 2012 at 02:26:37AM +0100, Joseph Lo wrote:
> Enable the data prefetch on L2. The bit28 in aux ctrl register.
> 
> Signed-off-by: Joseph Lo <josephl@nvidia.com>
> ---
>  arch/arm/mach-tegra/common.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
> index c25746e..c3dee56 100644
> --- a/arch/arm/mach-tegra/common.c
> +++ b/arch/arm/mach-tegra/common.c
> @@ -124,7 +124,7 @@ static void __init tegra_init_cache(void)
>  
>  	cache_type = readl(p + L2X0_CACHE_TYPE);
>  	aux_ctrl = (cache_type & 0x700) << (17-8);
> -	aux_ctrl |= 0x6C000001;
> +	aux_ctrl |= 0x7C000001;

Just found out that we should also set bit 22 as per
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=6395%2F1

Stephen, should I send a seperate patch for that?

Cheers,

Peter.

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

* [PATCH] ARM: tegra: enable data prefetch on L2
  2012-11-12 12:19 ` Peter De Schrijver
@ 2012-11-12 16:19   ` Stephen Warren
  0 siblings, 0 replies; 5+ messages in thread
From: Stephen Warren @ 2012-11-12 16:19 UTC (permalink / raw)
  To: linux-arm-kernel

On 11/12/2012 05:19 AM, Peter De Schrijver wrote:
> On Wed, Nov 07, 2012 at 02:26:37AM +0100, Joseph Lo wrote:
>> Enable the data prefetch on L2. The bit28 in aux ctrl register.
>>
>> Signed-off-by: Joseph Lo <josephl@nvidia.com>
>> ---
>>  arch/arm/mach-tegra/common.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/arm/mach-tegra/common.c b/arch/arm/mach-tegra/common.c
>> index c25746e..c3dee56 100644
>> --- a/arch/arm/mach-tegra/common.c
>> +++ b/arch/arm/mach-tegra/common.c
>> @@ -124,7 +124,7 @@ static void __init tegra_init_cache(void)
>>  
>>  	cache_type = readl(p + L2X0_CACHE_TYPE);
>>  	aux_ctrl = (cache_type & 0x700) << (17-8);
>> -	aux_ctrl |= 0x6C000001;
>> +	aux_ctrl |= 0x7C000001;
> 
> Just found out that we should also set bit 22 as per
> http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=6395%2F1
> 
> Stephen, should I send a seperate patch for that?

Yes please; I've applied the patch in this thread already.

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

end of thread, other threads:[~2012-11-12 16:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-07  1:26 [PATCH] ARM: tegra: enable data prefetch on L2 Joseph Lo
2012-11-09 10:41 ` Peter De Schrijver
2012-11-09 21:59 ` Stephen Warren
2012-11-12 12:19 ` Peter De Schrijver
2012-11-12 16:19   ` Stephen Warren

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).