From 4befb17e83ed8747049c91f5009e786bb858e446 Mon Sep 17 00:00:00 2001 From: Michal Wajdeczko Date: Wed, 24 Apr 2024 19:10:30 +0200 Subject: [PATCH] drm/xe/pf: Expose PF service details via debugfs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For debug purposes we might want to verify which registers values PF is sharing with VFs and to view which VF/PF ABI versions were negotiated by the VFs. Plug the 'print' functions already provided by the PF service code into our debugfs. Signed-off-by: Michal Wajdeczko Reviewed-by: Piotr Piórkowski Link: https://patchwork.freedesktop.org/patch/msgid/20240424171030.2177-1-michal.wajdeczko@intel.com --- drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c index ab1a26fce3aa7..5102035faa7e9 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_debugfs.c @@ -18,6 +18,7 @@ #include "xe_gt_sriov_pf_debugfs.h" #include "xe_gt_sriov_pf_helpers.h" #include "xe_gt_sriov_pf_policy.h" +#include "xe_gt_sriov_pf_service.h" #include "xe_pm.h" /* @@ -52,6 +53,8 @@ static unsigned int extract_vfid(struct dentry *d) * │   │   ├── ggtt_provisioned * │   │   ├── contexts_provisioned * │   │   ├── doorbells_provisioned + * │   │   ├── runtime_registers + * │   │   ├── negotiated_versions */ static const struct drm_info_list pf_info[] = { @@ -75,6 +78,16 @@ static const struct drm_info_list pf_info[] = { .show = xe_gt_debugfs_simple_show, .data = xe_gt_sriov_pf_config_print_dbs, }, + { + "runtime_registers", + .show = xe_gt_debugfs_simple_show, + .data = xe_gt_sriov_pf_service_print_runtime, + }, + { + "negotiated_versions", + .show = xe_gt_debugfs_simple_show, + .data = xe_gt_sriov_pf_service_print_version, + }, }; /*