Interrupt priority on the Linux P1020 - How to set it up?

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

Interrupt priority on the Linux P1020 - How to set it up?

ソリューションへジャンプ
4,441件の閲覧回数
alfonsokame
Contributor III

Hello,

I'm writing a linux kernel driver in order to control the 6 IRQs on the P1020.

My approach is to configure those IRqs in the device tree, to map them using irq_of_parse_and_map, to request them using request_irq

and to get the ISRs using the Read system call and the waitqueue. so far so good.

But I would like to configure the registers in order to set the priorities. Is the best approach to directly (atomic) write the PIC_EIVPR0...PIC_EIVPR6 registers?

is there any freescale approach to set the interrupt priorities on the QorIQ with Linux?

Thanks a lot for your reply

ラベル(2)
1 解決策
3,800件の閲覧回数
scottwood
NXP Employee
NXP Employee

mpic_irq_set_priority()

Note that interrupts are disabled while running an interrupt handler, so this won't allow a high priority interrupt to preempt a low priority interrupt.  It will still ensure that the highest priority interrupt is the next one to be processed after the current interrupt finishes.

元の投稿で解決策を見る

2 返答(返信)
3,801件の閲覧回数
scottwood
NXP Employee
NXP Employee

mpic_irq_set_priority()

Note that interrupts are disabled while running an interrupt handler, so this won't allow a high priority interrupt to preempt a low priority interrupt.  It will still ensure that the highest priority interrupt is the next one to be processed after the current interrupt finishes.

3,799件の閲覧回数
tsybezoff
Contributor I

so how can i preempt a low priority interrupt??? i need it

0 件の賞賛
返信