Re: [PATCH v3] drm/i915/gt: Use spin_lock_irqsave() in interruptible context

2025-02-13 Thread Andi Shyti
Hi Krzysztof, On Thu, Jan 16, 2025 at 10:40:46AM +, Krzysztof Karas wrote: > spin_lock/unlock() functions used in interrupt contexts could > result in a deadlock, as seen in GitLab issue #13399: > https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13399, I moved this link in the tag sect

Re: [PATCH v3] drm/i915/gt: Use spin_lock_irqsave() in interruptible context

2025-01-16 Thread Maciej Patelczyk
On 16.01.2025 11:40, Krzysztof Karas wrote: spin_lock/unlock() functions used in interrupt contexts could result in a deadlock, as seen in GitLab issue #13399: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13399, which occurs when interrupt comes in while holding a lock. Try to remedy

[PATCH v3] drm/i915/gt: Use spin_lock_irqsave() in interruptible context

2025-01-16 Thread Krzysztof Karas
spin_lock/unlock() functions used in interrupt contexts could result in a deadlock, as seen in GitLab issue #13399: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/13399, which occurs when interrupt comes in while holding a lock. Try to remedy the problem by saving irq state before spin lo