linux/drivers/gpu/drm/amd
Wesley Chalmers 6209542869 drm/amd/display: Use the largest vready_offset in pipe group
[ Upstream commit 5842abd985 ]

[WHY]
Corruption can occur in LB if vready_offset is not large enough.
DML calculates vready_offset for each pipe, but we currently select the
top pipe's vready_offset, which is not necessarily enough for all pipes
in the group.

[HOW]
Wherever program_global_sync is currently called, iterate through the
entire pipe group and find the highest vready_offset.

Reviewed-by: Dillon Varone <Dillon.Varone@amd.com>
Acked-by: Jasdeep Dhillon <jdhillon@amd.com>
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2022-12-31 13:14:43 +01:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu: Fix type of second parameter in trans_msg() callback 2022-12-31 13:14:41 +01:00
amdkfd drm/amdkfd: Migrate in CPU page fault use current mm 2022-11-16 09:58:30 +01:00
display drm/amd/display: Use the largest vready_offset in pipe group 2022-12-31 13:14:43 +01:00
include drm/amdgpu: Fix type of second parameter in odn_edit_dpm_table() callback 2022-12-31 13:14:41 +01:00
pm drm/amdgpu: Fix type of second parameter in odn_edit_dpm_table() callback 2022-12-31 13:14:41 +01:00