mirror_ubuntu-kernels/drivers/gpu/drm/amd
Gabe Teeger 5a3ccb1400 drm/amd/display: Remove wait while locked
[Why]
We wait for mpc idle while in a locked state, leading to potential
deadlock.

[What]
Move the wait_for_idle call to outside of HW lock. This and a
call to wait_drr_doublebuffer_pending_clear are moved added to a new
static helper function called wait_for_outstanding_hw_updates, to make
the interface clearer.

Cc: stable@vger.kernel.org
Fixes: 8f0d304d21 ("drm/amd/display: Do not commit pipe when updating DRR")
Reviewed-by: Jun Lei <jun.lei@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Gabe Teeger <gabe.teeger@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-08-31 18:08:19 -04:00
..
acp
amdgpu drm/amdgpu: Add SMU v13.0.6 default reset methods 2023-08-31 18:05:43 -04:00
amdkfd drm/amdkfd: retry after EBUSY is returned from hmm_ranges_get_pages 2023-08-31 17:54:41 -04:00
amdxcp drm/amdxcp: fix Makefile to build amdxcp module 2023-06-09 12:32:53 -04:00
display drm/amd/display: Remove wait while locked 2023-08-31 18:08:19 -04:00
include drm/amdgpu: update gc_info v2_1 from discovery 2023-08-31 17:53:19 -04:00
pm drm/amdgpu: Add SMU v13.0.6 default reset methods 2023-08-31 18:05:43 -04:00