]> git.ipfire.org Git - thirdparty/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 14:56:04 +0000 (10:56 -0400)
commite6e2b956fc814de766d3480be7018297c41d3ce0
tree9741bfe9a19820f8842405a9c5c910f7dc48e0d4
parent61436301dfc1d845f2b90a5f07d5c1d7cf89e900
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>
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