Add cache line alignment support
Subsystems (3)
v3 cover Add cache line alignment support
The cache line alignment issue has gone around a couple of times now. This patch set implements all of the details that we have discussed about the implementation of ALLOC_CACHE_ALIGN_BUFFER. It also includes patches that use the macro to fix MMC and ext2 buffers, as well as define the CONFIG_SYS_CACHELINE_SIZE value for Tegra.
This series now depends on the series to add ARCH_DMA_MINALIGN for all architectures and must be applied after that series.
This has been tested on a Seaboard.
Thanks,
Anton
---
Changes for v2:
- Add comment describing why we are setting a default cacheline size
- Remove Gerrit generated Change-Id: tags from commit messages
- Add additional buffer alignments for mmc and part_efi code
Changes for v3:
- Don't set a default value for CONFIG_SYS_CACHELINE_SIZE
- Use ARCH_DMA_MINALIGN to align DMA buffers
Anton Staaf (6):
cache: add ALLOC_CACHE_ALIGN_BUFFER macro
tegra: define CONFIG_SYS_CACHELINE_SIZE for tegra
mmc: dcache: allocate cache aligned buffer for scr and switch_status
ext2: Cache line aligned partial sector bounce buffer
mmc: dcache: allocate cache aligned buffers for ext_csd
part_efi: dcache: allocate cacheline aligned buffers
disk/part_efi.c | 18 ++++++------ doc/README.arm-caches | 2 + drivers/mmc/mmc.c | 14 +++++----- fs/ext2/dev.c | 2 +- include/common.h | 58 +++++++++++++++++++++++++++++++++++++++ include/configs/tegra2-common.h | 2 + 6 files changed, 79 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.3.1
PATCH v3 1/6 cache: add ALLOC_CACHE_ALIGN_BUFFER macro
This macro is used to allocate cache line size aligned stack buffers for use with DMA hardware.
--- doc/README.arm-caches | 2 + include/common.h | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 0 deletions(-)
doc/README.arm-caches +2 -0
@@ -40,6 +40,8 @@ Buffer Requirements: - If the buffer is not cache-line aligned invalidation will be restricted to the aligned part. That is, one cache-line at the respective boundary may be left out while doing invalidation. +- A suitable buffer can be alloced on the stack using the + ALLOC_CACHE_ALIGN_BUFFER macro. Cleanup Before Linux: - cleanup_before_linux() should flush the D-cache, invalidate I-cache, and
include/common.h +58 -0
64 lines not on this page · raw message
Signature · 1 line
1.7.3.1
PATCH v3 1/6 cache: add ALLOC_CACHE_ALIGN_BUFFER macro
Quoted 1 line · On Wednesday 12 October 2011 19:55:59 Anton Staaf wrote:
doc/README.arm-caches | 2 +
seems like most of the advice in this is arch independent
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/88f74d7d/attachment.pgp
PATCH v3 1/6 cache: add ALLOC_CACHE_ALIGN_BUFFER macro
Quoted 4 lines · Mike Frysinger
Quoted 1 line · On Wednesday 12 October 2011 19:55:59 Anton Staaf wrote:
?doc/README.arm-caches | ? ?2 +
seems like most of the advice in this is arch independent
Agreed. It probably makes sense to change the name of the file. I'm not sure that any of it's contents should be ARM specific moving forward. That is, it reflects where all of the supported architectures should go yes?
-Anton
Quoted 2 lines
-mike
PATCH v3 1/6 cache: add ALLOC_CACHE_ALIGN_BUFFER macro
Quoted 9 lines · On Thursday 13 October 2011 14:06:41 Anton Staaf wrote:
Quoted 4 lines · Mike Frysinger
Quoted 1 line · On Wednesday 12 October 2011 19:55:59 Anton Staaf wrote:
doc/README.arm-caches | 2 +seems like most of the advice in this is arch independent
Agreed. It probably makes sense to change the name of the file. I'm not sure that any of it's contents should be ARM specific moving forward. That is, it reflects where all of the supported architectures should go yes?
hmm, i thought you were adding this file, not updating it
the enable_caches() part is ARM specific, as is the Cleanup Before Linux. but the rest should be in like README.caches.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111013/3deda6dd/attachment.pgp
PATCH v3 1/6 cache: add ALLOC_CACHE_ALIGN_BUFFER macro
Quoted 5 lines · Mike Frysinger
Quoted 4 lines · On Thursday 13 October 2011 14:06:41 Anton Staaf wrote:
Quoted 3 lines · Mike Frysinger
Quoted 1 line · On Wednesday 12 October 2011 19:55:59 Anton Staaf wrote:
?doc/README.arm-caches | ? ?2 +
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
seems like most of the advice in this is arch independent
Agreed. ?It probably makes sense to change the name of the file. ?I'm not sure that any of it's contents should be ARM specific moving forward. ?That is, it reflects where all of the supported architectures should go yes?
hmm, i thought you were adding this file, not updating it
Nope, just adding a line about the new buffer allocation macro.
Quoted 2 lines
the
enable_caches()part is ARM specific, as is the Cleanup Before Linux. ?but the rest should be in like README.caches.
Let's do that in a separate patch.
Thanks,
Anton
Quoted 2 lines
-mike
Wolfgang Denk
AppliedPATCH v3 1/6 cache: add ALLOC_CACHE_ALIGN_BUFFER macro
In reply to Anton StaafDear Anton Staaf,
Quoted 10 lines · In message <[email protected]> you wrote:
This macro is used to allocate cache line size aligned stack buffers for use with DMA hardware.
Signed-off-by Anton Staaf <[email protected]>Cc Lukasz Majewski <[email protected]>Cc Kyungmin Park <[email protected]>Cc Mike Frysinger <[email protected]>Cc Aneesh V <[email protected]>Cc Albert ARIBAUD <[email protected]>Cc Wolfgang Denk <[email protected]>
Quoted 4 lines
--- doc/README.arm-caches | 2 + include/common.h | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Nail here --X-- for new monitor.PATCH v3 2/6 tegra: define CONFIG_SYS_CACHELINE_SIZE for tegra
In reply to Anton Staaf--- include/configs/tegra2-common.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
include/configs/tegra2-common.h +2 -0
@@ -33,6 +33,8 @@#define CONFIG_MACH_TEGRA_GENERIC /* which is a Tegra generic machine */ #define CONFIG_SYS_L2CACHE_OFF /* No L2 cache */ +#define CONFIG_SYS_CACHELINE_SIZE 32 +#define CONFIG_ENABLE_CORTEXA9 /* enable CPU (A9 complex) */ #include <asm/arch/tegra2.h> /* get chip and board defs */
Signature · 1 line
1.7.3.1
Wolfgang Denk
AppliedPATCH v3 2/6 tegra: define CONFIG_SYS_CACHELINE_SIZE for tegra
Dear Anton Staaf,
Quoted 8 lines · In message <[email protected]> you wrote:
Signed-off-by Anton Staaf <[email protected]>Cc Tom Warren <[email protected]>Cc Simon Glass <[email protected]>Cc Mike Frysinger <[email protected]>Cc Albert ARIBAUD <[email protected]>--- include/configs/tegra2-common.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It's certainly convenient the way the crime (or condition) of
stupidity carries with it its own punishment, automatically
admisistered without remorse, pity, or prejudice. :-)
-- Tom Christiansen in <[email protected]>PATCH v3 3/6 mmc: dcache: allocate cache aligned buffer for scr and switch_status
In reply to Anton StaafCurrently the sd_change_freq function allocates two buffers on the stack that it passes down to the MMC device driver. These buffers could be unaligned to the L1 dcache line size. This causes problems when using DMA and with caches enabled.
This patch correctly cache alignes the buffers used for reading the scr register and switch status values from an MMC device.
--- drivers/mmc/mmc.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/mmc/mmc.c +5 -5
@@ -702,8 +702,8 @@ int sd_change_freq(struct mmc *mmc) {int err;struct mmc_cmd cmd; -uint scr[2 ]; -uint switch_status[16 ]; +ALLOC_CACHE_ALIGN_BUFFER (uint, scr,2 ); +ALLOC_CACHE_ALIGN_BUFFER (uint, switch_status,16 );struct mmc_data data;int timeout;
@@ -731,7 +731,7 @@ int sd_change_freq(struct mmc *mmc) timeout =3 ; retry_scr: - data.dest = (char *)&scr; + data.dest = (char *)scr; data.blocksize =8 ; data.blocks =1 ; data.flags =MMC_DATA_READ ;
@@ -773,7 +773,7 @@ retry_scr: timeout =4 ;while (timeout--) { err =sd_switch (mmc,SD_SWITCH_CHECK ,0 ,1 , - (u8 *)&switch_status); + (u8 *)switch_status);if (err)return err;
@@ -787,7 +787,7 @@ retry_scr:if (!(__be32_to_cpu (switch_status[3 ]) &SD_HIGHSPEED_SUPPORTED ))return 0 ; - err =sd_switch (mmc,SD_SWITCH_SWITCH ,0 ,1 , (u8 *)&switch_status); + err =sd_switch (mmc,SD_SWITCH_SWITCH ,0 ,1 , (u8 *)switch_status);if (err)return err;
Signature · 1 line
1.7.3.1
PATCH v3 3/6 mmc: dcache: allocate cache aligned buffer for scr and switch_status
built fine for me
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/8d18da82/attachment.pgp
Wolfgang Denk
AppliedPATCH v3 3/6 mmc: dcache: allocate cache aligned buffer for scr and switch_status
In reply to Anton StaafDear Anton Staaf,
Quoted 8 lines · In message <[email protected]> you wrote:
Currently the
sd_change_freqfunction allocates two buffers on the stack that it passes down to the MMC device driver. These buffers could be unaligned to the L1 dcache line size. This causes problems when using DMA and with caches enabled.This patch correctly cache alignes the buffers used for reading the scr register and switch status values from an MMC device.
Quoted 8 lines
Signed-off-by Anton Staaf <[email protected]>Acked-by Mike Frysinger <[email protected]>Cc Lukasz Majewski <[email protected]>Cc Mike Frysinger <[email protected]>Cc Albert ARIBAUD <[email protected]>--- drivers/mmc/mmc.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If today is the first day of the rest of your life, what the hell was yesterday?
PATCH v3 4/6 ext2: Cache line aligned partial sector bounce buffer
In reply to Anton StaafCurrently, if a device read request is done that does not begin or end on a sector boundary a stack allocated bounce buffer is used to perform the read, and then just the part of the sector that is needed is copied into the users buffer. This stack allocation can mean that the bounce buffer will not be aligned to the dcache line size. This is a problem when caches are enabled because unaligned cache invalidates are not safe.
This patch uses ALLOC_CACHE_ALIGN_BUFFER to create a stack allocated cache line size aligned bounce buffer.
--- fs/ext2/dev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ext2/dev.c +1 -1
@@ -52,7 +52,7 @@ int ext2fs_set_blk_dev(block_dev_desc_t *rbdd, int part)int ext2fs_devread (int sector,int byte_offset,int byte_len,char *buf) { -char sec_buf[SECTOR_SIZE ]; +ALLOC_CACHE_ALIGN_BUFFER (char, sec_buf,SECTOR_SIZE );unsigned sectors;/*
Signature · 1 line
1.7.3.1
Wolfgang Denk
AppliedPATCH v3 4/6 ext2: Cache line aligned partial sector bounce buffer
Dear Anton Staaf,
Quoted 18 lines · In message <[email protected]> you wrote:
Currently, if a device read request is done that does not begin or end on a sector boundary a stack allocated bounce buffer is used to perform the read, and then just the part of the sector that is needed is copied into the users buffer. This stack allocation can mean that the bounce buffer will not be aligned to the dcache line size. This is a problem when caches are enabled because unaligned cache invalidates are not safe.
This patch uses
ALLOC_CACHE_ALIGN_BUFFERto create a stack allocated cache line size aligned bounce buffer.Signed-off-by Anton Staaf <[email protected]>Acked-by Mike Frysinger <[email protected]>Cc Lukasz Majewski <[email protected]>Cc Mike Frysinger <[email protected]>Cc Dave Liu <[email protected]>Cc Andy Fleming <[email protected]>Cc Albert ARIBAUD <[email protected]>
Quoted 3 lines
--- fs/ext2/dev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
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-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If something is different, it's either better or worse, and usually both. - Larry Wall
PATCH v3 5/6 mmc: dcache: allocate cache aligned buffers for ext_csd
In reply to Anton StaafCurrently the mmc_change_freq and mmc_startup functions allocates buffers on the stack that are passed down to the MMC device driver. These buffers could be unaligned to the L1 dcache line size. This causes problems when using DMA and with caches enabled.
This patch correctly cache alignes the buffers used for reading the ext_csd data from an MMC device.
--- drivers/mmc/mmc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/mmc/mmc.c +2 -2
@@ -618,7 +618,7 @@ int mmc_switch(struct mmc *mmc, u8 set, u8 index, u8 value)int mmc_change_freq (struct mmc *mmc) { -char ext_csd[512 ]; +ALLOC_CACHE_ALIGN_BUFFER (char, ext_csd,512 );char cardtype;int err;
@@ -860,7 +860,7 @@ int mmc_startup(struct mmc *mmc)uint mult, freq;u64 cmult, csize, capacity;struct mmc_cmd cmd; -char ext_csd[512 ]; +ALLOC_CACHE_ALIGN_BUFFER (char, ext_csd,512 );int timeout =1000 ;#ifdef CONFIG_MMC_SPI_CRC_ON
Signature · 1 line
1.7.3.1
PATCH v3 5/6 mmc: dcache: allocate cache aligned buffers for ext_csd
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/fa933bf0/attachment.pgp
Wolfgang Denk
AppliedPATCH v3 5/6 mmc: dcache: allocate cache aligned buffers for ext_csd
In reply to Anton StaafDear Anton Staaf,
Quoted 8 lines · In message <[email protected]> you wrote:
Currently the
mmc_change_freqandmmc_startupfunctions allocates buffers on the stack that are passed down to the MMC device driver. These buffers could be unaligned to the L1 dcache line size. This causes problems when using DMA and with caches enabled.This patch correctly cache alignes the buffers used for reading the
ext_csddata from an MMC device.
Quoted 7 lines
Signed-off-by Anton Staaf <[email protected]>Cc Lukasz Majewski <[email protected]>Cc Mike Frysinger <[email protected]>Cc Albert ARIBAUD <[email protected]>--- drivers/mmc/mmc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de HEALTH WARNING: Care Should Be Taken When Lifting This Product, Since Its Mass, and Thus Its Weight, Is Dependent on Its Velocity Relative to the User.
PATCH v3 6/6 part_efi: dcache: allocate cacheline aligned buffers
In reply to Anton StaafCurrently part_efi.c allocates buffers for the gpt_header, the legacy_mbr, and the pte (partition table entry) that may be incorrectly aligned for DMA operations.
This patch uses ALLOC_CACHE_ALIGN_BUFFER for the stack allocated buffers and memalign to replace the malloc of the pte.
--- disk/part_efi.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
disk/part_efi.c +9 -9
@@ -120,7 +120,7 @@ static char *print_efiname(gpt_entry *pte)void print_part_efi (block_dev_desc_t * dev_desc) { -gpt_header gpt_head; +ALLOC_CACHE_ALIGN_BUFFER (gpt_header, gpt_head,1 );gpt_entry **pgpt_pte =NULL ;int i =0 ;
@@ -130,7 +130,7 @@ void print_part_efi(block_dev_desc_t * dev_desc) }/* This function validates AND fills in the GPT header and PTE */ if (is_gpt_valid (dev_desc,GPT_PRIMARY_PARTITION_TABLE_LBA , - &(gpt_head), pgpt_pte) !=1 ) { + gpt_head, pgpt_pte) !=1 ) {printf ("%s: *** ERROR: Invalid GPT ***\n" , __FUNCTION__);return ; }
@@ -138,7 +138,7 @@ void print_part_efi(block_dev_desc_t * dev_desc)debug ("%s: gpt-entry at 0x%08X\n" , __FUNCTION__, (unsigned int )*pgpt_pte);printf ("Part\tName\t\t\tStart LBA\tEnd LBA\n" ); -for (i =0 ; i <le32_to_int (gpt_head.num_partition_entries); i++) { +for (i =0 ; i <le32_to_int (gpt_head->num_partition_entries); i++) {if (is_pte_valid (&(*pgpt_pte)[i])) { printf("%3d\t%-18s\t0x%08llX\t0x%08llX\n", (i + 1),
@@ -161,7 +161,7 @@ void print_part_efi(block_dev_desc_t * dev_desc)int get_partition_info_efi (block_dev_desc_t * dev_desc,int part,disk_partition_t * info) { -gpt_header gpt_head; +ALLOC_CACHE_ALIGN_BUFFER (gpt_header, gpt_head,1 );gpt_entry **pgpt_pte =NULL ;/* "part" argument must be at least 1 */
@@ -172,7 +172,7 @@ int get_partition_info_efi(block_dev_desc_t * dev_desc, int part,/* This function validates AND fills in the GPT header and PTE */ if (is_gpt_valid (dev_desc,GPT_PRIMARY_PARTITION_TABLE_LBA , - &(gpt_head), pgpt_pte) !=1 ) { + gpt_head, pgpt_pte) !=1 ) {printf ("%s: *** ERROR: Invalid GPT ***\n" , __FUNCTION__);return -1 ; }
@@ -201,11 +201,11 @@ int get_partition_info_efi(block_dev_desc_t * dev_desc, int part,int test_part_efi (block_dev_desc_t * dev_desc) { -legacy_mbr legacymbr; +ALLOC_CACHE_ALIGN_BUFFER (legacy_mbr, legacymbr,1 );/* Read legacy MBR from block 0 and validate it */ -if ((dev_desc->block_read (dev_desc->dev,0 ,1 , (ulong *) & legacymbr) !=1 ) - || (is_pmbr_valid (&legacymbr) !=1 )) { +if ((dev_desc->block_read (dev_desc->dev,0 ,1 , (ulong *)legacymbr) !=1 ) + || (is_pmbr_valid (legacymbr) !=1 )) {return -1 ; }return 0 ;
@@ -388,7 +388,7 @@ static gpt_entry *alloc_read_gpt_entries(block_dev_desc_t * dev_desc,/* Allocate memory for PTE, remember to FREE */ if (count !=0 ) { - pte =malloc (count); + pte =memalign (CONFIG_SYS_CACHELINE_SIZE , count); }if (count ==0 || pte ==NULL ) {
Signature · 1 line
1.7.3.1
PATCH v3 6/6 part_efi: dcache: allocate cacheline aligned buffers
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111012/c0a7bbe0/attachment.pgp
Wolfgang Denk
AppliedPATCH v3 6/6 part_efi: dcache: allocate cacheline aligned buffers
In reply to Anton StaafDear Anton Staaf,
Quoted 7 lines · In message <[email protected]> you wrote:
Currently
part_efi.callocates buffers for thegpt_header, thelegacy_mbr, and the pte (partition table entry) that may be incorrectly aligned for DMA operations.This patch uses
ALLOC_CACHE_ALIGN_BUFFERfor the stack allocated buffers and memalign to replace the malloc of the pte.
Quoted 7 lines
Signed-off-by Anton Staaf <[email protected]>Cc Lukasz Majewski <[email protected]>Cc Mike Frysinger <[email protected]>Cc Albert ARIBAUD <[email protected]>--- disk/part_efi.c | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de In the strict scientific sense we all feed on death -- even vegetarians. -- Spock, "Wolf in the Fold", stardate 3615.4
v3 cover Add cache line alignment support
In reply to Anton StaafQuoted 10 lines · Anton Staaf
The cache line alignment issue has gone around a couple of times now. ?This patch set implements all of the details that we have discussed about the implementation of
ALLOC_CACHE_ALIGN_BUFFER. ?It also includes patches that use the macro to fix MMC and ext2 buffers, as well as define theCONFIG_SYS_CACHELINE_SIZEvalue for Tegra.This series now depends on the series to add
ARCH_DMA_MINALIGNfor all architectures and must be applied after that series.This has been tested on a Seaboard.
This patch set has now been tested with MAKEALL for ARMv7a and PowerPC. It still
applies cleanly to TOT. Should I resend or is it good as is?
Thanks,
Anton
Quoted 34 lines
Thanks,
? ?Anton---
Changes for v2:
- Add comment describing why we are setting a default cacheline size
- Remove Gerrit generated Change-Id: tags from commit messages
- Add additional buffer alignments for mmc andpart_eficodeChanges for v3:
- Don't set a default value forCONFIG_SYS_CACHELINE_SIZE
- UseARCH_DMA_MINALIGNto align DMA buffersAnton Staaf (6):
?cache: addALLOC_CACHE_ALIGN_BUFFERmacro
?tegra: defineCONFIG_SYS_CACHELINE_SIZEfor tegra
?mmc: dcache: allocate cache aligned buffer for scr andswitch_status?ext2: Cache line aligned partial sector bounce buffer ?mmc: dcache: allocate cache aligned buffers forext_csd?part_efi: dcache: allocate cacheline aligned buffers?disk/part_efi.c ? ? ? ? ? ? ? ? | ? 18 ++++++------ ?doc/README.arm-caches ? ? ? ? ? | ? ?2 + ?drivers/mmc/mmc.c ? ? ? ? ? ? ? | ? 14 +++++----- ?fs/ext2/dev.c ? ? ? ? ? ? ? ? ? | ? ?2 +- ?include/common.h ? ? ? ? ? ? ? ?| ? 58 +++++++++++++++++++++++++++++++++++++++ ?include/configs/tegra2-common.h | ? ?2 +?6 files changed, 79 insertions(+), 17 deletions(-)
--
1.7.3.1
v3 cover Add cache line alignment support
Dear Anton Staaf,
Quoted 4 lines · In message <CAF6FioXXXr8tn5Os8WeRM5k+5S1PVD7zVKLJQEy3SoLUbu_ZwA@mail.gmail.com>…
This patch set has now been tested with MAKEALL for ARMv7a and PowerPC. It still
applies cleanly to TOT. Should I resend or is it good as is?
No need to resend.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de HR Manager to job candidate "I see you've had no computer training. Although that qualifies you for upper management, it means you're under-qualified for our entry level positions."