]> git.baikalelectronics.ru Git - kernel.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)
committerChristoph Hellwig <hch@lst.de>
Sat, 10 Aug 2019 17:52:45 +0000 (19:52 +0200)
commitca57b0a2fe25a20c94da1b240fd67abcf849d24c
treea61652692adef23d8d1e8c6dafb83cc238039fde
parent2e45b136fce86eea0746495ee41800f77362eb9c
dma-direct: don't truncate dma_required_mask to bus addressing capabilities

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: 4819cff76a97 (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>
kernel/dma/direct.c