dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/msm/a6xx: No zap shader is not an error
@ 2019-05-08 13:06 Rob Clark
       [not found] ` <20190508130726.27557-1-robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2019-05-08 20:27 ` Sean Paul
  0 siblings, 2 replies; 4+ messages in thread
From: Rob Clark @ 2019-05-08 13:06 UTC (permalink / raw)
  To: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW
  Cc: Rob Clark, freedreno-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW,
	David Airlie, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA,
	Sharat Masetty, Jordan Crouse,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rob Clark, Daniel Vetter,
	Sean Paul

From: Rob Clark <robdclark@chromium.org>

Depending on platform firmware, a zap shader may not be required to take
the GPU out of secure mode on boot, in which case we can just write
RBBM_SECVID_TRUST_CNTL directly.  Which we *mostly* handled, but missed
clearing 'ret' resulting that hw_init() returned an error on these
devices.

Fixes: abccb9fe3267 drm/msm/a6xx: Add zap shader load
Signed-off-by: Rob Clark <robdclark@chromium.org>
---
 drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c
index ec24508b9d68..e74dce474250 100644
--- a/drivers/gpu/drm/msm/adreno/a6xx_gpu.c
+++ b/drivers/gpu/drm/msm/adreno/a6xx_gpu.c
@@ -527,6 +527,7 @@ static int a6xx_hw_init(struct msm_gpu *gpu)
 		dev_warn_once(gpu->dev->dev,
 			"Zap shader not enabled - using SECVID_TRUST_CNTL instead\n");
 		gpu_write(gpu, REG_A6XX_RBBM_SECVID_TRUST_CNTL, 0x0);
+		ret = 0;
 	}
 
 out:
-- 
2.20.1

_______________________________________________
Freedreno mailing list
Freedreno@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/freedreno

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-08 20:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-08 13:06 [PATCH] drm/msm/a6xx: No zap shader is not an error Rob Clark
     [not found] ` <20190508130726.27557-1-robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-05-08 14:35   ` Sean Paul
2019-05-08 15:29   ` Jordan Crouse
2019-05-08 20:27 ` Sean Paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox