diff options
author | Jacopo Mondi <[email protected]> | 2018-04-13 19:25:37 +0200 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2018-04-23 14:44:24 +0200 |
commit | 60695be2bb6b0623f8e53bd9949d582a83c6d44a (patch) | |
tree | 8d8c20c6897285ee5cc68e3dfef0e21ae2378ae9 /lib/memory-notifier-error-inject.c | |
parent | 41d0bbc749471522714efd0649b7e033fefcbfb4 (diff) |
dma-mapping: postpone cpu addr translation on mmap
Postpone calling virt_to_page() translation on memory locations not
guaranteed to be backed by a struct page. Try first to map memory from
the device coherent memory pool, then perform translation if that fails.
On some architectures, specifically SH when configured with the SPARSEMEM
memory model, assuming a struct page is always assigned to a memory
address lead to unexpected hangs during the virtual to page address
translation. This patch fixes that specific issue but applies in the
general case too.
Suggested-by: Laurent Pinchart <[email protected]>
Signed-off-by: Jacopo Mondi <[email protected]>
Reviewed-by: Robin Murphy <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions