On 1/30/2013 4:34 PM, Roland Dreier wrote:
On Wed, Jan 30, 2013 at 1:44 PM, Jason Gunthorpe
<[email protected]> wrote:
So instead of virt_to_phys you should use dma_addr??
No, you clearly can't use the bus address. That has no relationship to
the CPU view, even in cases as common as VT-d on x86.
By the way, this usage of virt_to_phys() is not new to the commit that
Dan referenced. It has been there since day one of the iw_cxgb[34]
drivers. This doesn't mean its correct however. :)
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html