Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6f137ab authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
[abhimany: resolve trivial merge conflicts]
Signed-off-by: default avatarAbhimanyu Kapur <abhimany@codeaurora.org>
[aiquny: resolve trivial merge conflicts]
Signed-off-by: default avatarMaria Yu <aiquny@codeaurora.org>
parent c1b1f71e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -41,6 +41,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>
@@ -365,6 +366,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) {
@@ -382,6 +384,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;