[PATCH] drm/etnaviv: Always init gpu->memory_base

Marek Vasut marex at denx.de
Fri Aug 26 14:25:13 UTC 2016


The content of gpu->memory_base should point to start of RAM, not zero.

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Lucas Stach <l.stach at pengutronix.de>
Cc: Christian Gmeiner <christian.gmeiner at gmail.com>
Cc: Russell King <rmk+kernel at arm.linux.org.uk>
---
 drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
index ff6aa5d..a168532 100644
--- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
+++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c
@@ -588,6 +588,8 @@ int etnaviv_gpu_init(struct etnaviv_gpu *gpu)
 			gpu->memory_base = PHYS_OFFSET;
 		else
 			gpu->memory_base = dma_mask - SZ_2G + 1;
+	} else {
+		gpu->memory_base = PHYS_OFFSET;
 	}
 
 	ret = etnaviv_hw_reset(gpu);
-- 
2.9.3



More information about the dri-devel mailing list