• Leo Yan's avatar
    Hikey960: Enable invalid FIQ handling · b79f7ed0
    Leo Yan authored
    
    
    When some interrupts are configured as group 0 in GICv2, these
    interrupts trigger FIQ signal; this results in the Linux kernel panic
    by reporting log: "Bad mode in FIQ handler detected on CPU0, code
    0x00000000 -- Unknown/Uncategorized".  Unfortunately from kernel side it
    has no permission to read the GIC register for group 0 interrupts so we
    have no chance to get to know which interrupt is configured as secure
    interrupt and cause the kernel panic.
    
    For upper reason, this commit enables FIQ exception handling for
    SPD_none case.  If the system has not enabled SPD the FIQ interrupt is
    trapped into EL3 and the FIQ handler can report the interrupt number so
    we can easily narrow down which FIQ introduce unexpected interrupt.
    After enable SPD we can rely on SPD interrupt route model to handle FIQ.
    Signed-off-by: default avatarLeo Yan <leo.yan@linaro.org>
    b79f7ed0
hikey960_bl31_setup.c 5.23 KB