summaryrefslogtreecommitdiff
path: root/tests/gem_sync.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-05-29 12:07:09 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-05-29 16:58:12 +0100
commit43f7a746ac092e41d4745ed190d4268ef1f82c55 (patch)
tree49c5eb7fd7ea5cf366064b168ef2811eadb0a7b4 /tests/gem_sync.c
parentf560ae5a464331f03f0a669ed46b8c9e56526187 (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