Skip to content

Commit 1badf48

Browse files
mattropelucasdemarchi
authored andcommitted
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 <[email protected]> Fixes: 6b8ef44 ("drm/xe: Introduce the wedged_mode debugfs") Signed-off-by: Matt Roper <[email protected]> Reviewed-by: Gustavo Sousa <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 93d9381) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 3fd76be commit 1badf48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void xe_debugfs_register(struct xe_device *xe)
187187
debugfs_create_file("forcewake_all", 0400, root, xe,
188188
&forcewake_all_fops);
189189

190-
debugfs_create_file("wedged_mode", 0400, root, xe,
190+
debugfs_create_file("wedged_mode", 0600, root, xe,
191191
&wedged_mode_fops);
192192

193193
for (mem_type = XE_PL_VRAM0; mem_type <= XE_PL_VRAM1; ++mem_type) {

0 commit comments

Comments
 (0)