From: Roland Dreier Date: Fri, 15 Dec 2006 22:01:49 +0000 (-0800) Subject: IB/srp: Fix FMR mapping for 32-bit kernels and addresses above 4G X-Git-Tag: v2.6.20-rc2~122^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf628dc22a09ed2022abb32c76011ae5f99ad6b0;p=pandora-kernel.git IB/srp: Fix FMR mapping for 32-bit kernels and addresses above 4G struct srp_device.fmr_page_mask was unsigned long, which means that the top part of addresses above 4G was being chopped off on 32-bit architectures. Of course nothing good happens when data from SRP targets is DMAed to the wrong place. Fix this by changing fmr_page_mask to u64, to match the addresses actually used by IB devices. Thanks to Brian Cain and David McMillen for help diagnosing the bug and testing the fix. Signed-off-by: Roland Dreier --- Reading git-diff-tree failed