mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
drm/xe: Don't expose display modparam if no display support
With CONFIG_DRM_XE_DISPLAY=n the display support will be compiled out, so exposing probe_display modparam is pointless. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/20260216183240.1308-1-michal.wajdeczko@intel.com
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
#define XE_DEFAULT_GUC_LOG_LEVEL 1
|
||||
#endif
|
||||
|
||||
#define XE_DEFAULT_PROBE_DISPLAY true
|
||||
#define XE_DEFAULT_PROBE_DISPLAY IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
|
||||
#define XE_DEFAULT_VRAM_BAR_SIZE 0
|
||||
#define XE_DEFAULT_FORCE_PROBE CONFIG_DRM_XE_FORCE_PROBE
|
||||
#define XE_DEFAULT_MAX_VFS ~0
|
||||
|
||||
@@ -39,9 +39,11 @@ MODULE_PARM_DESC(svm_notifier_size, "Set the svm notifier size in MiB, must be p
|
||||
module_param_named_unsafe(force_execlist, xe_modparam.force_execlist, bool, 0444);
|
||||
MODULE_PARM_DESC(force_execlist, "Force Execlist submission");
|
||||
|
||||
#if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
|
||||
module_param_named(probe_display, xe_modparam.probe_display, bool, 0444);
|
||||
MODULE_PARM_DESC(probe_display, "Probe display HW, otherwise it's left untouched "
|
||||
"[default=" __stringify(XE_DEFAULT_PROBE_DISPLAY) "])");
|
||||
#endif
|
||||
|
||||
module_param_named(vram_bar_size, xe_modparam.force_vram_bar_size, int, 0600);
|
||||
MODULE_PARM_DESC(vram_bar_size, "Set the vram bar size in MiB (<0=disable-resize, 0=max-needed-size, >0=force-size "
|
||||
|
||||
Reference in New Issue
Block a user