Skip to contentSkip to conversation

avr32: allow multi block mmc access for all boards

PATCH New Andreas Bießmann 1 participant 2 messages Oct 17, 2012 – Nov 2, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avr32: allow multi block mmc access for all boards

Commit 1db7377a70a8d931c32648e717695133120d5456 fixes the gen_atmel_mci driver to be able to use multi block access for avr32. Therefore remove the setting which forces single block access.

This also adds a huge performace gain for mmc access:
---8<---
Loading file "/boot/uImage" from mmc device 0:1 1830666 bytes read in 1293 ms (1.3 MiB/s) --->8---

vs.

---8<---
Loading file "/boot/uImage" from mmc device 0:1
1830666 bytes read in 237 ms (7.4 MiB/s)
--->8---

Cc haavard.skinnemoen at atmel.com
Cc hans-christian.egtvedt at atmel.com
Cc mpfj at mimc.co.uk
Cc alex.raimondi at miromico.ch
Cc julien.may at miromico.ch
Cc egtvedt at samfundet.no
Cc havard at skinnemoen.net

---
Commit 1db7377a70a8d931c32648e717695133120d5456 is currently in u-boot-atmel/master and may need some time to hit the u-boot-avr32/master. If someone want to test it cherry pick the commit from u-boot-atmel/master.

 include/configs/atngw100.h      |    1 -
 include/configs/atngw100mkii.h  |    1 -
 include/configs/atstk1002.h     |    1 -
 include/configs/atstk1003.h     |    1 -
 include/configs/atstk1004.h     |    1 -
 include/configs/atstk1006.h     |    1 -
 include/configs/favr-32-ezkit.h |    1 -
 include/configs/hammerhead.h    |    1 -
 include/configs/mimc200.h       |    1 -
 9 files changed, 9 deletions(-)
include/configs/atngw100.h +0 -1
index 5e3155d..6bd1397 100644
@@ -130,7 +130,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 #define CONFIG_ATMEL_SPI
 
 #define CONFIG_SPI_FLASH
include/configs/atngw100mkii.h +0 -1
index f85374f..998cb97 100644
@@ -154,7 +154,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 #define CONFIG_ATMEL_SPI
 
 #define CONFIG_SPI_FLASH
include/configs/atstk1002.h +0 -1
index bb426f1..c6b129a 100644
@@ -153,7 +153,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 
 #define CONFIG_SYS_DCACHE_LINESZ		32
 #define CONFIG_SYS_ICACHE_LINESZ		32
include/configs/atstk1003.h +0 -1
index 817d943..67ff39b 100644
@@ -137,7 +137,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 
 #define CONFIG_SYS_DCACHE_LINESZ		32
 #define CONFIG_SYS_ICACHE_LINESZ		32
include/configs/atstk1004.h +0 -1
index 5134b7f..a1d593b 100644
@@ -137,7 +137,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 
 #define CONFIG_SYS_DCACHE_LINESZ		32
 #define CONFIG_SYS_ICACHE_LINESZ		32
include/configs/atstk1006.h +0 -1
index 29fdd12..280ecbc 100644
@@ -153,7 +153,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 
 #define CONFIG_SYS_DCACHE_LINESZ		32
 #define CONFIG_SYS_ICACHE_LINESZ		32
include/configs/favr-32-ezkit.h +0 -1
index 71d2473..1c8da9f 100644
@@ -152,7 +152,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 
 #define CONFIG_SYS_DCACHE_LINESZ		32
 #define CONFIG_SYS_ICACHE_LINESZ		32
include/configs/hammerhead.h +0 -1
index 532feb2..5570bdb 100644
@@ -126,7 +126,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 
 #define CONFIG_SYS_DCACHE_LINESZ		32
 #define CONFIG_SYS_ICACHE_LINESZ		32
include/configs/mimc200.h +0 -1
index d5797cb..8031a05 100644
@@ -131,7 +131,6 @@
 #define CONFIG_MMC
 #define CONFIG_GENERIC_ATMEL_MCI
 #define CONFIG_GENERIC_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 1
 
 #if defined(CONFIG_LCD)
 #define CONFIG_CMD_BMP
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/1 avr32: allow multi block mmc access for all boards

Dear Andreas Bie?mann,

Quoted 25 lines · Andreas Bie?mann

Commit 1db7377a70a8d931c32648e717695133120d5456 fixes the gen_atmel_mci driver to be able to use multi block access for avr32. Therefore remove the setting which forces single block access.

This also adds a huge performace gain for mmc access:
---8<---
Loading file "/boot/uImage" from mmc device 0:1 1830666 bytes read in 1293 ms (1.3 MiB/s) --->8---

vs.

---8<---
Loading file "/boot/uImage" from mmc device 0:1
1830666 bytes read in 237 ms (7.4 MiB/s)
--->8---

Cc haavard.skinnemoen at atmel.com
Cc hans-christian.egtvedt at atmel.com
Cc mpfj at mimc.co.uk
Cc alex.raimondi at miromico.ch
Cc julien.may at miromico.ch
Cc egtvedt at samfundet.no
Cc havard at skinnemoen.net
Quoted 1 line

---

applied to u-boot-avr32/master, thanks"

Best regards

Andreas Bie?mann