ARM: gic-v3: Log the IRQs in RTB before handling an IRQ
Gic-v3 did not log IRQs in RTB like gic-v2. Thus add the LOGK_IRQ logbefore calling the IRQ handler like gic-v2. Change-Id: I46a5951e733a05b9a7d5d6323568fa800dfb5d62 Signed-off-by: Cassidy Burden <cburden@codeaurora.org> Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org> Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
This commit is contained in:
committed by
Prasad Sodagudi
parent
ceadf470cd
commit
5f0823d3f6
@@ -28,6 +28,7 @@
|
||||
#include <linux/of_irq.h>
|
||||
#include <linux/percpu.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/msm_rtb.h>
|
||||
|
||||
#include <linux/irqchip.h>
|
||||
#include <linux/irqchip/arm-gic-common.h>
|
||||
@@ -351,6 +352,7 @@ static asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs
|
||||
if (likely(irqnr > 15 && irqnr < 1020) || irqnr >= 8192) {
|
||||
int err;
|
||||
|
||||
uncached_logk(LOGK_IRQ, (void *)(uintptr_t)irqnr);
|
||||
if (static_key_true(&supports_deactivate))
|
||||
gic_write_eoir(irqnr);
|
||||
|
||||
@@ -367,6 +369,7 @@ static asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs
|
||||
continue;
|
||||
}
|
||||
if (irqnr < 16) {
|
||||
uncached_logk(LOGK_IRQ, (void *)(uintptr_t)irqnr);
|
||||
gic_write_eoir(irqnr);
|
||||
if (static_key_true(&supports_deactivate))
|
||||
gic_write_dir(irqnr);
|
||||
|
||||
Reference in New Issue
Block a user