[PATCH 0/3] Add proper detection of the SR-IOV PF mode

Michal Wajdeczko michal.wajdeczko at intel.com
Thu Apr 4 15:44:28 UTC 2024


SR-IOV PF mode detection is based on PCI capability as reported by
the PCI dev_is_pf() function and additionally on 'max_vfs' module
parameter which could be also used to disable PF capability even
if SR-IOV PF capability is reported by the hardware.

Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>

Michal Wajdeczko (3):
  drm/xe: Add max_vfs module parameter
  drm/xe: Add proper detection of the SR-IOV PF mode
  drm/xe: Add SR-IOV info attribute to debugfs

 drivers/gpu/drm/xe/Makefile          |  3 +-
 drivers/gpu/drm/xe/xe_debugfs.c      | 11 ++++
 drivers/gpu/drm/xe/xe_device_types.h |  4 ++
 drivers/gpu/drm/xe/xe_module.c       |  7 +++
 drivers/gpu/drm/xe/xe_module.h       |  3 +
 drivers/gpu/drm/xe/xe_sriov.c        | 17 ++++++
 drivers/gpu/drm/xe/xe_sriov.h        |  3 +
 drivers/gpu/drm/xe/xe_sriov_pf.c     | 89 ++++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_sriov_pf.h     | 24 ++++++++
 drivers/gpu/drm/xe/xe_sriov_types.h  | 15 +++++
 10 files changed, 175 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/xe/xe_sriov_pf.c
 create mode 100644 drivers/gpu/drm/xe/xe_sriov_pf.h

-- 
2.43.0



More information about the Intel-xe mailing list