From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Matthew Brost <matthew.brost@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe: Increase log level for unhandled page faults
Date: Thu, 18 Dec 2025 17:48:46 -0500 [thread overview]
Message-ID: <aUSEzt21yLZnyots@intel.com> (raw)
In-Reply-To: <20251218223745.4045207-1-matthew.brost@intel.com>
On Thu, Dec 18, 2025 at 02:37:45PM -0800, Matthew Brost wrote:
> Set the kernel log level for unhandled page faults to match the log
> level (info) for engine resets. Currently, dmesg output can be confusing
> because it shows an engine reset without indicating the page fault that
> caused it. Without this change, the GuC log must be examined to
> determine the source of the engine reset.
>
> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> drivers/gpu/drm/xe/xe_guc_submit.c | 12 +++++-----
> drivers/gpu/drm/xe/xe_pagefault.c | 36 +++++++++++++++---------------
> 2 files changed, 24 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
> index 43fd2069f9b2..259c4e1dcae7 100644
> --- a/drivers/gpu/drm/xe/xe_guc_submit.c
> +++ b/drivers/gpu/drm/xe/xe_guc_submit.c
> @@ -3159,13 +3159,13 @@ int xe_guc_exec_queue_memory_cat_error_handler(struct xe_guc *guc, u32 *msg,
> * See bspec 54047 and 72187 for details.
> */
> if (type != XE_GUC_CAT_ERR_TYPE_INVALID)
> - xe_gt_dbg(gt,
> - "Engine memory CAT error [%u]: class=%s, logical_mask: 0x%x, guc_id=%d",
> - type, xe_hw_engine_class_to_str(q->class), q->logical_mask, guc_id);
> + xe_gt_info(gt,
> + "Engine memory CAT error [%u]: class=%s, logical_mask: 0x%x, guc_id=%d",
> + type, xe_hw_engine_class_to_str(q->class), q->logical_mask, guc_id);
> else
> - xe_gt_dbg(gt,
> - "Engine memory CAT error: class=%s, logical_mask: 0x%x, guc_id=%d",
> - xe_hw_engine_class_to_str(q->class), q->logical_mask, guc_id);
> + xe_gt_info(gt,
> + "Engine memory CAT error: class=%s, logical_mask: 0x%x, guc_id=%d",
> + xe_hw_engine_class_to_str(q->class), q->logical_mask, guc_id);
>
> trace_xe_exec_queue_memory_cat_error(q);
>
> diff --git a/drivers/gpu/drm/xe/xe_pagefault.c b/drivers/gpu/drm/xe/xe_pagefault.c
> index afb06598b6e1..6bee53d6ffc3 100644
> --- a/drivers/gpu/drm/xe/xe_pagefault.c
> +++ b/drivers/gpu/drm/xe/xe_pagefault.c
> @@ -223,22 +223,22 @@ static bool xe_pagefault_queue_pop(struct xe_pagefault_queue *pf_queue,
>
> static void xe_pagefault_print(struct xe_pagefault *pf)
> {
> - xe_gt_dbg(pf->gt, "\n\tASID: %d\n"
> - "\tFaulted Address: 0x%08x%08x\n"
> - "\tFaultType: %d\n"
> - "\tAccessType: %d\n"
> - "\tFaultLevel: %d\n"
> - "\tEngineClass: %d %s\n"
> - "\tEngineInstance: %d\n",
> - pf->consumer.asid,
> - upper_32_bits(pf->consumer.page_addr),
> - lower_32_bits(pf->consumer.page_addr),
> - pf->consumer.fault_type,
> - pf->consumer.access_type,
> - pf->consumer.fault_level,
> - pf->consumer.engine_class,
> - xe_hw_engine_class_to_str(pf->consumer.engine_class),
> - pf->consumer.engine_instance);
> + xe_gt_info(pf->gt, "\n\tASID: %d\n"
> + "\tFaulted Address: 0x%08x%08x\n"
> + "\tFaultType: %d\n"
> + "\tAccessType: %d\n"
> + "\tFaultLevel: %d\n"
> + "\tEngineClass: %d %s\n"
> + "\tEngineInstance: %d\n",
> + pf->consumer.asid,
> + upper_32_bits(pf->consumer.page_addr),
> + lower_32_bits(pf->consumer.page_addr),
> + pf->consumer.fault_type,
> + pf->consumer.access_type,
> + pf->consumer.fault_level,
> + pf->consumer.engine_class,
> + xe_hw_engine_class_to_str(pf->consumer.engine_class),
> + pf->consumer.engine_instance);
> }
>
> static void xe_pagefault_queue_work(struct work_struct *w)
> @@ -260,8 +260,8 @@ static void xe_pagefault_queue_work(struct work_struct *w)
> err = xe_pagefault_service(&pf);
> if (err) {
> xe_pagefault_print(&pf);
> - xe_gt_dbg(pf.gt, "Fault response: Unsuccessful %pe\n",
> - ERR_PTR(err));
> + xe_gt_info(pf.gt, "Fault response: Unsuccessful %pe\n",
> + ERR_PTR(err));
> }
>
> pf.producer.ops->ack_fault(&pf, err);
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-12-18 22:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-18 22:37 [PATCH] drm/xe: Increase log level for unhandled page faults Matthew Brost
2025-12-18 22:48 ` Rodrigo Vivi [this message]
2025-12-18 23:27 ` Summers, Stuart
2025-12-19 1:04 ` ✓ CI.KUnit: success for " Patchwork
2025-12-19 1:41 ` ✓ Xe.CI.BAT: " Patchwork
2025-12-20 4:47 ` ✓ Xe.CI.Full: " 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=aUSEzt21yLZnyots@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.