linux/drivers/gpu/drm/amd/display/dc/link/protocols
Mario Limonciello b96ab339ee drm/amd/display: Restore guard against default backlight value < 1 nit
Mark reports that brightness is not restored after Xorg dpms screen blank.

This behavior was introduced by commit d9e865826c ("drm/amd/display:
Simplify brightness initialization") which dropped the cached backlight
value in display code, but also removed code for when the default value
read back was less than 1 nit.

Restore this code so that the backlight brightness is restored to the
correct default value in this circumstance.

Reported-by: Mark Herbert <mark.herbert42@gmail.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3031
Cc: stable@vger.kernel.org
Cc: Camille Cho <camille.cho@amd.com>
Cc: Krunoslav Kovac <krunoslav.kovac@amd.com>
Cc: Hamza Mahfooz <hamza.mahfooz@amd.com>
Fixes: d9e865826c ("drm/amd/display: Simplify brightness initialization")
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2023-12-11 12:41:05 -05:00
..
link_ddc.c drm/amd/display: switch DC over to the new DRM logging macros 2023-09-26 17:00:21 -04:00
link_ddc.h drm/amd/display: Support Compliance Test Pattern Generation with DP2 Retimer 2023-08-15 18:08:27 -04:00
link_dp_capability.c drm/amd/display: refactor ILR to make it work 2023-10-04 18:41:45 -04:00
link_dp_capability.h drm/amd/display: convert link.h functions to function pointer style 2023-03-14 15:35:03 -04:00
link_dp_dpia.c drm/amd/display: refactor dmub commands into single function 2023-04-18 16:28:52 -04:00
link_dp_dpia.h drm/amd/display: move dc_link functions in protocols folder to dc_link_exports 2023-03-07 14:22:40 -05:00
link_dp_dpia_bw.c drm/amd/display: Add function pointer for validate bw usb4 2023-03-22 00:59:45 -04:00
link_dp_dpia_bw.h drm/amd/display: Add function pointer for validate bw usb4 2023-03-22 00:59:45 -04:00
link_dp_irq_handler.c drm/amd/display: Revise Replay Desync Error IRQ handle 2023-11-07 12:03:30 -05:00
link_dp_irq_handler.h drm/amd/display: move dc_link functions in protocols folder to dc_link_exports 2023-03-07 14:22:40 -05:00
link_dp_phy.c drm/amd/display: Refactor edp power control 2023-08-30 14:58:42 -04:00
link_dp_phy.h drm/amd/display: convert link.h functions to function pointer style 2023-03-14 15:35:03 -04:00
link_dp_training.c drm/amd/display: Add link encoding to timing BW calculation parameters 2023-07-18 11:15:51 -04:00
link_dp_training.h drm/amd/display: move dc_link functions in protocols folder to dc_link_exports 2023-03-07 14:22:40 -05:00
link_dp_training_8b_10b.c drm/amd/display: Add logging when DP link training Channel EQ is Successful 2023-06-09 09:27:14 -04:00
link_dp_training_8b_10b.h
link_dp_training_128b_132b.c drm/amd/display: Add logging when DP link training Channel EQ is Successful 2023-06-09 09:27:14 -04:00
link_dp_training_128b_132b.h
link_dp_training_auxless.c drm/amd/display: move dc_link functions in protocols folder to dc_link_exports 2023-03-07 14:22:40 -05:00
link_dp_training_auxless.h drm/amd/display: move dc_link functions in protocols folder to dc_link_exports 2023-03-07 14:22:40 -05:00
link_dp_training_dpia.c drm/amd/display: Add logging when DP link training Clock recovery is Successful 2023-04-14 13:47:49 -04:00
link_dp_training_dpia.h drm/amd/display: move dc_link functions in protocols folder to dc_link_exports 2023-03-07 14:22:40 -05:00
link_dp_training_fixed_vs_pe_retimer.c drm/amd/display: force toggle rate wa for first link training for a retimer 2023-11-29 18:05:38 -05:00
link_dp_training_fixed_vs_pe_retimer.h drm/amd/display: Improve robustness of FIXED_VS link training at DP1 rates 2023-04-11 18:03:43 -04:00
link_dpcd.c
link_dpcd.h
link_edp_panel_control.c drm/amd/display: Restore guard against default backlight value < 1 nit 2023-12-11 12:41:05 -05:00
link_edp_panel_control.h drm/amd/display: Simplify brightness initialization 2023-11-29 18:01:05 -05:00
link_hpd.c drm/amd/display: move dc_link functions in protocols folder to dc_link_exports 2023-03-07 14:22:40 -05:00
link_hpd.h drm/amd/display: convert link.h functions to function pointer style 2023-03-14 15:35:03 -04:00