linux-stable/drivers/infiniband/hw
Michael S. Tsirkin 391e4dea71 IB/mthca: Fix access to MTT and MPT tables on non-cache-coherent CPUs
We allocate the MTT table with alloc_pages() and then do pci_map_sg(),
so we must call pci_dma_sync_sg() after the CPU writes to the MTT
table.  This works since the device will never write MTTs on mem-free
HCAs, once we get rid of the use of the WRITE_MTT firmware command.
This change is needed to make that work, and is an improvement for
now, since it gives FMRs a chance at working.

For MPTs, both the device and CPU might write there, so we must
allocate DMA coherent memory for these.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-02-12 16:16:29 -08:00
..
amso1100 IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
cxgb3 RDMA/cxgb3: Add driver for Chelsio T3 RNIC 2007-02-12 16:16:18 -08:00
ehca IB/ehca: Fix memleak on module unloading 2007-02-10 08:00:49 -08:00
ipath IB: Return qp pointer as part of ib_wc 2007-02-04 14:11:55 -08:00
mthca IB/mthca: Fix access to MTT and MPT tables on non-cache-coherent CPUs 2007-02-12 16:16:29 -08:00