android_kernel_xiaomi_sm7250/drivers/infiniband/hw
Michael S. Tsirkin 608d8268be IB/mthca: Fix data corruption after FMR unmap on Sinai
In mthca_arbel_fmr_unmap(), the high bits of the key are masked off.
This gets rid of the effect of adjust_key(), which makes sure that
bits 3 and 23 of the key are equal when the Sinai throughput
optimization is enabled, and so it may happen that an FMR will end up
with bits 3 and 23 in the key being different.  This causes data
corruption, because when enabling the throughput optimization, the
driver promises the HCA firmware that bits 3 and 23 of all memory keys
will always be equal.

Fix by re-applying adjust_key() after masking the key.

Thanks to Or Gerlitz for reproducing the problem, and Ariel Shahar for
help in debug.

Signed-off-by: Michael S. Tsirkin <mst@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-04-16 14:10:55 -07:00
..
amso1100 [PATCH] Scheduled removal of SA_xxx interrupt flags fixups 2007-02-14 08:09:54 -08:00
cxgb3 RDMA/cxgb3: Add set_tcb_rpl_handler 2007-04-12 10:37:11 -07:00
ehca IB/ehca: Make scaling code work without CPU hotplug 2007-03-22 14:40:16 -07:00
ipath IB/ipath: Check return value of lookup_one_len 2007-03-22 14:40:15 -07:00
mthca IB/mthca: Fix data corruption after FMR unmap on Sinai 2007-04-16 14:10:55 -07:00