Skip to content

Commit 87d749a

Browse files
superm1alexdeucher
authored andcommitted
drm/amd/display: Allow backlight to go below AMDGPU_DM_DEFAULT_MIN_BACKLIGHT
The issue with panel power savings compatibility below `AMDGPU_DM_DEFAULT_MIN_BACKLIGHT` happens at `AMDGPU_DM_DEFAULT_MIN_BACKLIGHT` as well. That issue will be fixed separately, so don't prevent the backlight brightness from going that low. Cc: Harry Wentland <[email protected]> Cc: Thomas Weißschuh <[email protected]> Link: https://lore.kernel.org/amd-gfx/[email protected]/T/#m400dee4e2fc61fe9470334d20a7c8c89c9aef44f Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Mario Limonciello <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent d5a29e6 commit 87d749a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4506,7 +4506,7 @@ static void amdgpu_dm_update_backlight_caps(struct amdgpu_display_manager *dm,
45064506
int spread = caps.max_input_signal - caps.min_input_signal;
45074507

45084508
if (caps.max_input_signal > AMDGPU_DM_DEFAULT_MAX_BACKLIGHT ||
4509-
caps.min_input_signal < AMDGPU_DM_DEFAULT_MIN_BACKLIGHT ||
4509+
caps.min_input_signal < 0 ||
45104510
spread > AMDGPU_DM_DEFAULT_MAX_BACKLIGHT ||
45114511
spread < AMDGPU_DM_MIN_SPREAD) {
45124512
DRM_DEBUG_KMS("DM: Invalid backlight caps: min=%d, max=%d\n",

0 commit comments

Comments
 (0)