Skip to content

Commit 4bce244

Browse files
Marco Felschlynxeye-dev
authored andcommitted
drm/etnaviv: disable tx clock gating for GC7000 rev6203
The i.MX8MN SoC errata sheet mentions ERR050226: "GPU: Texture L2 Cache idle signal may incorrectly clock gate the texture engine in GPU". The workaround is to disable the corresponding clock gatings. While on it move the clock gating check for rev6202 into the same check to bundle them. Signed-off-by: Marco Felsch <[email protected]> Reviewed-by: Christian Gmeiner <[email protected]> Signed-off-by: Lucas Stach <[email protected]>
1 parent d37c120 commit 4bce244

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/gpu/drm/etnaviv/etnaviv_gpu.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,14 +623,15 @@ static void etnaviv_gpu_enable_mlcg(struct etnaviv_gpu *gpu)
623623

624624
/* Disable TX clock gating on affected core revisions. */
625625
if (etnaviv_is_model_rev(gpu, GC4000, 0x5222) ||
626-
etnaviv_is_model_rev(gpu, GC2000, 0x5108))
626+
etnaviv_is_model_rev(gpu, GC2000, 0x5108) ||
627+
etnaviv_is_model_rev(gpu, GC2000, 0x6202) ||
628+
etnaviv_is_model_rev(gpu, GC2000, 0x6203))
627629
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_TX;
628630

629-
/* Disable SE, RA and TX clock gating on affected core revisions. */
631+
/* Disable SE and RA clock gating on affected core revisions. */
630632
if (etnaviv_is_model_rev(gpu, GC7000, 0x6202))
631633
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_SE |
632-
VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA |
633-
VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_TX;
634+
VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA;
634635

635636
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA_HZ;
636637
pmc |= VIVS_PM_MODULE_CONTROLS_DISABLE_MODULE_CLOCK_GATING_RA_EZ;

0 commit comments

Comments
 (0)