Patch "drm/amd/display: Don't check registers, if using AUX BL control" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/amd/display: Don't check registers, if using AUX BL control

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-amd-display-don-t-check-registers-if-using-aux-b.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit f140afece033de703f7bdb007e3c7c1e0548da55
Author: Swapnil Patel <swapnil.patel@xxxxxxx>
Date:   Thu Aug 17 14:04:26 2023 -0400

    drm/amd/display: Don't check registers, if using AUX BL control
    
    [ Upstream commit f5b2c10b57615828b531bb0ae56bd6325a41167e ]
    
    [Why]
    Currently the driver looks DCN registers to access if BL is on or not.
    This check is not valid if we are using AUX based brightness control.
    This causes driver to not send out "backlight off" command during power off
    sequence as it already thinks it is off.
    
    [How]
    Only check DCN registers if we aren't using AUX based brightness control.
    
    Reviewed-by: Wenjing Liu <wenjing.liu@xxxxxxx>
    Acked-by: Stylon Wang <stylon.wang@xxxxxxx>
    Signed-off-by: Swapnil Patel <swapnil.patel@xxxxxxx>
    Tested-by: Daniel Wheeler <daniel.wheeler@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
index 52142d272c868..87825818d43ec 100644
--- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
@@ -980,7 +980,9 @@ void dce110_edp_backlight_control(
 		return;
 	}
 
-	if (link->panel_cntl) {
+	if (link->panel_cntl && !(link->dpcd_sink_ext_caps.bits.oled ||
+		link->dpcd_sink_ext_caps.bits.hdr_aux_backlight_control == 1 ||
+		link->dpcd_sink_ext_caps.bits.sdr_aux_backlight_control == 1)) {
 		bool is_backlight_on = link->panel_cntl->funcs->is_panel_backlight_on(link->panel_cntl);
 
 		if ((enable && is_backlight_on) || (!enable && !is_backlight_on)) {



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux