]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: limit coverage of optimization skip
authorAusef Yousof <Ausef.Yousof@amd.com>
Thu, 30 Jan 2025 17:30:10 +0000 (12:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:04:09 +0000 (21:04 -0500)
[why&how]
causing some regression on dgpu which still needs the
pre-emptive return, limit this to reporter asic version
it is simple to include
different dcn versions from this point forward, each dcn
resource is initialized with the flag and can be enabled
at will

Reviewed-by: Chris Park <chris.park@amd.com>
Signed-off-by: Ausef Yousof <Ausef.Yousof@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn351/dcn351_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c

index 6d163dcecde6adea1f88af1c9ba8e6ceaccd97c9..ffd2b816cd02c7609d271c0d775055a9bec4d712 100644 (file)
@@ -1909,6 +1909,7 @@ static bool dcn35_resource_construct(
        /* Use pipe context based otg sync logic */
        dc->config.use_pipe_ctx_sync_logic = true;
 
+
        dc->config.disable_hbr_audio_dp2 = true;
        /* read VBIOS LTTPR caps */
        {
index 4a03df5d760fb63039b2b5e2f677843d77c716ed..98f5bc1b929ecfa40bb9ce4ceceb46b98506a746 100644 (file)
@@ -1877,6 +1877,7 @@ static bool dcn351_resource_construct(
        /* Use pipe context based otg sync logic */
        dc->config.use_pipe_ctx_sync_logic = true;
 
+
        /* Use psp mailbox to enable assr */
        dc->config.use_assr_psp_message = true;
 
index 64f2153310df6b9afcd517eedc36c5befea48653..4e842f29d4c49b9df7d4a9688a7c310831ee0485 100644 (file)
@@ -1923,6 +1923,7 @@ static bool dcn401_resource_construct(
        dc->config.dc_mode_clk_limit_support = true;
        dc->config.enable_windowed_mpo_odm = true;
        dc->config.set_pipe_unlock_order = true; /* Need to ensure DET gets freed before allocating */
+
        /* read VBIOS LTTPR caps */
        {
                if (ctx->dc_bios->funcs->get_lttpr_caps) {