mirror of
https://github.com/torvalds/linux.git
synced 2024-12-04 10:01:41 +00:00
8ed9aaae39
In many validation situations when debugging GPU Hangs, it is useful to preserve the GT situation from the moment that the timeout occurred. This patch introduces a module parameter that could be used on situations like this. If xe.wedged module parameter is set to 2, Xe will be declared wedged on every single execution timeout (a.k.a. GPU hang) right after devcoredump snapshot capture and without attempting any kind of GT reset and blocking entirely any kind of execution. v2: Really block gt_reset from guc side. (Lucas) s/wedged/busted (Lucas) v3: - s/busted/wedged - Really use global_flags (Dafna) - More robust timeout handling when wedging it. v4: A really robust clean exit done by Matt Brost. No more kernel warns on unbind. v5: Simplify error message (Lucas) Cc: Matthew Brost <matthew.brost@intel.com> Cc: Dafna Hirschfeld <dhirschfeld@habana.ai> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Alan Previn <alan.previn.teres.alexis@intel.com> Cc: Himanshu Somaiya <himanshu.somaiya@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240423221817.1285081-3-rodrigo.vivi@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
31 lines
516 B
C
31 lines
516 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2023 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_MODULE_H_
|
|
#define _XE_MODULE_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
/* Module modprobe variables */
|
|
struct xe_modparam {
|
|
bool force_execlist;
|
|
bool enable_display;
|
|
u32 force_vram_bar_size;
|
|
int guc_log_level;
|
|
char *guc_firmware_path;
|
|
char *huc_firmware_path;
|
|
char *gsc_firmware_path;
|
|
char *force_probe;
|
|
#ifdef CONFIG_PCI_IOV
|
|
unsigned int max_vfs;
|
|
#endif
|
|
int wedged_mode;
|
|
};
|
|
|
|
extern struct xe_modparam xe_modparam;
|
|
|
|
#endif
|
|
|