|
27 | 27 | #define DEFAULT_PROBE_DISPLAY true |
28 | 28 | #define DEFAULT_VRAM_BAR_SIZE 0 |
29 | 29 | #define DEFAULT_FORCE_PROBE CONFIG_DRM_XE_FORCE_PROBE |
| 30 | +#define DEFAULT_MAX_VFS ~0 |
| 31 | +#define DEFAULT_MAX_VFS_STR "unlimited" |
30 | 32 | #define DEFAULT_WEDGED_MODE 1 |
31 | 33 | #define DEFAULT_SVM_NOTIFIER_SIZE 512 |
32 | 34 |
|
33 | 35 | struct xe_modparam xe_modparam = { |
34 | 36 | .probe_display = DEFAULT_PROBE_DISPLAY, |
35 | 37 | .guc_log_level = DEFAULT_GUC_LOG_LEVEL, |
36 | 38 | .force_probe = DEFAULT_FORCE_PROBE, |
| 39 | +#ifdef CONFIG_PCI_IOV |
| 40 | + .max_vfs = DEFAULT_MAX_VFS, |
| 41 | +#endif |
37 | 42 | .wedged_mode = DEFAULT_WEDGED_MODE, |
38 | 43 | .svm_notifier_size = DEFAULT_SVM_NOTIFIER_SIZE, |
39 | 44 | /* the rest are 0 by default */ |
@@ -79,7 +84,8 @@ MODULE_PARM_DESC(force_probe, |
79 | 84 | module_param_named(max_vfs, xe_modparam.max_vfs, uint, 0400); |
80 | 85 | MODULE_PARM_DESC(max_vfs, |
81 | 86 | "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 "])"); |
83 | 89 | #endif |
84 | 90 |
|
85 | 91 | module_param_named_unsafe(wedged_mode, xe_modparam.wedged_mode, int, 0600); |
|
0 commit comments