drm/amd/display: Remove dc state from check_update
authorDominik Kaszewski <dominik.kaszewski@amd.com>
Tue, 15 Jul 2025 12:02:40 +0000 (14:02 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 Oct 2025 22:24:24 +0000 (18:24 -0400)
commit03a593b1acbaf5adabf766738da8f9a619151511
tree870cefe33c79e88df68b0c7c3ace197b141a1932
parentc04812cbe2f247a1c1e53a9b6c5e659963fe4065
drm/amd/display: Remove dc state from check_update

[Why]
dc_check_update_surfaces_for_stream should not have access to entire
DC, especially not a mutable one. Concurrent checks should be able
to run independently of one another, without risk of changing state.

[How]
* Remove access to dc state other than debug and capacity.
* Move some checks from DC to DM caller.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Dominik Kaszewski <dominik.kaszewski@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c