drm/xe: Add max_vfs module parameter
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 4 Apr 2024 15:44:29 +0000 (17:44 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 10 Apr 2024 09:26:17 +0000 (11:26 +0200)
commite806fac0bd35512ac4590d89dabe0eb15a1721c4
tree918aa62eae22e8d99fb10fc14eec3be2fa856c86
parenta918e771e6fbe1fa68932af5b0cdf473e23090cc
drm/xe: Add max_vfs module parameter

We want to have an option to limit the number of the VFs that the
PF driver will be able to manage.  With this limit set to zero we
will also have a way to completely disable the PF functionality.

Since we currently don't support SR-IOV on any platform, we start
with this limit set to zero by default.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240404154431.583-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_module.c
drivers/gpu/drm/xe/xe_module.h