]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/pxp: do not queue unneeded terminations from debugfs
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 16 Apr 2025 20:16:22 +0000 (13:16 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Thu, 17 Apr 2025 17:10:04 +0000 (10:10 -0700)
commitba1f62a0cac84757ca35f4217e3cd3a2654233ae
treeaeea5530debdb43882e2885c11aeeba91447effb
parentd755887f8e5a2a18e15e6632a5193e5feea18499
drm/xe/pxp: do not queue unneeded terminations from debugfs

The PXP terminate debugfs currently unconditionally simulates a
termination, no matter what the HW status is. This is unneeded if PXP is
not in use and can cause errors if the HW init hasn't completed yet.
To solve these issues, we can simply limit the terminations to the cases
where PXP is fully initialized and in use.

v2: s/pxp_status/ready/ to avoid confusion with pxp->status (John)

Fixes: 385a8015b214 ("drm/xe/pxp: Add PXP debugfs support")
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4749
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://lore.kernel.org/r/20250416201622.1295369-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_pxp_debugfs.c