On 9/21/26 05:41, Timur Kristóf wrote:
DCE6 should use legacy fast updates, just like all DCE8 - DCN2.

Technically DCE6 should have been included when the fast update
code was refactored, but it just happened to work until now.

A recent commit "Attach only plane updates that actually changed"
has exposed this issue because with that commit, DC accidentally
took the new fast update code path for DCE6 as well, which caused
it to boot into a black screen with a flip done timeout.

This fix should be backported to all kernel versions that
have "Refactor fast update to use new HWSS build sequence",
but this patch won't apply cleanly to older kernels due to
another refactor in "Remove dc param from check_update".

Fixes: 0baae6246307 ("drm/amd/display: Refactor fast update to use new HWSS build 
sequence")
Fixes: 9ec11bb842b6 ("drm/amd/display: Remove dc param from check_update")
Signed-off-by: Timur Kristóf <[email protected]>
Reviewed-by: Mario Limonciello <[email protected]>> ---
  .../drm/amd/display/dc/resource/dce60/dce60_resource.c    | 8 ++++++++
  1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/amd/display/dc/resource/dce60/dce60_resource.c 
b/drivers/gpu/drm/amd/display/dc/resource/dce60/dce60_resource.c
index d2d56a1c4b8b..f4efa55952f3 100644
--- a/drivers/gpu/drm/amd/display/dc/resource/dce60/dce60_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/resource/dce60/dce60_resource.c
@@ -448,6 +448,12 @@ static const struct dce_abm_mask abm_mask = {
                ABM_MASK_SH_LIST_DCE110(_MASK)
  };
+static const struct dc_debug_options debug_defaults = { 0 };
+
+static const struct dc_check_config config_defaults = {
+       .enable_legacy_fast_update = true,
+};
+
  #define CTX  ctx
  #define REG(reg) mm ## reg
@@ -937,6 +943,8 @@ static bool dce60_construct(
        dc->caps.max_cursor_size = 64;
        dc->caps.dual_link_dvi = true;
        dc->caps.extended_aux_timeout_support = false;
+       dc->debug = debug_defaults;
+       dc->check_config = config_defaults;
/*************************************************
         *  Create resources                             *

Reply via email to