Skip to contentSkip to conversation

ARM: mx5: Enable L2 cache

PATCH New Fabio Estevam 3 participants 7 messages Sep 30, 2013 – Oct 31, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: mx5: Enable L2 cache

Enable L2 cache for improving the system performance.

---
 arch/arm/cpu/armv7/mx5/lowlevel_init.S | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/cpu/armv7/mx5/lowlevel_init.S +6 -0
index fc7c767..e4cd85c 100644
@@ -45,6 +45,12 @@
 #endif
 
 	mcr 15, 1, r0, c9, c0, 2
+
+	/* enable L2 cache */
+	mrc 15, 0, r0, c1, c0, 1
+	orr r0, r0, #2
+	mcr 15, 0, r0, c1, c0, 1
+
 .endm /* init_l2cc */
 
 /* AIPS setup - Only setup MPROTx registers.
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 1/1 ARM: mx5: Enable L2 cache

Hi Fabio,

Quoted 15 lines · Fabio Estevam

Enable L2 cache for improving the system performance.

---
 arch/arm/cpu/armv7/mx5/lowlevel_init.S | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/cpu/armv7/mx5/lowlevel_init.S +0 -0
index fc7c767..e4cd85c 100644
@@ -45,6 +45,12 @@
 #endif
 

arch/arm/cpu/armv7/mx5/lowlevel_init.S line 56

Quoted 10 lines
arch/arm/cpu/armv7/mx5/lowlevel_init.S +6 -0
 	mcr 15, 1, r0, c9, c0, 2
+
+	/* enable L2 cache */
+	mrc 15, 0, r0, c1, c0, 1
+	orr r0, r0, #2
+	mcr 15, 0, r0, c1, c0, 1
+
 .endm /* init_l2cc */
 
 /* AIPS setup - Only setup MPROTx registers.

This is a repost from a your previous patch on August, 19th, where you report slow tftp transfer even with L2-cache enable. Was this issue solved or it is completeley unrelated to the cache ?

Best regards,
Stefano

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#2 lore raw

PATCH 1/1 ARM: mx5: Enable L2 cache

Hi Stefano,

Quoted 3 lines · Stefano Babic

This is a repost from a your previous patch on August, 19th, where you report slow tftp transfer even with L2-cache enable. Was this issue solved or it is completeley unrelated to the cache ?

Actually the motivation for sending this patch this time was because I am currently working with a customer's USB centric application. By only applying this patch we can see CPU usage being decreased from 35% to 25%.

The TFTP transfer in U-boot is still slow though, but this needs to be investigated separately.

Regards,

Fabio Estevam

#3 lore raw

PATCH 1/1 ARM: mx5: Enable L2 cache

Hi Fabio,

Quoted 8 lines · Fabio Estevam

Hi Stefano,

Quoted 3 lines · Stefano Babic

This is a repost from a your previous patch on August, 19th, where you report slow tftp transfer even with L2-cache enable. Was this issue solved or it is completeley unrelated to the cache ?

Quoted 7 lines

Actually the motivation for sending this patch this time was because I am currently working with a customer's USB centric application. By only applying this patch we can see CPU usage being decreased from 35% to 25%.

The TFTP transfer in U-boot is still slow though, but this needs to be investigated separately.

Ok, understood, thanks - I'll pick up this one for the next PR.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#4 lore raw

PATCH 1/1 ARM: mx5: Enable L2 cache

Hi Stefano,

Quoted 1 line · Stefano Babic

Ok, understood, thanks - I'll pick up this one for the next PR.

I still don't see this patch applied yet.

Regards,

Fabio Estevam

#5 lore raw

PATCH 1/1 ARM: mx5: Enable L2 cache

Hi Fabio,

Quoted 8 lines · Fabio Estevam

Hi Stefano,

Quoted 1 line · Stefano Babic

Ok, understood, thanks - I'll pick up this one for the next PR.

I still don't see this patch applied yet.

Sorry, I will apply it.

Thanks for remind,
Stefano

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#6 lore raw

PATCH 1/1 ARM: mx5: Enable L2 cache

In reply to Fabio Estevam
Quoted 4 lines · Fabio Estevam

Enable L2 cache for improving the system performance.

---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================