Skip to content

Commit df9bdd4

Browse files
mwajdeczrodrigovivi
authored andcommitted
drm/xe/pf: Enable SR-IOV PF mode by default
We already claim official support for SR-IOV PF/VF modes on PTL and BMG platforms, but by default we start the Xe driver on those platforms in non-virtualized mode (native) since we still have max_vfs modparam set to disable creation of the VFs. It's time to let the Xe driver support SR-IOV PF mode by default. We were already testing this on our CI, which was relying on the patch that was enabling it for CONFIG_DRM_XE_DEBUG used by our CI. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Thomas Hellstrom <thomas.hellstrom@linux.intel.com> Cc: Lucas De Marchi <lucas.demarchi@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250722182618.30811-3-michal.wajdeczko@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> (cherry picked from commit a2b461b) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent 6531a2c commit df9bdd4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/gpu/drm/xe/xe_module.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,18 @@
2727
#define DEFAULT_PROBE_DISPLAY true
2828
#define DEFAULT_VRAM_BAR_SIZE 0
2929
#define DEFAULT_FORCE_PROBE CONFIG_DRM_XE_FORCE_PROBE
30+
#define DEFAULT_MAX_VFS ~0
31+
#define DEFAULT_MAX_VFS_STR "unlimited"
3032
#define DEFAULT_WEDGED_MODE 1
3133
#define DEFAULT_SVM_NOTIFIER_SIZE 512
3234

3335
struct xe_modparam xe_modparam = {
3436
.probe_display = DEFAULT_PROBE_DISPLAY,
3537
.guc_log_level = DEFAULT_GUC_LOG_LEVEL,
3638
.force_probe = DEFAULT_FORCE_PROBE,
39+
#ifdef CONFIG_PCI_IOV
40+
.max_vfs = DEFAULT_MAX_VFS,
41+
#endif
3742
.wedged_mode = DEFAULT_WEDGED_MODE,
3843
.svm_notifier_size = DEFAULT_SVM_NOTIFIER_SIZE,
3944
/* the rest are 0 by default */
@@ -79,7 +84,8 @@ MODULE_PARM_DESC(force_probe,
7984
module_param_named(max_vfs, xe_modparam.max_vfs, uint, 0400);
8085
MODULE_PARM_DESC(max_vfs,
8186
"Limit number of Virtual Functions (VFs) that could be managed. "
82-
"(0 = no VFs [default]; N = allow up to N VFs)");
87+
"(0=no VFs; N=allow up to N VFs "
88+
"[default=" DEFAULT_MAX_VFS_STR "])");
8389
#endif
8490

8591
module_param_named_unsafe(wedged_mode, xe_modparam.wedged_mode, int, 0600);

0 commit comments

Comments
 (0)