Michał Winiarski fdefdd48f6 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>
2015-07-16 13:06:13 +01:00
..
2015-07-14 15:20:57 -03:00
2014-12-10 17:11:35 +00:00
2014-12-10 17:11:35 +00:00
2012-04-10 16:23:18 +02:00
2014-05-14 00:36:04 +02:00
2015-02-13 09:35:36 +01:00
2014-12-04 10:17:24 +08:00
2014-05-14 00:36:04 +02:00
2015-05-20 14:57:16 +01:00
2014-12-04 16:07:55 +00:00
2014-05-14 00:36:04 +02:00
2014-05-14 00:36:04 +02:00
2015-03-12 14:15:26 +00:00
2015-07-14 15:20:57 -03:00
2014-12-04 16:07:55 +00:00
2015-07-02 11:54:17 +01:00
2015-07-14 15:20:57 -03:00
2015-07-14 12:52:09 -03:00
2015-03-23 12:50:48 -07:00
2012-01-15 16:05:43 +01:00