Thread (47 messages) 47 messages, 7 authors, 2018-11-28

remove the ->mapping_error method from dma_map_ops V2

From: torvalds@linux-foundation.org (Linus Torvalds)
Date: 2018-11-22 16:51:11
Also in: linux-alpha, linux-arch, linux-iommu, lkml

On Thu, Nov 22, 2018 at 6:03 AM Christoph Hellwig [off-list ref] wrote:
The 0 return doesn't work for direct mappings that have ram at address
zero and a lot of IOMMUs that start allocating bus space from address
zero, so we can't consolidate on that, but I think we can move everyone
to all-Fs, which the patch here does.
Hmm. Maybe not limit it to just all ones, but actually use the
(standard, for the kernel) IS_ERR_VALUE()?

That basically reserves the last 4095 values in an unsigned long for
error values.

Then those functions could actually return *what* error they
encountered, using just plain

        return -ENOMEM;

or whatever?

               Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help