diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-07-10 01:45:04 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-07-10 12:20:38 +0300 |
commit | ed2690a9ca896882a124ee0bd4eaff9678ed1162 (patch) | |
tree | 3386064df30f367949251d2c70646f6a6f5e2a5b /drivers/ata | |
parent | e43ff99c8deda85234e6233e0f4af6cb09566a37 (diff) | |
download | linux-ed2690a9ca896882a124ee0bd4eaff9678ed1162.tar.xz |
drm/i915/selftest: Check that GPR are restored across noa_wait
Perf implements a GPU delay (noa_wait) by looping until the CS timestamp
has passed a certain point. This use MI_MATH and the general purpose
registers of the user's context, and since it is clobbering the user
state it must carefully save and restore the user's data around the
noa_wait. We can verify this by loading some values in the GPR that we
know will be clobbered by the noa_wait, and then inspecting the GPR after
the noa_wait completes and confirming that they have been restored.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200709224504.11345-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions