Subject: [PATCH] arm64: dts: fast models: Switch to dynamically allocated VRAM

From: Peter Collingbourne <[email-masked]>
Date: Thu, 23 Apr 2020 16:49:03 -0700

According to the Fast Models Reference Manual, FVP has 32MB of video
RAM, However, even 32MB is not sufficient for some applications,
such as Android, which requires around 100-200MB when textures are
allocated in VRAM via DRM.

FVP supports DMA between DRAM and the graphics device. Therefore,
use a dynamically allocated region of reserved memory to provide
a sufficient amount of video RAM. The allocation is of size 256MB,
which ought to be enough for anyone.

Although this means that the designated VRAM ends up being left unused,
FVP allows the size of DRAM to be configurable, so this should not
be a problem in practice.

Signed-off-by: Peter Collingbourne <[email-masked]>
---
 arch/arm64/boot/dts/arm/fvp-base-revc.dts | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/arm64/boot/dts/arm/fvp-base-revc.dts b/arch/arm64/boot/dts/arm/fvp-base-revc.dts
index 66381d89c1ce..57641f16f22e 100644
--- a/arch/arm64/boot/dts/arm/fvp-base-revc.dts
+++ b/arch/arm64/boot/dts/arm/fvp-base-revc.dts
@@ -103,11 +103,9 @@ reserved-memory {
 		#size-cells = <2>;
 		ranges;
 
-		/* Chipselect 2,00000000 is physically at 0x18000000 */
-		vram: vram@18000000 {
-			/* 8 MB of designated video RAM */
+		vram: vram {
 			compatible = "shared-dma-pool";
-			reg = <0x00000000 0x18000000 0 0x00800000>;
+			size = <0 0x10000000>;
 			no-map;
 		};
 	};
-- 
2.26.2.303.gf8c07b1a785-goog

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel