[igt-dev] [RFC i-g-t 00/11] Introduce PXP Test
Alan Previn
alan.previn.teres.alexis at intel.com
Tue Mar 2 22:53:23 UTC 2021
This series adds i915_pxp tests for the new PXP subsystem currently
being reviewed at https://patchwork.freedesktop.org/series/86798/ .
This series currently includes 3 groups of tests addressing the
features and restrictions described in Daniele's series above:
1. test i915 interfaces for allocation of protected bo's
and contexts and enforcement of UAPI rule disallowing the
modification of parameters after it's been created.
2. verify PXP subsystem protected sessions generate encrypted
content on protected output buffers and decrypt protected
inputs buffers.
3. verify i915 PXP auto-teardown succeeds on suspend-resume
cycles and gem-exec of stale protected assets fail.
This is still in RFC because the following tests are to be added:
- verify teardown invalidates contexts via DRM_IOCTL_I915_GET_RESET_STAT.
- test display plane decryption of protected buffers.
- verify display plane blackout on stale buffers (post teardown).
Alan Previn (11):
Sync i915_drm.h UAPI for PXP
Add basic PXP testing of buffer and context alloc
Add PXP attributes into lib batchbuffer and buffer structs
Perform a regular 3d copy as a control checkpoint
Add MI_SET_APPID instruction definition
Enable protected session and protected buffers in rendercopy
Add subtest to copy raw source to protected dest
Add test where both src and dest are protected
Add test to verify session key renewed after suspend-resume cycle
Verify gem_execbuf fails with stale PXP context after teardown
Verify gem_execbuf fails with stale PXP buffer after teardown
include/drm-uapi/i915_drm.h | 94 +++-
lib/intel_batchbuffer.c | 12 +
lib/intel_batchbuffer.h | 9 +
lib/intel_bufops.h | 3 +
lib/intel_reg.h | 9 +
lib/rendercopy_gen9.c | 123 ++++-
tests/Makefile.sources | 3 +
tests/i915/i915_pxp.c | 991 ++++++++++++++++++++++++++++++++++++
tests/meson.build | 1 +
9 files changed, 1237 insertions(+), 8 deletions(-)
create mode 100644 tests/i915/i915_pxp.c
--
2.25.1
More information about the igt-dev
mailing list