Skip to contentSkip to conversation

Fix interrupt clearing in kdump shutdown sequence

PATCH Mohan Kumar M 2 participants 2 messages Sep 12, 2006 – Sep 14, 2006

lore
Share & tools
lore
#0 lore raw

Hi,

Some times HVC console on a PPC machine may have pending interrupts and in this case kdump shutdown sequence created problem by calling chip->end. This should be chip->eoi(). The attached patch fixes this issue. Tested on POWER5 box.

Patch generated on 2.6.18-rc6-git4.

It will be helpful if this patch is included in 2.6.18.

Regards,
Mohan.

Call chip->eoi(irq) to clear any pending interrupt in case of kdump shutdown sequence. chip->end(irq) does not solve this purpose.

---

 linux-2.6.18-rc6-git4/arch/powerpc/kernel/crash.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
linux-2.6.18-rc6-git4/arch/powerpc/kernel/crash.c renamed from linux-2.6.18-rc6-git4/arch/powerpc/kernel/crash.c~kdump-irq-fix +1 -1
diff -puN linux-2.6.18-rc6-git4/arch/powerpc/kernel/crash.c~kdump-irq-fix linux-2.6.18-rc6-git4/arch/powerpc/kernel/crash.c
@@ -295,7 +295,7 @@ void default_machine_crash_shutdown(stru
 		struct irq_desc *desc = irq_desc + irq;
 
 		if (desc->status & IRQ_INPROGRESS)
-			desc->chip->end(irq);
+			desc->chip->eoi(irq);
 
 		if (!(desc->status & IRQ_DISABLED))
 			desc->chip->disable(irq);

_

#1 lore raw
Quoted 6 lines · Mohan Kumar M

Hi,

Some times HVC console on a PPC machine may have pending interrupts and in this case kdump shutdown sequence created problem by calling chip->end. This should be chip->eoi(). The attached patch fixes this issue. Tested on POWER5 box.

Nice catch.

Looks like chip->end() used to == xics_end_irq(), but that vanished and became xics_eio_(direct|lpar) and got hooked up to chip->eoi(). We should check there are no other callers of chip->end() which really want chip->eoi().

cheers

Signature · 8 lines
Michael Ellerman
OzLabs, IBM Australia Development Lab

wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person