Not just when DMUB outbox is supported.
It will be used for normal HPD events too.

Signed-off-by: Timur Kristóf <[email protected]>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index 28092ac052ae..255903d000c2 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -2197,6 +2197,12 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
                        
create_singlethread_workqueue("dm_vblank_control_workqueue");
                if (!adev->dm.vblank_control_workqueue)
                        drm_err(adev_to_drm(adev), "failed to initialize 
vblank_workqueue.\n");
+
+               adev->dm.delayed_hpd_wq = 
create_singlethread_workqueue("amdgpu_dm_hpd_wq");
+               if (!adev->dm.delayed_hpd_wq) {
+                       drm_err(adev_to_drm(adev), "failed to create hpd 
offload workqueue.\n");
+                       goto error;
+               }
        }
 
        if (adev->dm.dc->caps.ips_support &&
@@ -2223,12 +2229,6 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
                        goto error;
                }
 
-               adev->dm.delayed_hpd_wq = 
create_singlethread_workqueue("amdgpu_dm_hpd_wq");
-               if (!adev->dm.delayed_hpd_wq) {
-                       drm_err(adev_to_drm(adev), "failed to create hpd 
offload workqueue.\n");
-                       goto error;
-               }
-
                amdgpu_dm_outbox_init(adev);
                if (!register_dmub_notify_callback(adev, 
DMUB_NOTIFICATION_AUX_REPLY,
                        dmub_aux_setconfig_callback, false)) {
-- 
2.54.0

Reply via email to