]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Make wedged_mode debugfs writable
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 2 Oct 2024 23:06:21 +0000 (16:06 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 8 Oct 2024 23:06:24 +0000 (18:06 -0500)
commit1badf482816417dca71f8120b4c540cdc82aa03c
tree79e712c4848de29d50495ca6eb22af45e709756a
parent3fd76be868ae5c7e9f905f3bcc2ce0e3d8f5aa08
drm/xe: Make wedged_mode debugfs writable

The intent of this debugfs entry is to allow modification of wedging
behavior, either from IGT tests or during manual debug; it should be
marked as writable to properly reflect this.  In practice this hasn't
caused a problem because we always access wedged_mode as root, which
ignores file permissions, but it's still misleading to have the entry
incorrectly marked as RO.

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Fixes: 6b8ef44cc0a9 ("drm/xe: Introduce the wedged_mode debugfs")
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241002230620.1249258-2-matthew.d.roper@intel.com
(cherry picked from commit 93d93813422758f6c99289de446b19184019ef5a)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_debugfs.c