]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Add module parameter for specifying default ABM level
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 6 Jun 2019 12:44:37 +0000 (08:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Jun 2019 17:45:18 +0000 (12:45 -0500)
commit306ad3560ae04c43d7821ff5b549639b04310be4
treef83fb1ebd22bc81225f74f5fe8ed510ead72a875
parent257530ec78ec5be2e9e092da22d2e401dda87ada
drm/amdgpu: Add module parameter for specifying default ABM level

[Why]
It's non trivial to configure or specify an ABM reduction level for
userspace outside of X. There is also no method to specify the default
ABM value at boot time.

A parameter should be added to configure this.

[How]
Expose a module parameter that can specify the default ABM level to
use for eDP connectors on DC enabled hardware that loads the DMCU
firmware.

The default is still disabled (0), but levels can range from 1-4. Levels
control how much the backlight can be reduced, with being the least
amount of reduction and four being the most reduction.

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: David Francis <david.francis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c