* Moving GPIO interrupts and IPIs to a core other than 0
[not found] <F4438E9E-D120-4B55-AACD-1D7560A3EA87@gmail.com>
@ 2016-08-20 17:19 ` T. Smith
2016-08-22 2:11 ` T. Smith
1 sibling, 0 replies; 2+ messages in thread
From: T. Smith @ 2016-08-20 17:19 UTC (permalink / raw)
To: linux-kernel, linux-scsi, irqbalance
On the 4.1.8-rt8+gdb51baf SMP PREMPT RT kernel, GPIO interrupts are assigned to core 0 as are the following IPI interrupts:
Arch_timer
Rescheduling Interrupt
Function call interrupt
Trying to assign GPIO interrupts to core 2 for example, or trying to reassign or move IPI interrupts running on core 0 to some other core does not seem possible since attempting to move these was unsuccessful. Successfully moved other ISRs and tasks to other cores with no problem.
1. How does one control GPIO ISR affinity when GPIOs interrupts always appear to run on Core 0? How do we assign GPIO interrupts to any core other than Core#0.
2. It looks like the existing GPIO driver does not support assigning interrupts to any other core than CPU0, is this correct?
3. If so, why are GPIO interrupts assigned only to Core#0?
4. There are virtual GPIO interrupts and GPIO hardware interrupts, can either or both interrupts be assigned to a specific core other than Core#0?
5. Is it possible to isolate a given CPU core from the following IPI interrupts, and if so, how do we isolate CPU0 from the following IPI interrupts. If not, why are these always serviced on boot core 0? Arch_timer, Rescheduling Interrupt, Function call interrupt
Creating the GPIO interrupt:
root:~# echo 498 > /sys/class/gpio/export
root:~# echo falling > /sys/class/gpio/gpio498/edge
root:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
[....]
66: 0 0 0 0 GIC 106
Level 1740000.jr
67: 0 0 0 0 mpc8xxx-gpio 18
Edge gpiolib
IPI0: 3226 4833 4237 4170 Recheduling interrupts
IPI1: 17 21 19 23 Function call interrupts
Setting GPIO affinity doesn’t work:
root:~# echo 1 > /proc/irq/67/smp_affinity_list-sh: echo: write error: Input/output error
Setting eMMC interrupt affinity works just fine:
root:~# echo 1 > /proc/irq/12/smp_affinity_list
root:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
[....]
1: 0 0 0 0 GIC 29
Edge arch_timer
2: 35475 39336 28975 38803 GIC 30
Edge arch_timer
11 9 0 0 0 GIC 75 Level fsl-ifc
12: 3370 14 0 0 GIC 94 Level mmc0
[...]
thx, Tracy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Moving GPIO interrupts and IPIs to a core other than 0
[not found] <F4438E9E-D120-4B55-AACD-1D7560A3EA87@gmail.com>
2016-08-20 17:19 ` Moving GPIO interrupts and IPIs to a core other than 0 T. Smith
@ 2016-08-22 2:11 ` T. Smith
1 sibling, 0 replies; 2+ messages in thread
From: T. Smith @ 2016-08-22 2:11 UTC (permalink / raw)
To: linux-kernel, linux-scsi, irqbalance
On the 4.1.8-rt8+gdb51baf SMP PREMPT RT kernel, GPIO interrupts are assigned to core 0 as are the following IPI interrupts:
Arch_timer
Rescheduling Interrupt
Function call interrupt
Trying to assign GPIO interrupts to core 2 for example, or trying to reassign or move IPI interrupts running on core 0 to some other core does not seem possible since attempting to move these was unsuccessful. Successfully moved other ISRs and tasks to other cores with no problem.
1. How does one control GPIO ISR affinity when GPIOs interrupts always appear to run on Core 0? How do we assign GPIO interrupts to any core other than Core#0.
2. It looks like the existing GPIO driver does not support assigning interrupts to any other core than CPU0, is this correct?
3. If so, why are GPIO interrupts assigned only to Core#0?
4. There are virtual GPIO interrupts and GPIO hardware interrupts, can either or both interrupts be assigned to a specific core other than Core#0?
5. Is it possible to isolate a given CPU core from the following IPI interrupts, and if so, how do we isolate CPU0 from the following IPI interrupts. If not, why are these always serviced on boot core 0? Arch_timer, Rescheduling Interrupt, Function call interrupt
Creating the GPIO interrupt:
root:~# echo 498 > /sys/class/gpio/export
root:~# echo falling > /sys/class/gpio/gpio498/edge
root:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
[....]
66: 0 0 0 0 GIC 106
Level 1740000.jr
67: 0 0 0 0 mpc8xxx-gpio 18
Edge gpiolib
IPI0: 3226 4833 4237 4170 Recheduling interrupts
IPI1: 17 21 19 23 Function call interrupts
Setting GPIO affinity doesn’t work:
root:~# echo 1 > /proc/irq/67/smp_affinity_list-sh: echo: write error: Input/output error
Setting eMMC interrupt affinity works just fine:
root:~# echo 1 > /proc/irq/12/smp_affinity_list
root:~# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
[....]
1: 0 0 0 0 GIC 29
Edge arch_timer
2: 35475 39336 28975 38803 GIC 30
Edge arch_timer
11 9 0 0 0 GIC 75 Level fsl-ifc
12: 3370 14 0 0 GIC 94 Level mmc0
[...]
thx, Tracy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-08-22 2:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <F4438E9E-D120-4B55-AACD-1D7560A3EA87@gmail.com>
2016-08-20 17:19 ` Moving GPIO interrupts and IPIs to a core other than 0 T. Smith
2016-08-22 2:11 ` T. Smith
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).