diff options
author | Oskar Schirmer <[email protected]> | 2010-05-13 00:42:23 -0700 |
---|---|---|
committer | Dmitry Torokhov <[email protected]> | 2010-05-13 00:43:32 -0700 |
commit | 3843384a055496dfed3c93ae883d964d8290fdab (patch) | |
tree | e60dfe169cd2a6bf83c7cb6d362c39a336b3798e /net/lapb/lapb_in.c | |
parent | ef110b24e28f36620f63dab94708a17c7e267358 (diff) |
Input: ad7877 - keep dma rx buffers in seperate cache lines
With dma based spi transmission, data corruption is observed
occasionally. With dma buffers located right next to msg and
xfer fields, cache lines correctly flushed in preparation for
dma usage may be polluted again when writing to fields in the
same cache line.
Make sure cache fields used with dma do not share cache lines
with fields changed during dma handling. As both fields are part
of a struct that is allocated via kzalloc, thus cache aligned,
moving the fields to the 1st position and insert padding for
alignment does the job.
Signed-off-by: Oskar Schirmer <[email protected]>
Signed-off-by: Daniel Glöckner <[email protected]>
Signed-off-by: Oliver Schneidewind <[email protected]>
Signed-off-by: Johannes Weiner <[email protected]>
Acked-by: Mike Frysinger <[email protected]>
[[email protected] - changed to use ___cacheline_aligned as suggested
by akpm]
Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions