tests: rc6 residency test

This is meant to test the sysfs entry for showing rc6 residency in
milliseconds. Remember, sysfs is a permanent interface.

v2: use new get_card interface to try "all" devices
check rc6p and rc6pp in addition to rc6

v3: rename rc6_residency.c to sysfs_rc6_residency.c
print better error messages
skip test if rc6 isn't enabled

v4: update to new sysfs names

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
This commit is contained in:
Ben Widawsky
2012-03-24 19:04:10 -07:00
parent 2585bea428
commit f841f4028c
3 changed files with 109 additions and 0 deletions
+1
View File
@@ -57,6 +57,7 @@ TESTS_progs = \
drm_vma_limiter_cpu \
drm_vma_limiter_gtt \
drm_vma_limiter_cached \
sysfs_rc6_residency \
$(NULL)
# IMPORTANT: The ZZ_ tests need to be run last!