]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Update some of the dcn303 parameters
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Thu, 18 Apr 2024 22:05:33 +0000 (16:05 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 30 Apr 2024 13:52:46 +0000 (09:52 -0400)
Adjust to update some of the dcn303 parameters.

Acked-by: Wayne Lin <wayne.lin@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@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/dcn303/dcn303_resource.c

index 8bc1bcaeaa47d9c85c1d2e3112bc4cc1d7434c1e..63f0f882c8610cf985f000cdcdb57426f4e07a62 100644 (file)
@@ -97,8 +97,9 @@ static const struct dc_debug_options debug_defaults_drv = {
                .underflow_assert_delay_us = 0xFFFFFFFF,
                .dwb_fi_phase = -1, // -1 = disable,
                .dmub_command_table = true,
+               .use_max_lb = true,
                .exit_idle_opt_for_cursor_updates = true,
-               .disable_idle_power_optimizations = false,
+               .enable_legacy_fast_update = false,
                .using_dml2 = false,
 };
 
@@ -145,9 +146,9 @@ static const struct dc_plane_cap plane_cap = {
                                .fp16 = 16000
                },
                .max_downscale_factor = {
-                               .argb8888 = 600,
-                               .nv12 = 600,
-                               .fp16 = 600
+                               .argb8888 = 167,
+                               .nv12 = 167,
+                               .fp16 = 167
                },
                16,
                16
@@ -1171,6 +1172,8 @@ static bool dcn303_resource_construct(
        dc->caps.cursor_cache_size =
                dc->caps.max_cursor_size * dc->caps.max_cursor_size * 8;
        dc->caps.max_slave_planes = 1;
+       dc->caps.max_slave_yuv_planes = 1;
+       dc->caps.max_slave_rgb_planes = 1;
        dc->caps.post_blend_color_processing = true;
        dc->caps.force_dp_tps4_for_cp2520 = true;
        dc->caps.extended_aux_timeout_support = true;