]> git.baikalelectronics.ru Git - kernel.git/commit
drm/v3d: Set dma_mask as well as coherent_dma_mask
authorPhil Elwell <phil@raspberrypi.org>
Wed, 23 Dec 2020 20:35:12 +0000 (21:35 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 6 Jan 2021 17:38:57 +0000 (18:38 +0100)
commitfa1c0b73cfd2368df018fdf31cd3980261a2e1dc
tree3985c144b224475c2d1137b5865c1c2dfa82ac30
parent0bb12d510e3086a7b61333fbf13e93ef7a9f541f
drm/v3d: Set dma_mask as well as coherent_dma_mask

Both coherent_dma_mask and dma_mask act as constraints on allocations
and bounce buffer usage, so be sure to set dma_mask to the appropriate
value otherwise the effective mask could be incorrect.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/1608755714-18233-3-git-send-email-stefan.wahren@i2se.com
drivers/gpu/drm/v3d/v3d_drv.c