Home
last modified time | relevance | path

Searched hist:"76 d7cc0345a037e8eea426f8abc710abd22946dd" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/infiniband/hw/mthca/
H A Dmthca_cmd.cdiff 76d7cc0345a037e8eea426f8abc710abd22946dd Tue Oct 09 21:59:17 CDT 2007 Roland Dreier <rolandd@cisco.com> IB/mthca: Use mmiowb() to avoid firmware commands getting jumbled up

Firmware commands are sent to the HCA by writing multiple words to a
command register block. Access to this block of registers is
serialized with a mutex. However, on large SGI systems, problems were
seen with multiple CPUs issuing FW commands at the same time, because
the writes to the register block may be reordered within the system
interconnect and reach the HCA in a different order than they were
issued (even with the mutex). Fix this by adding an mmiowb() before
dropping the mutex.

Tested-by: Arthur Kepner <akepner@sgi.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>