[PATCH v2] ufs: core: Avoid IRQ thread wakeup during active UIC command
Peter Wang (王信友)
peter.wang at mediatek.com
Thu Mar 19 05:39:57 PDT 2026
On Wed, 2026-03-18 at 09:14 +0100, Marek Szyprowski wrote:
> CPU: 0 UID: 0 PID: 0 Comm: swapper/0 Not tainted 7.0.0-rc1+ #16536
> PREEMPT
>
Hi Marek,
I stressed the UIC command for 24 hours but could not
reproduce the issue. I also found that the line containing
"PREEMPT" might be a key point.
So I suspect that lockdep might be misjudging with "PREEMPT"
setting. After all, using spin_lock_irqsave inside the
ISR should be fine:
guard(spinlock_irqsave)(hba->host->host_lock);
Would it be possible to try disabling lockdep and see what
happens? It seems lockdep is even getting the lock wrong
(hba->host->host_lock, not shost->host_lock).
>
> You have probably mixed my report with this one
> https://lore.kernel.org/all/abmNkRC_vSVaP2sC@mail.iam.tj/
>
> Best regards
Yes, I mixed it up with this one because the call trace
looks the same.
Thanks
Peter
More information about the Linux-mediatek
mailing list