linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Why GICD_ITARGETSR is not used by Linux
@ 2022-09-20  1:42 Li Chen
  2022-09-20  7:04 ` Arnd Bergmann
  0 siblings, 1 reply; 10+ messages in thread
From: Li Chen @ 2022-09-20  1:42 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: linux-arm-kernel

Hi Arnd,

I noticed GIC has GICD_ITARGETSR to distribute IRQ to different CPUs, but currently, it is not used by Linux.

There was a patchset from MTK people: http://archive.lwn.net:8080/linux-kernel/1606486531-25719-1-git-send-email-hanks.chen@mediatek.com/T/#t which implements GIC-level IRQ distributor using GICD_ITARGETSR, but it is 
not accepted because the maintainer thinks it will break existing codes and not provide benefits compared with the existing affinity mechanism.

IIUC, Linux only relies on affinity/irqbalance to distribute IRQ instead of architecture-specific solutions like GIC's distributor.

Maybe latency can somewhat get improved, but there is no benchmark yet.

I have two questions here:
1. Now that Linux doesn't use GICD_ITARGETSR, where does it set CPU 0 to be the only IRQ distributor core?
2. Do you know any other reasons that GICD_ITARGETSR is not used by Linux?

Regards,
Li

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-09-21  7:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20  1:42 Why GICD_ITARGETSR is not used by Linux Li Chen
2022-09-20  7:04 ` Arnd Bergmann
2022-09-20  9:45   ` Li Chen
2022-09-20 10:09     ` Russell King (Oracle)
2022-09-20 10:14       ` Russell King (Oracle)
2022-09-21  2:34         ` Li Chen
2022-09-21  7:26           ` Russell King (Oracle)
2022-09-21  7:45             ` Li Chen
2022-09-20 15:37       ` Li Chen
2022-09-20 17:25         ` Russell King (Oracle)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).