P2020 QoriIQ Exceptions handler

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

P2020 QoriIQ Exceptions handler

836 Views
transporter
Contributor II

Hi,

I am working on P2020 QoriIQ.

Is there a way to know which of the Interrupt Vector Registers (IVOR0 - IVOR35)  accured?

I`m searching for register that will tell me the IVOR number in my exceptions handler.

Thanks for help :smileyhappy:

Tags (1)
2 Replies

614 Views
scottwood
NXP Employee
NXP Employee

There is no such register.  If you need to distinguish between different IVORs you need to set them to different addresses, and have the code remember which entry path was taken.

614 Views
Pavel
NXP Employee
NXP Employee

The Table 9-2 of the P2020 Reference Manual contains the assignments of the internal interrupt.

Linux makes no difference between external and internal interrupts. All interrupts in the system are handled by the same Linux API. If this API didn't work, no driver in the system would be able to operate, not just your customer's module.

The customer is attempting to request an IRQ by the resource number which is generally incorrect. The resource number is an index to irq_desc table.

This index is generally _not_equal to the hardware IRQ line number. See Documentation/IRQ.txt for explanation.

To request an IRQ line in a proper way, the customer should:

  1. 1. Declare the IRQ properly in the DTS. Refer to /Documentation/powerpc/booting-without-of.txt for details. The value of the "interrupt"

property is calculated by the following

  formula:

  [DTS_interrupt_number] = ([EIVPR/IIVPR_addr] - [Interrupt_Source_Configuration_Registers_Base]) / 0x20

                where [EIVPR/IIVPR_addr] is the address of the interrupt configuration registers

                of the IRQ being declared, [Interrupt_Source_Configuration_Registers_Base]

                is 0x50000 for P2020


Have a great day,
Pavel

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

0 Kudos