]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IA64: bte_unaligned_copy() transfers one extra cache line.
authorRobin Holt <holt@sgi.com>
Sun, 17 Dec 2006 20:34:56 +0000 (21:34 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sun, 17 Dec 2006 20:34:56 +0000 (21:34 +0100)
commit4adf3c785f91eda9b5a9706200d2e1c9554a0318
treefeeaf5f43e44a9fab29dd38c1511fc01c8267aea
parent961428b9aed2ee9cf631d16f1620640cd54a4557
IA64: bte_unaligned_copy() transfers one extra cache line.

When called to do a transfer that has a start offset within the cache
line which is uneven between source and destination and a length which
terminates the source of the copy exactly on a cache line, one extra
line gets copied into a temporary buffer.  This is normally not an issue
since the buffer is a kernel buffer and only the requested information
gets copied into the user buffer.

The problem arises when the source ends at the very last physical page
of memory.  That last cache line does not exist and results in the SHUB
chip raising an MCA.

Signed-off-by: Robin Holt <holt@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
arch/ia64/sn/kernel/bte.c