OSDN Git Service

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)
commitad4de27f48f0b2411f4a703db557a8d8c91b3a50
treef83fb1ebd22bc81225f74f5fe8ed510ead72a875
parentae1589f669b5e2c557a6edc9599fc1f424003b70
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