drm/xe/gt: Report 'Queue full' pagefault error using SIGID

Report 'Queue full' error using xe_log_err() helper.
While around, replace WARN_ON with WARN_ON_ONCE as there is no
need for extra noise each time we hit this unlikely condition.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Aravind Iddamsetty <aravind.iddamsetty@intel.com>
Cc: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patch.msgid.link/20260814171801.13347-33-michal.wajdeczko@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
Michal Wajdeczko 2026-08-14 19:17:58 +02:00 committed by Rodrigo Vivi
parent 07fed9b3f4
commit 08efc2ef4c
No known key found for this signature in database
GPG Key ID: FA625F640EEB13CA

View File

@ -328,8 +328,10 @@ xe_pagefault_queue_add(struct xe_pagefault_queue *pf_queue,
do {
/* Not possible, warn on and drop page fault */
if (WARN_ON(xe_pagefault_queue_full(pf_queue)))
if (WARN_ON_ONCE(xe_pagefault_queue_full(pf_queue))) {
xe_log_err(xe, PAGEFAULT, -ENOSPC, "Queue full!\n");
return NULL;
}
lpf = (pf_queue->data + pf_queue->head);
pf_queue->head = (pf_queue->head + xe_pagefault_entry_size()) %