]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Make xe_modparam.force_vram_bar_size signed
authorShuicheng Lin <shuicheng.lin@intel.com>
Mon, 2 Feb 2026 18:18:54 +0000 (18:18 +0000)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Feb 2026 19:00:09 +0000 (11:00 -0800)
commit25c9aa4dcb5ef2ad9f354d19f8f1eeb690d1c161
tree0a40147b7ee4025b29e4e72046531ba97db0ea54
parent0bcacf56dc0b265f9c47056c6a4f0c1394a8a3f0
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: 80742a1aa26e ("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>
drivers/gpu/drm/xe/xe_module.h