]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix up fast register page list format
authorVladimir Sokolovsky <vlad@mellanox.co.il>
Mon, 15 Sep 2008 21:25:23 +0000 (14:25 -0700)
committerRoland Dreier <rolandd@cisco.com>
Mon, 15 Sep 2008 21:25:23 +0000 (14:25 -0700)
commitddb8efed77374dd633bb0272fa5ac160c7f26ec0
tree9d8fe16ac4728ab669f81a763effda21301d9ddf
parentd6a1dbee57b95b90dbe4c1437176cb799f64c901
IB/mlx4: Fix up fast register page list format

Byte swap the addresses in the page list for fast register work requests
to big endian to match what the HCA expectx.  Also, the addresses must
have the "present" bit set so that the HCA knows it can access them.
Otherwise the HCA will fault the first time it accesses the memory
region.

Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mlx4/qp.c
drivers/net/mlx4/mr.c
include/linux/mlx4/device.h