]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/pf: Prepare sysfs for SR-IOV admin attributes
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 30 Oct 2025 22:23:32 +0000 (23:23 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 31 Oct 2025 19:01:30 +0000 (20:01 +0100)
commit5c170a4d9c530e872f2f788d95258fbaa39b4415
tree1067714b52bf0debf19760f8e259d5698b27015a
parent0dd656d06f50ae4cedf160634cf13fd9e0944cf7
drm/xe/pf: Prepare sysfs for SR-IOV admin attributes

We already have some SR-IOV specific knobs exposed as debugfs
files to allow low level tuning of the SR-IOV configurations,
but those files are mainly for the use by the developers and
debugfs might not be available on the production builds.

Start building dedicated sysfs sub-tree under xe device, where
in upcoming patches we will add selected attributes that will
help provision and manage PF and all VFs:

  /sys/bus/pci/drivers/xe/BDF/
  ├── sriov_admin/
      ├── pf/
      ├── vf1/
      ├── vf2/
      :
      └── vfN/

Add all required data types and helper macros that will be used
by upcoming patches to define actual attributes.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patch.msgid.link/20251030222348.186658-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_sriov_pf.c
drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sriov_pf_sysfs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_sriov_pf_types.h