Skip to contentSkip to conversation

mx6qsabre_common: Enable DCACHE and CONFIG_MMC_BOUNCE_BUFFER

PATCH New Fabio Estevam 3 participants 6 messages Oct 17, 2012 – Oct 20, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 mx6qsabre_common: Enable DCACHE and CONFIG_MMC_BOUNCE_BUFFER

From: Fabio Estevam <[email protected]>

Data cache and CONFIG_MMC_BOUNCE_BUFFER can be safely enabled now.

---
 include/configs/mx6qsabre_common.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/configs/mx6qsabre_common.h +1 -2
index e25e943..bfb9cd4 100644
@@ -45,6 +45,7 @@
 #define CONFIG_MMC
 #define CONFIG_CMD_MMC
 #define CONFIG_GENERIC_MMC
+#define CONFIG_MMC_BOUNCE_BUFFER
 #define CONFIG_CMD_EXT2
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
@@ -168,8 +169,6 @@
 
 #define CONFIG_OF_LIBFDT
 
-#define CONFIG_SYS_DCACHE_OFF
-
 #ifndef CONFIG_SYS_DCACHE_OFF
 #define CONFIG_CMD_CACHE
 #endif
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 mx6qarm2: Enable DCACHE and CONFIG_MMC_BOUNCE_BUFFER

From: Fabio Estevam <[email protected]>

Data cache and CONFIG_MMC_BOUNCE_BUFFER can be safely enabled now.

---
 include/configs/mx6qarm2.h |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/configs/mx6qarm2.h +1 -2
index 965bea3..b425fed 100644
@@ -50,6 +50,7 @@
 #define CONFIG_MMC
 #define CONFIG_CMD_MMC
 #define CONFIG_GENERIC_MMC
+#define CONFIG_MMC_BOUNCE_BUFFER
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
 
@@ -164,6 +165,4 @@
 #define CONFIG_OF_LIBFDT
 #define CONFIG_CMD_BOOTZ
 
-#define CONFIG_SYS_DCACHE_OFF
-
 #endif				/* __CONFIG_H */
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/2 mx6qarm2: Enable DCACHE and CONFIG_MMC_BOUNCE_BUFFER

Quoted 1 line

-----Original Message-----

From: [email protected] [mailto:u-boot-bounces at lists.denx.de]

Quoted 10 lines

On Behalf Of Fabio Estevam
Sent: Thursday, October 18, 2012 1:33 AM
To: sbabic at denx.de
Cc: Estevam Fabio-R49496; u-boot at lists.denx.de
Subject: [U-Boot] [PATCH 2/2] mx6qarm2: Enable DCACHE and CONFIG_MMC_BOUNCE_BUFFER

From: Fabio Estevam <[email protected]>

Data cache and CONFIG_MMC_BOUNCE_BUFFER can be safely enabled now.

Why we need enable CONFIG_MMC_BOUNCE_BUFFER?

Quoted 32 lines

---
include/configs/mx6qarm2.h | 3 +--

1 file changed, 1 insertion(+), 2 deletions(-)
include/configs/mx6qarm2.h index renamed from include/configs/mx6qarm2.h +0 -0

965bea3..b425fed 100644

include/configs/mx6qarm2.h +1 -3
@@ -50,6 +50,7 @@
 #define CONFIG_MMC
 #define CONFIG_CMD_MMC
 #define CONFIG_GENERIC_MMC
+#define CONFIG_MMC_BOUNCE_BUFFER
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
 
@@ -164,6 +165,4 @@
 #define CONFIG_OF_LIBFDT
 #define CONFIG_CMD_BOOTZ
 
-#define CONFIG_SYS_DCACHE_OFF
-
 #endif				/* __CONFIG_H */
--

1.7.9.5

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#3 lore raw

PATCH 2/2 mx6qarm2: Enable DCACHE and CONFIG_MMC_BOUNCE_BUFFER

Hi Jason,

Quoted 1 line · On Wed, Oct 17, 2012 at 11:29 PM, Liu Hui-R64343 <[email protected]> wrote:

Why we need enable CONFIG_MMC_BOUNCE_BUFFER?

I learned the following from Marek:

"you can't flush cache over unaligned addresses
so .. to make DMA work, we use the bounce buffer
so the address is cache aligned"

Regards,

Fabio Estevam

#4 lore raw

PATCH 2/2 mx6qarm2: Enable DCACHE and CONFIG_MMC_BOUNCE_BUFFER

In reply to Fabio Estevam

Am 17/10/2012 19:33, schrieb Fabio Estevam:

Quoted 6 lines

From: Fabio Estevam <[email protected]>

Data cache and CONFIG_MMC_BOUNCE_BUFFER can be safely enabled now.

---

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
=====================================================================
#5 lore raw

PATCH 1/2 mx6qsabre_common: Enable DCACHE and CONFIG_MMC_BOUNCE_BUFFER

In reply to Fabio Estevam

Am 17/10/2012 19:33, schrieb Fabio Estevam:

Quoted 6 lines

From: Fabio Estevam <[email protected]>

Data cache and CONFIG_MMC_BOUNCE_BUFFER can be safely enabled now.

---

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
=====================================================================