Patch "drm/amd/display: Reduce default backlight min from 5 nits to 1 nits" has been added to the 6.6-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: Reduce default backlight min from 5 nits to 1 nits

to the 6.6-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-reduce-default-backlight-min-from-5-.patch
and it can be found in the queue-6.6 subdirectory.

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



commit f0af59d97798db902949b42c095aab2c18d6400a
Author: Swapnil Patel <swapnil.patel@xxxxxxx>
Date:   Wed Oct 4 15:58:57 2023 -0400

    drm/amd/display: Reduce default backlight min from 5 nits to 1 nits
    
    [ Upstream commit 5edb7cdff85af8f8c5fda5b88310535ab823f663 ]
    
    [Why & How]
    Currently set_default_brightness_aux function uses 5 nits as lower limit
    to check for valid default_backlight setting. However some newer panels
    can support even lower default settings
    
    Reviewed-by: Agustin Gutierrez <agustin.gutierrez@xxxxxxx>
    Acked-by: Roman Li <roman.li@xxxxxxx>
    Signed-off-by: Swapnil Patel <swapnil.patel@xxxxxxx>
    Tested-by: Daniel Wheeler <daniel.wheeler@xxxxxxx>
    Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
    Stable-dep-of: d9e865826c20 ("drm/amd/display: Simplify brightness initialization")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c b/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
index e1708c296b7df..a602202610e09 100644
--- a/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
+++ b/drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c
@@ -281,8 +281,8 @@ bool set_default_brightness_aux(struct dc_link *link)
 	if (link && link->dpcd_sink_ext_caps.bits.oled == 1) {
 		if (!read_default_bl_aux(link, &default_backlight))
 			default_backlight = 150000;
-		// if < 5 nits or > 5000, it might be wrong readback
-		if (default_backlight < 5000 || default_backlight > 5000000)
+		// if < 1 nits or > 5000, it might be wrong readback
+		if (default_backlight < 1000 || default_backlight > 5000000)
 			default_backlight = 150000; //
 
 		return edp_set_backlight_level_nits(link, true,



[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