]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Allow to trigger GT resets using debugfs writes
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 19 May 2025 20:09:14 +0000 (22:09 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 28 May 2025 18:13:18 +0000 (20:13 +0200)
commit2cb38bb0add9b81f89ccdb2db88af89e99925880
tree0c39dc6acd7a4429b8abd23b54fda20df767e508
parent22eba3be8e1dc27de4aec3374bc9018dc8713670
drm/xe: Allow to trigger GT resets using debugfs writes

Today we allow to trigger GT resest by reading dedicated debugfs
files "force_reset" and "force_reset_sync" that we are exposing
using drm_info_list[] and drm_debugfs_create_files().

To avoid triggering potentially disruptive actions during otherwise
"safe" read operations, expose those two attributes using debugfs
function where we can specify file permissions and provide custom
"write" handler to trigger the GT resets also from there.

This step would allow us to drop triggering GT resets during read
operations, which we leave just to give users more time to switch.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://lore.kernel.org/r/20250519200914.216-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_debugfs.c