Re: remove the ->mapping_error method from dma_map_ops V2

From: David Miller
Date: Wed Nov 28 2018 - 14:27:20 EST


From: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Nov 2018 10:00:06 -0800

> Not all memory is accessible even to the kernel. If you have memory
> that shows up in the last page of phys_addr_t, you just mark it
> reserved at boot-time.

It's not the physical memory at the end that needs to be reserved.

It's the IOMMU mapping arena.

That basically requires changes to every IOMMU implementation in
the tree. Not saying it's hard or impossible, but it is real
meticulous work that needs to be done in order to realize this.