GIC- 400 interrupt grouping can be done only in EL3?

cancel
Showing results for 
Search instead for 
Did you mean: 

GIC- 400 interrupt grouping can be done only in EL3?

723 Views
vijaykumardesai
Contributor II

Hi,

I am using LS1046ARDB board. I have an U-boot from NXP [default one] which leaves me in EL2 at the startup [so non secure]. It is fine for me for my application. But I want to configure GIC-400 for interrupts.

But I see that the "GICD_IGROUPR" register to group the interrupts together can only be configured in secure mode [does this mean only in EL3 mode?] and the RAZ in non-secure mode, so i can not even see what is the configuration done [I see 0, but does not mean it is zero as it is RAZ in non secure mode]. And if I enable the GIC and send a SGI I done get any interrupt. Is it because all interrupts are grouped as group 0 [secure] and I am in EL2 [non secure]?

There should be a way to configure GIC-400 even from EL2 right?

0 Kudos
2 Replies

299 Views
vijaykumardesai
Contributor II

The memory dump of the GIC for the Grouping registers is

01410080: 00000000 00000000 00000000 00000000 ................
01410090: 00000000 00000000 00000000 00000000 ................
014100a0: 00000000 00000000 00000000 00000000 ................
014100b0: 00000000 00000000 00000000 00000000 ................
014100c0: 00000000 00000000 00000000 00000000 ................
014100d0: 00000000 00000000 00000000 00000000 ................
014100e0: 00000000 00000000 00000000 00000000 ................
014100f0: 00000000 00000000 00000000 00000000 ................

This means that all the interrupts are group 0? If all of them are group 0 [it is all 0 be default], i can not set the priority of the registers to non zero, and I would never get an interrupt as long as I am not in secure world [EL3] right?

0 Kudos

299 Views
bpe
NXP TechSupport
NXP TechSupport

Are you loading PPA? If so, PPA should assign almost all interrupts to group1, so they are controllable from

non-secure:

sdk/ppa-generic.git - The Primary Protected Application 

sdk/ppa-generic.git - The Primary Protected Application 

As of group registers, no, you cannot access them from non-secure


Have a great day,
Platon

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

0 Kudos