[openib-general] [PATCH] mthca: fix registration for giant MRs
Roland Dreier
roland at topspin.com
Wed Jun 1 16:03:16 PDT 2005
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.
More information about the general
mailing list