]> www.infradead.org Git - users/dwmw2/linux.git/commit
dma-direct: don't truncate dma_required_mask to bus addressing capabilities
authorLucas Stach <l.stach@pengutronix.de>
Mon, 5 Aug 2019 15:51:53 +0000 (17:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Sep 2019 08:23:18 +0000 (10:23 +0200)
commit4ab6b15a00ca56ecc1ce372478916a611d369151
tree0865bec91defcb2c103c85e73732572e7adc551e
parent583c8d3118e00e32b1fe64dc6c442e8f241f9198
dma-direct: don't truncate dma_required_mask to bus addressing capabilities

[ Upstream commit d8ad55538abe443919e20e0bb996561bca9cad84 ]

The dma required_mask needs to reflect the actual addressing capabilities
needed to handle the whole system RAM. When truncated down to the bus
addressing capabilities dma_addressing_limited() will incorrectly signal
no limitations for devices which are restricted by the bus_dma_mask.

Fixes: b4ebe6063204 (dma-direct: implement complete bus_dma_mask handling)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/dma/direct.c