[PATCH v1] ufs: core: Avoid IRQ thread wakeup during active UIC command

Bart Van Assche bvanassche at acm.org
Wed Mar 4 06:43:30 PST 2026


On 3/4/26 1:12 AM, peter.wang at mediatek.com wrote:
> Only return IRQ_WAKE_THREAD when MCQ and ESI are not enabled
> and no UIC command is active. Since the default UIC command
> timeout is 500ms, handling IRQs in a thread during an active UIC
> command can easily lead to timeouts due to delayed processing.

A context switch takes somewhere between 1 and 10 microseconds.
That is several orders of magnitude below the UIC command timeout.
Something else must be causing the observed UIC timeouts.

Thanks,

Bart.



More information about the Linux-mediatek mailing list