From 738f43a54d626f08e250c926a5aeec53458fbd3c Mon Sep 17 00:00:00 2001 From: David Francis Date: Thu, 3 Jan 2019 14:32:28 -0500 Subject: tests/amdgpu: Add test for Adaptive Backlight Management Adaptive Backlight Management (ABM) is a power-saving feature on AMD ASICs that reduces backlight while increasing pixel contrast and luminance. This test confirms that ABM is present and enabled, and that backlight performance is sane. It uses AMD-specific debugfs entries to read the backlight PWM values. It has 5 subtests: dpms_cycle Sets brightness to half, then confirms that value is restored after dpms off and then on. backlight_monotonic_basic Sets brightness to ten different values, confirming that higher brightness values are brighter. backlight_monotonic_abm Same as backlight_monotonic_basic, but with abm enabled. abm_enabled Sets abm to its four intensity levels, confirming that abm reduces the backlight, and the reduction is greater for higher abm level. abm_gradual Sets abm to off and then maximum intensity, confirming that brightness decreases continually over the first second and eventually reaches the target value. This test takes 30s to run. v2: make sure that dpms is cycled on the eDP display Signed-off-by: David Francis Reviewed-by: Leo Li --- tests/Makefile.sources | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/Makefile.sources') diff --git a/tests/Makefile.sources b/tests/Makefile.sources index eedde1e8..baac7ae0 100644 --- a/tests/Makefile.sources +++ b/tests/Makefile.sources @@ -25,6 +25,7 @@ AMDGPU_TESTS = \ amdgpu/amd_basic \ amdgpu/amd_cs_nop \ amdgpu/amd_prime \ + amdgpu/amd_abm \ $(NULL) TESTS_progs = \ -- cgit v1.2.3