diff options
| author | Anton staaf <[email protected]> | 2011-10-03 13:55:00 +0000 |
|---|---|---|
| committer | Wolfgang Denk <[email protected]> | 2011-10-25 09:25:41 +0200 |
| commit | 4c1cd721d89d4b694dd018736007a97b5cdb04da (patch) | |
| tree | 53940ed15f0f49f5034ced2ae20f3c89ad759242 /include/netdev.h | |
| parent | f781dd383a0a28930612d48df11ccb2f3bca4eaa (diff) | |
ext2: Cache line aligned partial sector bounce buffer
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_BUFFER to create a stack allocated
cache line size aligned bounce buffer.
Signed-off-by: Anton Staaf <[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]>
Change-Id: I32e1594d90ef039137bb219b0f7ced55768744ff
Acked-by: Mike Frysinger <[email protected]>
Diffstat (limited to 'include/netdev.h')
0 files changed, 0 insertions, 0 deletions
