mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-03-03 18:28:01 +01:00
vram_bar_size is registered as an int module parameter and is documented
to accept negative values to disable BAR resizing.
Store it as an int in xe_modparam as well, so negative values work as
intended and the module_param type matches.
Fixes: 80742a1aa2 ("drm/xe: Allow to drop vram resizing")
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Link: https://patch.msgid.link/20260202181853.1095736-2-shuicheng.lin@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
(cherry picked from commit 25c9aa4dcb5ef2ad9f354d19f8f1eeb690d1c161)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
32 lines
548 B
C
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;
|
|
int 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
|
|
|