Skip to content

Commit 0dbd7bf

Browse files
SuperKalitorte71
authored andcommitted
rockchip64-6.14: Set dma mask to 64 bit (armbian#7924)
1 parent 29f3c07 commit 0dbd7bf

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: SuperKali <hello@superkali.me>
3+
Date: Fri, 7 Mar 2025 15:06:42 +0000
4+
Subject: drm/rockchip: Set dma mask to 64 bit
5+
6+
The vop mmu support translate physical address upper 4 GB to iova
7+
below 4 GB. So set dma mask to 64 bit to indicate we support address
8+
> 4GB.
9+
10+
This can avoid warnging message like this on some boards with DDR
11+
> 4 GB:
12+
13+
rockchip-drm display-subsystem: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 130 (slots)
14+
rockchip-drm display-subsystem: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 0 (slots)
15+
rockchip-drm display-subsystem: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 130 (slots)
16+
rockchip-drm display-subsystem: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 130 (slots)
17+
rockchip-drm display-subsystem: swiotlb buffer is full (sz: 266240 bytes), total 32768 (slots), used 0 (slots)
18+
---
19+
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 4 +++-
20+
1 file changed, 3 insertions(+), 1 deletion(-)
21+
22+
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
23+
index 111111111111..222222222222 100644
24+
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
25+
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
26+
@@ -472,7 +472,9 @@ static int rockchip_drm_platform_probe(struct platform_device *pdev)
27+
return ret;
28+
}
29+
30+
- return 0;
31+
+ ret = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(64));
32+
+
33+
+ return ret;
34+
}
35+
36+
static void rockchip_drm_platform_remove(struct platform_device *pdev)
37+
--
38+
Armbian
39+

0 commit comments

Comments
 (0)