mirror of
https://github.com/torvalds/linux.git
synced 2026-11-12 20:54:48 +01:00
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:
parent
07fed9b3f4
commit
08efc2ef4c
|
|
@ -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()) %
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user