[PATCH v1 06/10] ufs: host: mediatek: Set IRQ affinity policy for MCQ mode
Peter Wang (王信友)
peter.wang at mediatek.com
Wed Jul 16 23:54:24 PDT 2025
On Wed, 2025-07-16 at 08:27 -0700, Bart Van Assche wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> On 7/15/25 11:25 PM, peter.wang at mediatek.com wrote:
> > This patch sets the IRQ affinity for MCQ mode to improve
> > performance. Specifically, it migrates the IRQ from CPU0 to
> > CPU3 to enhance IRQ handling efficiency.
>
> IRQ affinity can and should be set from userspace.
>
> Bart.
Hi Bart,
"IRQ affinity can be set from userspace."
=> This is correct.
"IRQ affinity should be set from userspace."
=> I have some doubts about this statement.
Is there any documentation that explains this?
As far as I understand,
This depends on the situation. By default, Linux automatically
distributes
IRQs across CPUs, which is sufficient for most systems. However, in
certain high-performance or special-use cases (such as for network
cards
or storage devices), manually setting IRQ affinity can improve
performance or reduce latency.
Thanks.
Peter
More information about the Linux-mediatek
mailing list