diff options
author | Michał Winiarski <michal.winiarski@intel.com> | 2015-07-16 13:19:09 +0200 |
---|---|---|
committer | Damien Lespiau <damien.lespiau@intel.com> | 2015-07-16 13:06:13 +0100 |
commit | fdefdd48f61b39d2af825ccdba11fafcaf58031a (patch) | |
tree | 25d6da1005cfd15eadcfb2e81605c30a6efae279 /lib/igt_stats.h | |
parent | 32c898849bd4f087e5b816b6e9e842edd5ce81d6 (diff) |
tests/gem_reg_read: Extend and check for valid 36b counter
When reading the timestamp register with single 64b read, we are observing
invalid values on x86_64:
[f = valid counter value | X = garbage]
i386: 0x0000000fffffffff
x86_64: 0xffffffffXXXXXXXX
Test checks if the counter is moving and increasing.
Add a check to see if we can use (reg | 1) flag to get a proper 36b timestamp,
shifting the value on x86_64 if we can't.
v2: More iterations of monotonic test, comments, minor fixups (Chris)
v3: Skip tests if reg_read is not supported
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/igt_stats.h')
0 files changed, 0 insertions, 0 deletions