]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Allow to drop vram resizing
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 9 Apr 2025 14:09:56 +0000 (07:09 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 10 Apr 2025 22:50:01 +0000 (15:50 -0700)
commit80742a1aa26ea31a5c48da6f4da1d2e6ce6a2ab2
treeed7391bba2c599ec5fa9d880a956332ace0de4d4
parent725648bcf28feddb2c25d752d11b5f5070b0a963
drm/xe: Allow to drop vram resizing

The default behavior if the LMEMBAR doesn't match the maximum possible
size is to try to resize it. However the user might want to keep, even
for testing the behavior with small BAR, whatever size was set via
sysfs. Change the module parameter to int and check for negative value.

Cc: Michał Winiarski <michal.winiarski@intel.com>
Reviewed-by: Michał Winiarski <michal.winiarski@intel.com>
Link: https://lore.kernel.org/r/20250409-bar-resize-param-v1-1-75bf4df38aa0@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_module.c
drivers/gpu/drm/xe/xe_vram.c