Re: [PATCH v2 4/8] drm/xe: Use dma_fence_check_and_signal_locked()

From: Andi Shyti
Date: Tue Dec 02 2025 - 15:48:09 EST


Hi Matt,

> > @@ -93,9 +92,8 @@ void xe_hw_fence_irq_finish(struct xe_hw_fence_irq *irq)
> > spin_lock_irqsave(&irq->lock, flags);
> > list_for_each_entry_safe(fence, next, &irq->pending, irq_link) {
> > list_del_init(&fence->irq_link);
> > - err = dma_fence_signal_locked(&fence->dma);
> > + XE_WARN_ON(dma_fence_check_and_signal_locked(&fence->dma));
>
> I think XE_WARN_ON can compile out in certain builds. Best to leave warn on logic as is.

I don't think XE_WARN_ON compiles out. It should always evaluate
the content, then, depending on the build, it prints debug logs.

Andi