CVS commit: src/sys/arch/powerpc/pic

"Jared D. McNeill" <[email protected]>
Newsgroups gmane.os.netbsd.devel.cvs
Message-ID <[email protected]>
Module Name:	src
Committed By:	jmcneill
Date:		Wed Mar  4 10:54:32 UTC 2026

Modified Files:
	src/sys/arch/powerpc/pic: intr.c picvar.h

Log Message:
powerpc: count intr events on the correct cpu

The powerpc pic code doesn't support routing but an interrupt may fire
elsewhere (think IPIs). Instead of always reporting events on CPU 0,
record the last CPU index to handle the interrupt in struct intrsource
and use that when reporting affinity / event counters.

nintendo$ intrctl list
interrupt id  CPU0   CPU1   CPU2  device name(s)
pi irq 20     4141*     0      0  IPI cpu0
pi irq 21        0  20949*     0  IPI cpu1
pi irq 22        0      0  16259* IPI cpu2
pi irq 14    29857*     0      0  latte
latte irq 70    19*     0      0  ahcisata0
latte irq 37    29*     0      0  ohci0
latte irq 38    40*     0      0  ohci1
latte irq 67     0*     0      0  ohci2
latte irq 69     2*     0      0  ohci3
latte irq 36   621*     0      0  ehci0
latte irq 66     1*     0      0  ehci1
latte irq 68    29*     0      0  ehci2
latte irq 39 27979*     0      0  sdhc0
latte irq 40  1174*     0      0  sdhc1
pi irq 5         0*     0      0  bwai0


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/arch/powerpc/pic/intr.c
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/powerpc/pic/picvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.