summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2025-02-23 08:37:32 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-03-10 21:11:13 +0300
commitb5a981e1b34e44f94a5967f730fff4166f2101e8 (patch)
treef6da108d0f13aa370eb2b4be39128995106d9b2e /tools/perf/scripts/python/gecko.py
parent40b8c14936bd2726354c856251f6baed9869e760 (diff)
downloadlinux-b5a981e1b34e44f94a5967f730fff4166f2101e8.tar.xz
drm/amd/display: fix default brightness
[Why] To avoid flickering during boot default brightness level set by BIOS should be maintained for as much of the boot as feasible. commit 2fe87f54abdc ("drm/amd/display: Set default brightness according to ACPI") attempted to set the right levels for AC vs DC, but brightness still got reset to maximum level in initialization code for setup_backlight_device(). [How] Remove the hardcoded initialization in setup_backlight_device() and instead program brightness value to match BIOS (AC or DC). This avoids a brightness flicker from kernel changing the value. Userspace may however still change it during boot. Fixes: 2fe87f54abdc ("drm/amd/display: Set default brightness according to ACPI") Acked-by: Wayne Lin <Wayne.Lin@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 0747acf3311229e22009bec4a9e7fc30c879e842) Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions