diff options
author | Peter Antoine <peter.antoine@intel.com> | 2016-08-04 14:39:26 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-08-04 16:55:08 +0100 |
commit | cb5d6033a0fd5f45c6e32584ab2d8eed08e6386b (patch) | |
tree | 916335f505263719bafbea52de94ca3f7bf6d988 /lib/igt_sysfs.h | |
parent | 0dbff43cf683ccfb4603078c67273b10a6f16591 (diff) |
igt/gem_mocs_settings: adding RC6 tests
This change adds a RC6 test for the MOCS. The MOCS registers are loaded
and saved as part of the RC6 cycle but not all the registers are
saved/restored. This tests that those registers are correctly restored.
Signed-off-by: Peter Antoine <peter.antoine@intel.com>
Diffstat (limited to 'lib/igt_sysfs.h')
-rw-r--r-- | lib/igt_sysfs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_sysfs.h b/lib/igt_sysfs.h index 7114f2f3..48200661 100644 --- a/lib/igt_sysfs.h +++ b/lib/igt_sysfs.h @@ -37,6 +37,9 @@ int igt_sysfs_scanf(int dir, const char *attr, const char *fmt, ...) int igt_sysfs_printf(int dir, const char *attr, const char *fmt, ...) __attribute__((format(printf,3,4))); +uint32_t igt_sysfs_get_u32(int dir, const char *attr); +bool igt_sysfs_set_u32(int dir, const char *attr, uint32_t value); + bool igt_sysfs_get_boolean(int dir, const char *attr); bool igt_sysfs_set_boolean(int dir, const char *attr, bool value); |