]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Add missing DCCG register entries for DCN20-DCN316
authorIvan Lipski <ivan.lipski@amd.com>
Tue, 24 Feb 2026 21:28:00 +0000 (16:28 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Mar 2026 18:01:16 +0000 (14:01 -0400)
commit33efc6346e8cf75219673fe1ca1916ab40643728
tree45a239dc0e35fa3c0c767d65792ae56c63472ab1
parent72ecb1dae72775fa9fea0159d8445d620a0a2295
drm/amd/display: Add missing DCCG register entries for DCN20-DCN316

Commit 4c595e75110e ("drm/amd/display: Migrate DCCG registers access
from hwseq to dccg component.") moved register writes from hwseq to
dccg2_*() functions but did not add the registers to the DCCG register
list macros. The struct fields default to 0, so REG_WRITE() targets
MMIO offset 0, causing a GPU hang on resume (seen on DCN21/DCN30
during IGT kms_cursor_crc@cursor-suspend).

Add
- MICROSECOND_TIME_BASE_DIV
- MILLISECOND_TIME_BASE_DIV
- DCCG_GATE_DISABLE_CNTL
- DCCG_GATE_DISABLE_CNTL2
- DC_MEM_GLOBAL_PWR_REQ_CNTL
to macros in  dcn20_dccg.h, dcn301_dccg.h, dcn31_dccg.h, and dcn314_dccg.h.

Fixes: 4c595e75110e ("drm/amd/display: Migrate DCCG registers access from hwseq to dccg component.")
Reported-by: Rafael Passos <rafael@rcpassos.me>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e6e2b956fc814de766d3480be7018297c41d3ce0)
drivers/gpu/drm/amd/display/dc/dccg/dcn20/dcn20_dccg.h
drivers/gpu/drm/amd/display/dc/dccg/dcn301/dcn301_dccg.h
drivers/gpu/drm/amd/display/dc/dccg/dcn31/dcn31_dccg.h
drivers/gpu/drm/amd/display/dc/dccg/dcn314/dcn314_dccg.h