drm/xe/pf: Expose SR-IOV VFs configuration over debugfs
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 23 Apr 2024 13:12:42 +0000 (15:12 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 24 Apr 2024 13:18:38 +0000 (15:18 +0200)
commite42a51fb9c0f386d3ebb115d081896d41eb844af
tree8d18f6bd77f68aa1d8423296da4706a9f3b557e4
parent11294bf38fa2f71619ebb5c7baa3bbe380cbcf0c
drm/xe/pf: Expose SR-IOV VFs configuration over debugfs

We already have functions to configure VF resources and to print
actual provisioning details. Expose this functionality in debugfs
to allow experiment with different settings or inspect details in
case of unexpected issues with the provisioning.

As debugfs attributes are per-VF, we use parent d_inode->i_private
to store VFID, similarly how we did for per-GT attributes.

Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240423131244.2045-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_gt_debugfs.c
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.h [new file with mode: 0644]