]> Gentwo Git Trees - linux/.git/commit
drm/amd: Re-introduce property to control adaptive backlight modulation
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 18 Jul 2025 19:20:45 +0000 (14:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 13:56:14 +0000 (09:56 -0400)
commit1454642960b0a4fafd48b08919d39350ee2ac372
treef265fa3ded777b8026b473d6ec03978fb48840c6
parent90ef1dcb1d2bb84ad998e845e26a2a297a7ddfd6
drm/amd: Re-introduce property to control adaptive backlight modulation

commit 0887054d14ae ("drm/amd: Drop abm_level property") dropped the
abm level property in favor of sysfs control. Since then there have
been discussions that compositors showed an interest in modifying
a vendor specific property instead.

So re-introduce the abm level property, but with different semantics.
Rather than being an integer it's now an enum. One of the enum options
is 'sysfs', and that is because there is still a sysfs file for use by
userspace when the compositor doesn't support this property.

If usespace has not modified this property, the default value will
be for sysfs to control it. Once userspace has set the property stop
allowing sysfs control.

The property is only attached to non-OLED eDP panels.

Cc: Xaver Hugl <xaver.hugl@kde.org>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_display.h
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h