From: "Laguna, Lukasz" <lukasz.laguna@intel.com>
To: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Subject: Re: [PATCH 3/3] drm/xe/vf: Fix guc_info debugfs for VFs
Date: Wed, 23 Apr 2025 12:37:20 +0200 [thread overview]
Message-ID: <0bbda486-8b53-47ac-96bf-e11648891e32@intel.com> (raw)
In-Reply-To: <20250408213146.793855-4-daniele.ceraolospurio@intel.com>
On 4/8/2025 23:31, Daniele Ceraolo Spurio wrote:
> The guc_info debugfs attempta to read a bunch of registers that the VFs
typo: attempta/attempt
> doesn't have access to, so fix it by skipping the reads.
>
> Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
> Cc: Lukasz Laguna <lukasz.laguna@intel.com>
Reviewed-by: Lukasz Laguna <lukasz.laguna@intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc.c | 44 +++++++++++++++++++------------------
> 1 file changed, 23 insertions(+), 21 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
> index 38866135c019..17932006619a 100644
> --- a/drivers/gpu/drm/xe/xe_guc.c
> +++ b/drivers/gpu/drm/xe/xe_guc.c
> @@ -1509,30 +1509,32 @@ void xe_guc_print_info(struct xe_guc *guc, struct drm_printer *p)
>
> xe_uc_fw_print(&guc->fw, p);
>
> - fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);
> - if (!fw_ref)
> - return;
> + if (!IS_SRIOV_VF(gt_to_xe(gt))) {
> + fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FW_GT);
> + if (!fw_ref)
> + return;
> +
> + status = xe_mmio_read32(>->mmio, GUC_STATUS);
> +
> + drm_printf(p, "\nGuC status 0x%08x:\n", status);
> + drm_printf(p, "\tBootrom status = 0x%x\n",
> + REG_FIELD_GET(GS_BOOTROM_MASK, status));
> + drm_printf(p, "\tuKernel status = 0x%x\n",
> + REG_FIELD_GET(GS_UKERNEL_MASK, status));
> + drm_printf(p, "\tMIA Core status = 0x%x\n",
> + REG_FIELD_GET(GS_MIA_MASK, status));
> + drm_printf(p, "\tLog level = %d\n",
> + xe_guc_log_get_level(&guc->log));
> +
> + drm_puts(p, "\nScratch registers:\n");
> + for (i = 0; i < SOFT_SCRATCH_COUNT; i++) {
> + drm_printf(p, "\t%2d: \t0x%x\n",
> + i, xe_mmio_read32(>->mmio, SOFT_SCRATCH(i)));
> + }
>
> - status = xe_mmio_read32(>->mmio, GUC_STATUS);
> -
> - drm_printf(p, "\nGuC status 0x%08x:\n", status);
> - drm_printf(p, "\tBootrom status = 0x%x\n",
> - REG_FIELD_GET(GS_BOOTROM_MASK, status));
> - drm_printf(p, "\tuKernel status = 0x%x\n",
> - REG_FIELD_GET(GS_UKERNEL_MASK, status));
> - drm_printf(p, "\tMIA Core status = 0x%x\n",
> - REG_FIELD_GET(GS_MIA_MASK, status));
> - drm_printf(p, "\tLog level = %d\n",
> - xe_guc_log_get_level(&guc->log));
> -
> - drm_puts(p, "\nScratch registers:\n");
> - for (i = 0; i < SOFT_SCRATCH_COUNT; i++) {
> - drm_printf(p, "\t%2d: \t0x%x\n",
> - i, xe_mmio_read32(>->mmio, SOFT_SCRATCH(i)));
> + xe_force_wake_put(gt_to_fw(gt), fw_ref);
> }
>
> - xe_force_wake_put(gt_to_fw(gt), fw_ref);
> -
> drm_puts(p, "\n");
> xe_guc_ct_print(&guc->ct, p, false);
>
next prev parent reply other threads:[~2025-04-23 10:37 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 21:31 [PATCH 0/3] Fixes for VF GuC version and guc_info debugfs Daniele Ceraolo Spurio
2025-04-08 21:31 ` [PATCH 1/3] drm/xe/vf: use uc_fw_version to store the negotiated GuC ABI Daniele Ceraolo Spurio
2025-05-08 20:58 ` Michal Wajdeczko
2025-04-08 21:31 ` [PATCH 2/3] drm/xe/vf: Store the GuC FW info in guc->fw Daniele Ceraolo Spurio
2025-05-08 21:26 ` Michal Wajdeczko
2025-05-20 22:39 ` Daniele Ceraolo Spurio
2025-04-08 21:31 ` [PATCH 3/3] drm/xe/vf: Fix guc_info debugfs for VFs Daniele Ceraolo Spurio
2025-04-23 10:37 ` Laguna, Lukasz [this message]
2025-04-23 17:40 ` Daniele Ceraolo Spurio
2025-04-08 23:33 ` ✓ CI.Patch_applied: success for Fixes for VF GuC version and guc_info debugfs Patchwork
2025-04-08 23:34 ` ✓ CI.checkpatch: " Patchwork
2025-04-08 23:35 ` ✓ CI.KUnit: " Patchwork
2025-04-08 23:51 ` ✓ CI.Build: " Patchwork
2025-04-08 23:53 ` ✓ CI.Hooks: " Patchwork
2025-04-08 23:55 ` ✓ CI.checksparse: " Patchwork
2025-04-09 0:34 ` ✓ Xe.CI.BAT: " Patchwork
2025-04-09 2:21 ` ✗ Xe.CI.Full: failure " 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=0bbda486-8b53-47ac-96bf-e11648891e32@intel.com \
--to=lukasz.laguna@intel.com \
--cc=daniele.ceraolospurio@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=michal.wajdeczko@intel.com \
/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