]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
IB/mthca: Avoid alignment traps when writing doorbells
authorRoland Dreier <rolandd@cisco.com>
Mon, 15 Oct 2007 03:40:27 +0000 (20:40 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 16 Oct 2007 03:17:27 +0000 (20:17 -0700)
commitab8403c424a35364a3a2c753f7c5917fcbb4d809
tree9cbcfbc4ae9f15b05272be1fbdc7e028b86f297e
parent744ea922c901b6557bffe8bff7af1ef18181f370
IB/mthca: Avoid alignment traps when writing doorbells

Architectures such as ia64 see alignment traps when doing a 64-bit
read from __be32 doorbell[2] arrays to do doorbell writes in
mthca_write64().  Fix this by just passing the two halves of the
doorbell value into mthca_write64().  This actually improves the
generated code by allowing the compiler to see what's going on better.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_cq.c
drivers/infiniband/hw/mthca/mthca_doorbell.h
drivers/infiniband/hw/mthca/mthca_eq.c
drivers/infiniband/hw/mthca/mthca_qp.c
drivers/infiniband/hw/mthca/mthca_srq.c