Files
linux/drivers/gpu/drm/xe/xe_module.h
Lukasz Laguna 17d3c3365b drm/xe: Validate wedged_mode parameter and define enum for modes
Check correctness of the wedged_mode parameter input to ensure only
supported values are accepted. Additionally, replace magic numbers with
a clearly defined enum.

Signed-off-by: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patch.msgid.link/20260107174741.29163-2-lukasz.laguna@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2026-01-08 16:07:07 -05:00

32 lines
548 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 probe_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
unsigned int wedged_mode;
u32 svm_notifier_size;
};
extern struct xe_modparam xe_modparam;
#endif