]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/display: Make DSC FGCG a DSC block level function
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 14 Jan 2026 19:55:38 +0000 (14:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Feb 2026 21:39:37 +0000 (16:39 -0500)
commitb8285d2ee73758386252cc3a67839bc463dfa1cc
treeca5c171a1281b6867834dd826be98c18a22865cd
parent8488fb054ea8a603921fe0a05bfc2bd43e64c5bc
drm/amd/display: Make DSC FGCG a DSC block level function

[Why]
FGCG shouldn't be called at the DC resource level as part of DSC
creation because dc_create is intended for SW init, not HW init, and
register access is not guaranteed to work at this phase.

[How]
Add a set_fgcg function at the DSC interface level.

Existing ASIC can continue using the function in DC resource to retain
current compatibility but further development should favor calling
the function pointer during init_hw (if it exists).

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@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/dsc/dsc.h