aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2022-09-13 17:21:51 +0200
committerAndi Shyti <[email protected]>2022-09-14 13:21:46 +0200
commit42b2bdc8c478a705a9642c85d8b3802f5516447d (patch)
tree49f21cf3837dd358c877e3f6c7fd8899d03e5607 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent25e4b26672a0908078e10733eb20efa20800e534 (diff)
drm/i915/selftest: Clear the output buffers before GPU writes
When testing whether we can get the GPU to leak information about non-privileged state, we first need to ensure that the output buffer is set to a known value as the HW may opt to skip the write into memory for a non-privileged read of a sensitive register. We chose POISON_INUSE (0x5a) so that is both non-zero and distinct from the poison values used during the test. v2: Use i915_gem_object_pin_map_unlocked Reported-by: CQ Tang <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Cc: CQ Tang <[email protected]> cc: Joonas Lahtinen <[email protected]> Signed-off-by: Ramalingam C <[email protected]> Reviewed-by: Thomas Hellstrom <[email protected]> Signed-off-by: Karolina Drobnik <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/5cebab02d182c171cf40cb5b73d6c3eeb7619360.1663081418.git.karolina.drobnik@intel.com
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions