drm/xe/pxp: Add PXP debugfs support
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 29 Jan 2025 17:41:36 +0000 (09:41 -0800)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Mon, 3 Feb 2025 19:51:28 +0000 (11:51 -0800)
commit385a8015b21469f249cdf30453f2c93d32405aa9
tree5580df5679f823f32f96d98f45d7a9e2cf8c9381
parent51462211f4a920687ae51823f6a8b0f499546bcc
drm/xe/pxp: Add PXP debugfs support

This patch introduces 2 PXP debugfs entries:

- info: prints the current PXP status and key instance
- terminate: simulate a termination interrupt

The first one is useful for debug, while the second one can be used for
testing the termination flow.

v2: move the info prints inside the lock (John)

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250129174140.948829-13-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_debugfs.c
drivers/gpu/drm/xe/xe_pxp_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_pxp_debugfs.h [new file with mode: 0644]