FAILED: patch "[PATCH] drm/amd/display: Fix access timeout to DPIA AUX at boot time" failed to apply to 6.1-stable tree
[email protected]
maintainerThe patch below does not apply to the 6.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Possible dependencies:
1c43a48b44a5 ("drm/amd/display: Fix access timeout to DPIA AUX at boot time")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 1c43a48b44a5449ed996215d1488284d5bdb2be0 Mon Sep 17 00:00:00 2001
From: Stylon Wang <[email protected]>
Date: Mon, 24 Oct 2022 15:36:16 +0800
Subject: [PATCH] drm/amd/display: Fix access timeout to DPIA AUX at boot time
[Why]
Since introduction of patch "Query DPIA HPD status.", link detection at boot could be accessing DPIA AUX, which will not succeed until DMUB outbox messaging is enabled and results in below dmesg logs:
[ 160.840227] [drm:amdgpu_dm_process_dmub_aux_transfer_sync [amdgpu]] *ERROR* wait_for_completion_timeout timeout!
[How]
Enable DMUB outbox messaging before link detection at boot time.
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +6 -6
@@ -1636,12 +1636,6 @@ static int amdgpu_dm_init(struct amdgpu_device *adev) } } -if (amdgpu_dm_initialize_drm_device (adev)) { -DRM_ERROR ( -"amdgpu: failed to initialize sw for display support.\n" ); - goto error; - } -/* Enable outbox notification only after IRQ handlers are registered and DMUB is alive. * It is expected that DMUB will resend any pending notifications at this point, for * example HPD from DPIA.
@@ -1649,6 +1643,12 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)if (dc_is_dmub_outbox_supported (adev->dm.dc))dc_enable_dmub_outbox (adev->dm.dc); +if (amdgpu_dm_initialize_drm_device (adev)) { +DRM_ERROR ( +"amdgpu: failed to initialize sw for display support.\n" ); + goto error; + } +/* create fake encoders for MST */ dm_dp_create_fake_mst_encoders (adev);