]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix deadlock during gpu reset v3
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Mon, 11 Jan 2021 19:45:12 +0000 (14:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 04:48:47 +0000 (23:48 -0500)
commita07bc2b2ae8af2c352ca70e074ad377ff1748300
tree6b8576bbcaa0c1143cd45a0aa56030c287193539
parent51cfa077e766b848d7d330ab6be3886174f7067e
drm/amd/display: Fix deadlock during gpu reset v3

[Why]
during idle optimizations we acquire the dc_lock, this lock is also
acquired during gpu_reset so we end up hanging the system due to a
deadlock

[How]
If we are in gpu reset:
 - disable idle optimizations and skip calls to the dc function

v2: skip idle optimizations calls
v3: add guard for DCN

Fixes: 98e380831afd8f4 ("drm/amd/display: enable idle optimizations for linux (MALL stutter)")
Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c