bind a gpio interrupt to cpu2

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

bind a gpio interrupt to cpu2

ソリューションへジャンプ
2,693件の閲覧回数
fangxu
Contributor I

i use imx6q and system built with yocto.

Now i want to bind a gpio interrput to cpu2.how can i do?

ラベル(1)
0 件の賞賛
返信
1 解決策
1,665件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  Please use Linux affinity feature.

In particular You may look at i.mx6 Linux CPU IRQ affinity


Have a great day,
Yuri

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

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,666件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  Please use Linux affinity feature.

In particular You may look at i.mx6 Linux CPU IRQ affinity


Have a great day,
Yuri

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

0 件の賞賛
返信
1,664件の閲覧回数
fangxu
Contributor I

I have done the problem.

e.g.  gpio1_18 interrput to cpu2

//-------------------------------------------------------

90 GPIO1 INT7 interrupt request.

91 GPIO1 INT6 interrupt request.

92 GPIO1 INT5 interrupt request.

93 GPIO1 INT4 interrupt request.

94 GPIO1 INT3 interrupt request.

95 GPIO1 INT2 interrupt request.

96 GPIO1 INT1 interrupt request.

97 GPIO1 INT0 interrupt request.

98 GPIO1 Combined interrupt indication for GPIO1 signals 0 - 15.

99 GPIO1 Combined interrupt indication for GPIO1 signals 16 - 31.

100 GPIO2 Combined interrupt indication for GPIO2 signals 0 - 15.

101 GPIO2 Combined interrupt indication for GPIO2 signals 16 - 31.

102 GPIO3 Combined interrupt indication for GPIO3 signals 0 - 15.

103 GPIO3 Combined interrupt indication for GPIO3 signals 16 - 31.

104 GPIO4 Combined interrupt indication for GPIO4 signals 0 - 15.

105 GPIO4 Combined interrupt indication for GPIO4 signals 16 - 31.

106 GPIO5 Combined interrupt indication for GPIO5 signals 0 - 15.

107 GPIO5 Combined interrupt indication for GPIO5 signals 16 - 31.

108 GPIO6 Combined interrupt indication for GPIO6 signals 0 - 15.

109 GPIO6 Combined interrupt indication for GPIO6 signals 16 - 31.

110 GPIO7 Combined interrupt indication for GPIO7 signals 0 - 15.

111 GPIO7 Combined interrupt indication for GPIO7 signals 16 - 31.

//------------------------------------------------------------------

you should do this:

echo 4 > /proc/irq/99/smp_affinity

0 件の賞賛
返信