]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Wait For DET Update Should Use Current State
authorAustin Zheng <Austin.Zheng@amd.com>
Thu, 12 Sep 2024 19:34:14 +0000 (15:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 1 Oct 2024 21:34:04 +0000 (17:34 -0400)
commit82f8b2cfd7db83924ff9515273f4781fa53648ab
tree7356702b00e74e2142ce91af5872fd235e864822
parent4d4257280d7957727998ef90ccc7b69c7cca8376
drm/amd/display: Wait For DET Update Should Use Current State

[Why]
Current state should be used when waiting for DET update
instead of new context.
For any streams decreasing in DET, pipes used in the current state
should be checked since those pipes need to free their DET before
DET can be reallocated.

[How]
Pass in current_state instead of context.
Use pipe from current_state instead of context. This assumes that
pipe in the current_state is an OTG_MASTER pipe if the pipe in the context is an OTG_MASTER pipe.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.c
drivers/gpu/drm/amd/display/dc/hwss/dcn401/dcn401_hwseq.h