]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Enable odm 4:1 when debug key is set
authorMuhammad Ahmed <muhammad.ahmed@amd.com>
Tue, 21 Jan 2025 21:24:04 +0000 (16:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:03:00 +0000 (21:03 -0500)
[WHAT]
odm 4to1 is enabled when debug key is set.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Muhammad Ahmed <muhammad.ahmed@amd.com>
Signed-off-by: Alex Hung <alex.hung@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/dml/dcn314/dcn314_fpu.c

index 21f637ae4add1cf11f1b8f296759a37bdde8058f..5ed117e11aa2ad2c2bc28c6955f2b06839e7c063 100644 (file)
@@ -409,6 +409,9 @@ int dcn314_populate_dml_pipes_from_context_fpu(struct dc *dc, struct dc_state *c
                context->bw_ctx.dml.ip.det_buffer_size_kbytes = 192;
        }
 
+       if (dc->debug.force_odm_combine_4to1)
+               context->bw_ctx.dml.ip.odm_combine_4to1_supported = true;
+
        for (i = 0; i < dc->res_pool->pipe_count; i++) {
                struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i];