drm/amd/display: Disable DPPCLK RCG to fix cursor disappearing

[Why & How]
DPP clock is gated when programming the cursor. This change
disables DPPCLK RCG in dccg42_init before accessing DPP,
ensuring cursor programming latches correctly.

Assisted-by: Cursor
Reviewed-by: Ovidiu (Ovi) Bunea <ovidiu.bunea@amd.com>
Signed-off-by: Karen Chen <Karen.Chen@amd.com>
Signed-off-by: George Zhang <george.zhang@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Karen Chen 2026-06-10 13:40:13 -04:00 committed by Alex Deucher
parent 0b2becfc28
commit 687bd7c811

View File

@ -292,6 +292,12 @@ static void dccg42_init(struct dccg *dccg)
dccg42_disable_hdmistreamclk(dccg);
if (dccg->ctx->dc->debug.root_clock_optimization.bits.hdmichar)
dccg42_disable_hdmicharclk(dccg, 0);
if (dccg->ctx->dc->debug.root_clock_optimization.bits.dpp) {
for (i = 0; i < res_pool->pipe_count; i++) {
dccg35_dpp_root_clock_control(dccg, i, true);
}
}
}