]> asedeno.scripts.mit.edu Git - linux.git/commit
dma-mapping: fix handling of dma-ranges for reserved memory (again)
authorVladimir Murzin <vladimir.murzin@arm.com>
Wed, 30 Oct 2019 10:13:13 +0000 (10:13 +0000)
committerChristoph Hellwig <hch@lst.de>
Wed, 30 Oct 2019 18:07:35 +0000 (11:07 -0700)
commita445e940ea686fc60475564009821010eb213be3
treeb17dc8ffdaef1c111cf52c51ef976eb24f5023c5
parent320000e72ec0613e164ce9608d865396fb2da278
dma-mapping: fix handling of dma-ranges for reserved memory (again)

Daniele reported that issue previously fixed in c41f9ea998f3
("drivers: dma-coherent: Account dma_pfn_offset when used with device
tree") reappear shortly after 43fc509c3efb ("dma-coherent: introduce
interface for default DMA pool") where fix was accidentally dropped.

Lets put fix back in place and respect dma-ranges for reserved memory.

Fixes: 43fc509c3efb ("dma-coherent: introduce interface for default DMA pool")
Reported-by: Daniele Alessandrelli <daniele.alessandrelli@gmail.com>
Tested-by: Daniele Alessandrelli <daniele.alessandrelli@gmail.com>
Tested-by: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
arch/arm/mm/dma-mapping-nommu.c
include/linux/dma-mapping.h
kernel/dma/coherent.c