Re: [PATCH] drm/amd/display: Fix deadlock during gpu reset v2

2021-01-12 Thread Lakha, Bhawanpreet
c: amd-gfx@lists.freedesktop.org ; Lakha, Bhawanpreet Subject: RE: [PATCH] drm/amd/display: Fix deadlock during gpu reset v2 [AMD Public Use] When using dc_allow_idle_optimizations, should it be guarded by CONFIG_DRM_AMD_DC_DCN? Regards, Guchun -Original Message- From: Bhawanpreet L

Re: [PATCH] drm/amd/display: Fix deadlock during gpu reset v2

2021-01-12 Thread Lakha, Bhawanpreet
c: amd-gfx@lists.freedesktop.org ; Lakha, Bhawanpreet Subject: RE: [PATCH] drm/amd/display: Fix deadlock during gpu reset v2 [AMD Public Use] When using dc_allow_idle_optimizations, should it be guarded by CONFIG_DRM_AMD_DC_DCN? Regards, Guchun -Original Message- From: Bhawanpreet Lakha Sent: Tuesday,

RE: [PATCH] drm/amd/display: Fix deadlock during gpu reset v2

2021-01-11 Thread Chen, Guchun
@lists.freedesktop.org; Lakha, Bhawanpreet Subject: [PATCH] drm/amd/display: Fix deadlock during gpu reset v2 [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

[PATCH] drm/amd/display: Fix deadlock during gpu reset v2

2021-01-11 Thread Bhawanpreet Lakha
[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 Fixes: 06d5652541c