Skip to content

Commit 1acec6e

Browse files
ShuichengLinrodrigovivi
authored andcommitted
drm/xe: Make xe_modparam.force_vram_bar_size signed
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: 80742a1 ("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 25c9aa4) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 5e905ec commit 1acec6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
struct xe_modparam {
1313
bool force_execlist;
1414
bool probe_display;
15-
u32 force_vram_bar_size;
15+
int force_vram_bar_size;
1616
int guc_log_level;
1717
char *guc_firmware_path;
1818
char *huc_firmware_path;

0 commit comments

Comments
 (0)