mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-06-29 23:43:21 -04:00
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
This commit is contained in:
parent
f4f3beb779
commit
334dd38a38
1 changed files with 2 additions and 2 deletions
|
@ -232,8 +232,8 @@ static int v3d_platform_drm_probe(struct platform_device *pdev)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
mmu_debug = V3D_READ(V3D_MMU_DEBUG_INFO);
|
mmu_debug = V3D_READ(V3D_MMU_DEBUG_INFO);
|
||||||
dev->coherent_dma_mask =
|
dma_set_mask_and_coherent(dev,
|
||||||
DMA_BIT_MASK(30 + V3D_GET_FIELD(mmu_debug, V3D_MMU_PA_WIDTH));
|
DMA_BIT_MASK(30 + V3D_GET_FIELD(mmu_debug, V3D_MMU_PA_WIDTH)));
|
||||||
v3d->va_width = 30 + V3D_GET_FIELD(mmu_debug, V3D_MMU_VA_WIDTH);
|
v3d->va_width = 30 + V3D_GET_FIELD(mmu_debug, V3D_MMU_VA_WIDTH);
|
||||||
|
|
||||||
ident1 = V3D_READ(V3D_HUB_IDENT1);
|
ident1 = V3D_READ(V3D_HUB_IDENT1);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue