]> err.no Git - linux-2.6/commit
[IA64] Fix __{in,out}s{w,l} to handle unaligned data
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 22 Aug 2008 21:15:22 +0000 (16:15 -0500)
committerTony Luck <tony.luck@intel.com>
Mon, 25 Aug 2008 18:23:13 +0000 (11:23 -0700)
commit8a549f8b581db95fec1e2d86ff857594fcfcd9db
treedbf33ff8ee4c20ba7737c2968d5c7188bc3c4dff
parent42aca483ddee8888926d913b660e1dd38d748ba9
[IA64] Fix __{in,out}s{w,l} to handle unaligned data

Some ia64 systems produce several repeats of kernel messages like this:

 kernel unaligned access to 0xe000000644220466, ip=0xa000000100516fa1

This was tracked to ide code using the __cmd[] field in "struct request"
via the __outsw() function.  __cmd[] is a char array, so is not guaranteed
to be properly aligned when accessed as words.

Tested-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/include/asm/io.h