]> www.infradead.org Git - users/hch/misc.git/commit
drm/xe/xe_gt_debugfs: Add synchronous gt reset debugfs
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Wed, 5 Jun 2024 15:08:28 +0000 (08:08 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 6 Jun 2024 17:31:33 +0000 (13:31 -0400)
commit9ab4a7e181823793cdd8ba7c7aceebaf52e3824e
treeff213880dec99d642237134762a6ee0819e7e40c
parent5d30de4311d2d4165e78dc021c5cacb7496b3491
drm/xe/xe_gt_debugfs: Add synchronous gt reset debugfs

We currently have debugfs support that allows the userspace to initiate
an asynchronous gt reset on command.  However, userspace may also wish
to wait for the completion of the gt reset before performing any
additional work.  To that end, add a version of the force_reset gt
debugfs function that operates synchronously.

Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1068
Suggested-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
CC: John Harrison <john.c.harrison@intel.com>
CC: Stuart Summers <stuart.summers@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240605150828.2736396-1-jonathan.cavitt@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_gt_debugfs.c