ARM: gic: Add support for logging interrupts in RTB
To help with the debug of interrupt storms and problems during IRQ handling, log the IRQ number in RTB for each interrupt that fires. Change-Id: Icea5ded0f7d66ba3c7608793e7c25218e2a64e0c Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org> [abhimany: resolve trivial merge conflicts] Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org> [aiquny: resolve trivial merge conflicts] Signed-off-by: Maria Yu <aiquny@codeaurora.org>
This commit is contained in:
parent
07071b6c92
commit
6975081f29
@ -38,6 +38,7 @@
|
||||
#include <linux/irqchip.h>
|
||||
#include <linux/irqchip/chained_irq.h>
|
||||
#include <linux/irqchip/arm-gic.h>
|
||||
#include <linux/msm_rtb.h>
|
||||
|
||||
#include <asm/cputype.h>
|
||||
#include <asm/irq.h>
|
||||
@ -362,6 +363,7 @@ static void __exception_irq_entry gic_handle_irq(struct pt_regs *regs)
|
||||
writel_relaxed(irqstat, cpu_base + GIC_CPU_EOI);
|
||||
isb();
|
||||
handle_domain_irq(gic->domain, irqnr, regs);
|
||||
uncached_logk(LOGK_IRQ, (void *)(uintptr_t)irqnr);
|
||||
continue;
|
||||
}
|
||||
if (irqnr < 16) {
|
||||
@ -379,6 +381,7 @@ static void __exception_irq_entry gic_handle_irq(struct pt_regs *regs)
|
||||
smp_rmb();
|
||||
handle_IPI(irqnr, regs);
|
||||
#endif
|
||||
uncached_logk(LOGK_IRQ, (void *)(uintptr_t)irqnr);
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user