Skip to content

Commit 432f51e

Browse files
mwallelynxeye-dev
authored andcommitted
drm/etnaviv: add clock gating workaround for GC7000 r6202
The LS1028A SoC errata sheet mentions A-050121 "GPU hangs if clock gating for Rasterizer, Setup Engine and Texture Engine are enabled". The workaround is to disable the corresponding clock gatings. Signed-off-by: Michael Walle <[email protected]> Signed-off-by: Lucas Stach <[email protected]>
1 parent 12495f4 commit 432f51e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/gpu/drm/etnaviv/etnaviv_gpu.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,12 @@ static void etnaviv_gpu_enable_mlcg(struct etnaviv_gpu *gpu)
613613
etnaviv_is_model_rev(gpu, GC2000, 0x5108))
614614
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_TX;
615615

616+
/* Disable SE, RA and TX clock gating on affected core revisions. */
617+
if (etnaviv_is_model_rev(gpu, GC7000, 0x6202))
618+
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_SE |
619+
VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA |
620+
VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_TX;
621+
616622
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA_HZ;
617623
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA_EZ;
618624

0 commit comments

Comments
 (0)