]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: fix duplicate aux command with AMD aux backlight
authorHarry VanZyllDeJong <hvanzyll@amd.com>
Wed, 17 Sep 2025 20:46:13 +0000 (16:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 20 Oct 2025 22:19:08 +0000 (18:19 -0400)
when using AMD aux backlight control, we avoid sending backlight
update commands to DMUB firmware because it is controlled by aux commands
in driver.

Reviewed-by: Iswara Nagulendran <iswara.nagulendran@amd.com>
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Harry VanZyllDeJong <hvanzyll@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/hwss/dcn31/dcn31_hwseq.c

index b822f2dffff0eb75f5fe22503c7aa80f2c22b56d..d1ecdb92b072b1cbd8a92e205963b36489ebe1d0 100644 (file)
@@ -710,7 +710,8 @@ bool dcn31_set_backlight_level(struct pipe_ctx *pipe_ctx,
                        panel_cntl->inst,
                        panel_cntl->pwrseq_inst);
 
-       dmub_abm_set_backlight(dc, backlight_level_params, panel_cntl->inst);
+       if (backlight_level_params->control_type != BACKLIGHT_CONTROL_AMD_AUX)
+               dmub_abm_set_backlight(dc, backlight_level_params, panel_cntl->inst);
 
        return true;
 }