diff options
author | Michael Walle <michael@walle.cc> | 2021-09-07 19:49:45 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2021-12-01 15:27:12 +0300 |
commit | f5be833dc86f49637b65b7989a9ee49ac08f7da6 (patch) | |
tree | e32a3662a1afff1260df24a91e84d261b9c1ebb8 /security | |
parent | 0ea057a9cb2be406b104b92ab4d8e246276e3fb8 (diff) | |
download | linux-f5be833dc86f49637b65b7989a9ee49ac08f7da6.tar.xz |
drm/etnaviv: use a 32 bit mask as coherent DMA mask
The STLB and the first command buffer (which is used to set up the TLBs)
has a 32 bit size restriction in hardware. There seems to be no way to
specify addresses larger than 32 bit. Keep it simple and restict the
addresses to the lower 4 GiB range for all coherent DMA memory
allocations.
Please note, that platform_device_alloc() will initialize dev->dma_mask
to point to pdev->platform_dma_mask, thus dma_set_mask() will work as
expected.
While at it, move the dma_mask setup code to the of_dma_configure() to
keep all the DMA setup code next to each other.
Suggested-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions