How does IMX6D bind IRQ to a specified CPU core?

cancel
Showing results for 
Search instead for 
Did you mean: 

How does IMX6D bind IRQ to a specified CPU core?

144 Views
864535720
Contributor II


Hello everyone,

    my development board is IMX6Q-sabresd. My Linux kernel version is 3.14.52.
When I use an external interrupt, I use the GPIO6_IO01 pin. I found that the CPU occasionally failed to respond to my external interrupts in time. Later I found out that most of the responses to the interrupts were CPU0. I want to bind my external interrupt to CPU1.
I use the command: echo 2 > proc/irq/321/smp_affinity
Hint: -sh: echo: write error: Input/output error

Later I tried to bind other interrupts to CPU1, which reduced the load on CPU0 and solved my problem. Now what I want to ask is: How do I bind my external interrupt to CPU1?
Looking forward to your reply.

Labels (2)
0 Kudos
2 Replies

46 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi 其东 刘

one can look at

Enable and Distribute IRQs in Linux - Stack Overflow 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

46 Views
864535720
Contributor II

I refer to the URL you gave to make changes. Found that it can't be bound. Hint: -sh: echo: write error: Input/output error

pastedImage_1.png

pastedImage_2.png

0 Kudos