From: Michal Wajdeczko <michal.wajdeczko@intel.com>
To: intel-xe@lists.freedesktop.org
Subject: [PATCH] drm/xe/pf: Expose PF service details via debugfs
Date: Wed, 24 Apr 2024 19:10:30 +0200 [thread overview]
Message-ID: <20240424171030.2177-1-michal.wajdeczko@intel.com> (raw)
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 <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 ab1a26fce3aa..5102035faa7e 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,
+ },
};
/*
--
2.43.0
next reply other threads:[~2024-04-24 17:10 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-24 17:10 Michal Wajdeczko [this message]
2024-04-24 17:54 ` ✓ CI.Patch_applied: success for drm/xe/pf: Expose PF service details via debugfs Patchwork
2024-04-24 17:55 ` ✓ CI.checkpatch: " Patchwork
2024-04-24 17:55 ` ✓ CI.KUnit: " Patchwork
2024-04-24 18:07 ` ✓ CI.Build: " Patchwork
2024-04-24 18:10 ` ✓ CI.Hooks: " Patchwork
2024-04-24 18:12 ` ✓ CI.checksparse: " Patchwork
2024-04-24 18:44 ` ✓ CI.BAT: " Patchwork
2024-04-24 19:02 ` [PATCH] " Piotr Piórkowski
2024-04-25 11:38 ` ✓ CI.FULL: success for " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240424171030.2177-1-michal.wajdeczko@intel.com \
--to=michal.wajdeczko@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).