Skip to content

Commit

Permalink
drm/xe/pf: Expose PF monitor details via debugfs
Browse files Browse the repository at this point in the history
For debug purposes we might want to view statistics maintained by
the PF driver about VFs activity.

Reviewed-by: Piotr Piórkowski <[email protected]>
Signed-off-by: Michal Wajdeczko <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
mwajdecz committed May 16, 2024
1 parent 335d62a commit 1c99d3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "xe_gt_sriov_pf_control.h"
#include "xe_gt_sriov_pf_debugfs.h"
#include "xe_gt_sriov_pf_helpers.h"
#include "xe_gt_sriov_pf_monitor.h"
#include "xe_gt_sriov_pf_policy.h"
#include "xe_gt_sriov_pf_service.h"
#include "xe_pm.h"
Expand Down Expand Up @@ -55,6 +56,7 @@ static unsigned int extract_vfid(struct dentry *d)
* │   │   ├── doorbells_provisioned
* │   │   ├── runtime_registers
* │   │   ├── negotiated_versions
* │   │   ├── adverse_events
*/

static const struct drm_info_list pf_info[] = {
Expand Down Expand Up @@ -88,6 +90,11 @@ static const struct drm_info_list pf_info[] = {
.show = xe_gt_debugfs_simple_show,
.data = xe_gt_sriov_pf_service_print_version,
},
{
"adverse_events",
.show = xe_gt_debugfs_simple_show,
.data = xe_gt_sriov_pf_monitor_print_events,
},
};

/*
Expand Down

0 comments on commit 1c99d3d

Please sign in to comment.