Grant> The problem is sga_dma_map* functions do not return an
    Grant> error.  One needs to call dma_mapping_error() to verify the
    Grant> IO address returned was valid. This is a relatively new
    Grant> interface so I wouldn't expect that many driver writers are
    Grant> not aware of it.  Most don't need to be aware of it since
    Grant> they don't attempt to map GBs of physical memory at a time.

On ppc64 at least, dma_map_sg() will return 0 if the mapping request
fails (even if it fails in the middle).  Are other architectures
different?

 - R.
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to