From: bnilawar <badal.nilawar@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: anshuman.gupta@intel.com, john.c.harrison@intel.com
Subject: [[CI] 12/12] [For CI] Debug prints/logs to debug G2H timeout issue
Date: Fri, 20 Sep 2024 19:36:46 +0530 [thread overview]
Message-ID: <20240920140646.618008-13-badal.nilawar@intel.com> (raw)
In-Reply-To: <20240920140646.618008-1-badal.nilawar@intel.com>
Debug print and GuC log in dmesg to debug possible G2H irq delay / miss
Signed-off-by: Badal Nilawar <badal.nilawar@intel.com>
---
drivers/gpu/drm/xe/xe_guc.c | 4 +++-
drivers/gpu/drm/xe/xe_guc_ct.c | 2 ++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c
index 41ff4fe65f8b..00c0550fb80f 100644
--- a/drivers/gpu/drm/xe/xe_guc.c
+++ b/drivers/gpu/drm/xe/xe_guc.c
@@ -1094,8 +1094,10 @@ int xe_guc_self_cfg64(struct xe_guc *guc, u16 key, u64 val)
void xe_guc_irq_handler(struct xe_guc *guc, const u16 iir)
{
- if (iir & GUC_INTR_GUC2HOST)
+ if (iir & GUC_INTR_GUC2HOST) {
+ xe_gt_dbg(guc_to_gt(guc), "G2H IRQ GT[%d]\n", guc_to_gt(guc)->info.id);
xe_guc_ct_irq_handler(&guc->ct);
+ }
}
void xe_guc_sanitize(struct xe_guc *guc)
diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
index 5546d4f87ebb..8f2d046bf1b5 100644
--- a/drivers/gpu/drm/xe/xe_guc_ct.c
+++ b/drivers/gpu/drm/xe/xe_guc_ct.c
@@ -1026,6 +1026,7 @@ static int guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len,
xe_gt_err(gt, "Timed out wait for G2H, fence %u, action %04x",
g2h_fence.seqno, action[0]);
xa_erase_irq(&ct->fence_lookup, g2h_fence.seqno);
+ xe_guc_log_print_dmesg(&ct_to_guc(ct)->log);
return -ETIME;
}
@@ -1141,6 +1142,7 @@ static int parse_g2h_response(struct xe_guc_ct *ct, u32 *msg, u32 len)
xe_gt_warn(gt, "G2H fence (%u) not found!\n", fence);
CT_DEAD(ct, NULL, PARSE_G2H_UNKNOWN);
g2h_release_space(ct, GUC_CTB_HXG_MSG_MAX_LEN);
+ xe_guc_log_print_dmesg(&ct_to_guc(ct)->log);
return -EPROTO;
}
--
2.34.1
next prev parent reply other threads:[~2024-09-20 13:48 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-20 14:06 [[CI] 00/12] Debug g2h timeout issue bnilawar
2024-09-20 14:06 ` [[CI] 01/12] drm/xe/guc: Remove spurious line feed in debug print bnilawar
2024-09-20 14:06 ` [[CI] 02/12] drm/xe/devcoredump: Use drm_puts and already cached local variables bnilawar
2024-09-20 14:06 ` [[CI] 03/12] drm/xe/devcoredump: Improve section headings and add tile info bnilawar
2024-09-20 14:06 ` [[CI] 04/12] drm/xe/devcoredump: Add ASCII85 dump helper function bnilawar
2024-09-20 14:06 ` [[CI] 05/12] drm/xe/guc: Copy GuC log prior to dumping bnilawar
2024-09-20 14:06 ` [[CI] 06/12] drm/xe/guc: Use a two stage dump for GuC logs and add more info bnilawar
2024-09-20 14:06 ` [[CI] 07/12] drm/print: Introduce drm_line_printer bnilawar
2024-09-20 14:06 ` [[CI] 08/12] drm/xe/guc: Dead CT helper bnilawar
2024-09-20 14:06 ` [[CI] 09/12] drm/xe/guc: Dump entire CTB on errors bnilawar
2024-09-20 14:06 ` [[CI] 10/12] drm/xe/guc: Add GuC log to devcoredump captures bnilawar
2024-09-20 14:06 ` [[CI] 11/12] drm/xe/guc: Add a helper function for dumping GuC log to dmesg bnilawar
2024-09-20 14:06 ` bnilawar [this message]
2024-09-20 14:43 ` ✓ CI.Patch_applied: success for 10/12] drm/xe/guc: Add GuC log to devcoredump captures Patchwork
2024-09-20 14:43 ` ✓ CI.checkpatch: " Patchwork
2024-09-20 14:44 ` ✓ CI.KUnit: " Patchwork
2024-09-20 14:56 ` ✓ CI.Build: " Patchwork
2024-09-20 14:58 ` ✓ CI.Hooks: " Patchwork
2024-09-20 15:00 ` ✓ CI.checksparse: " Patchwork
2024-09-20 15:18 ` ✓ CI.BAT: " Patchwork
2024-09-20 20:37 ` ✗ CI.FULL: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-09-20 14:29 [CI 00/12] Debug g2h timeout issue Badal Nilawar
2024-09-20 14:29 ` [CI 12/12] [For CI] Debug prints/logs to debug G2H " Badal Nilawar
2024-09-23 17:09 ` John Harrison
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=20240920140646.618008-13-badal.nilawar@intel.com \
--to=badal.nilawar@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=john.c.harrison@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