aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
diff options
context:
space:
mode:
authorAlvin Lee <alvin.lee2@amd.com>2024-04-26 17:28:46 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-06-05 11:06:36 -0400
commite69d43356ffdfb968c0c515bd42a8ad9a7399fcb (patch)
tree586c6725e8d7bbfa00fe1061d93016c20fab9ec1 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
parent4621e10e0158941d44223fd5f7451312473f73da (diff)
downloadlinux-e69d43356ffdfb968c0c515bd42a8ad9a7399fcb.tar.gz
linux-e69d43356ffdfb968c0c515bd42a8ad9a7399fcb.tar.bz2
linux-e69d43356ffdfb968c0c515bd42a8ad9a7399fcb.zip
drm/amd/display: Move fpo_in_use to stream_status
[Description] Refactor code and move fpo_in_use into stream_status to avoid unexpected changes to previous dc_state (i.e., current_state). Since stream pointers are shared between current and new dc_states, updating parameters of one stream will update the other as well which causes unexpected behaviors (i.e., checking that fpo_in_use isn't set in previous state and set in the new state is invalid). To avoid incorrect updates to current_state, move the fpo_in_use flag into dc_stream_status since stream_status is owned by dc and are not shared between different dc_states. Reviewed-by: Samson Tam <samson.tam@amd.com> Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c')
0 files changed, 0 insertions, 0 deletions