diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-29 12:07:09 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2018-05-29 16:58:12 +0100 |
commit | 43f7a746ac092e41d4745ed190d4268ef1f82c55 (patch) | |
tree | 49c5eb7fd7ea5cf366064b168ef2811eadb0a7b4 /tests/gem_sync.c | |
parent | f560ae5a464331f03f0a669ed46b8c9e56526187 (diff) |
igt/gem_ctx_isolation: Test INSTPM back to gen6
Lionel pointed out that INSTPM was context saved, at least from gen6,
not from gen9. The only caveat is that INSTPM is a masked register (the
upper 16bits are a write-enable mask, the lower 16bits the value to
change) and also contains a read-only counter bit (which counts flushes,
and so flip flops between batches). Being a non-privileged register that
userspace wants to manipulate, it is writable and readable from a
userspace batch, so we can test whether or not a write from one context
is visible from a second.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Diffstat (limited to 'tests/gem_sync.c')
0 files changed, 0 insertions, 0 deletions