[PATCH AUTOSEL for 4.9 163/293] drivers: dma-coherent: Account dma_pfn_offset when used with device tree

2018-04-08 Thread Sasha Levin
From: Vladimir Murzin [ Upstream commit c41f9ea998f3ba61f38fa350eef28ec6caf0a07d ] dma_declare_coherent_memory() and friends are designed to account difference in CPU and device addresses. However, when it is used with reserved memory regions there is assumption that

[PATCH AUTOSEL for 4.9 163/293] drivers: dma-coherent: Account dma_pfn_offset when used with device tree

2018-04-08 Thread Sasha Levin
From: Vladimir Murzin [ Upstream commit c41f9ea998f3ba61f38fa350eef28ec6caf0a07d ] dma_declare_coherent_memory() and friends are designed to account difference in CPU and device addresses. However, when it is used with reserved memory regions there is assumption that CPU and device have the