linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kdump: clear and EOI IPI for kexec CPU
@ 2006-03-23  5:18 Haren Myneni
  2006-03-27  2:04 ` Paul Mackerras
  0 siblings, 1 reply; 2+ messages in thread
From: Haren Myneni @ 2006-03-23  5:18 UTC (permalink / raw)
  To: Paul Mackerras; +Cc: linuxppc-dev, ellerman, Milton Miller, Olaf Hering

[-- Attachment #1: Type: text/plain, Size: 452 bytes --]

Paul, Sorry, Please ignore the previous patch since it has one tab/space 
issue. Tested this one and kdump-dma-fault-fix.patch on P5, P4 
(non-lpar), JS21 and JS20.

Thanks
Haren

Some times, the kexec CPU is not reponding to an IPI during kdump boot. 
It is causing the system in xmon. Noticed on power-4 (non-lpar). This 
patch clears and EOI IPI for kexec CPU as well before the kdump boot 
started.

Signed-off-by: Haren Myneni <haren@us.ibm.com>


[-- Attachment #2: kdump-clear-IPI.patch --]
[-- Type: text/x-patch, Size: 1162 bytes --]

--- 2616-git5-k1/arch/powerpc/platforms/pseries/xics.c.orig	2006-04-04 19:27:24.000000000 -0700
+++ 2616-git5-k1/arch/powerpc/platforms/pseries/xics.c	2006-04-04 20:06:19.000000000 -0700
@@ -641,22 +641,27 @@ void xics_teardown_cpu(int secondary)
 	iosync();
 
 	/*
+	 * Clear IPI
+	 */
+	ops->qirr_info(cpu, 0xff);
+	/*
+	 * we need to EOI the IPI if we got here from kexec down IPI
+	 *
+	 * probably need to check all the other interrupts too
+	 * should we be flagging idle loop instead?
+	 * or creating some task to be scheduled?
+	 */
+	ops->xirr_info_set(cpu, XICS_IPI);
+
+	/*
 	 * Some machines need to have at least one cpu in the GIQ,
 	 * so leave the master cpu in the group.
 	 */
-	if (secondary) {
-		/*
-		 * we need to EOI the IPI if we got here from kexec down IPI
-		 *
-		 * probably need to check all the other interrupts too
-		 * should we be flagging idle loop instead?
-		 * or creating some task to be scheduled?
-		 */
-		ops->xirr_info_set(cpu, XICS_IPI);
+	if (secondary) 
 		rtas_set_indicator(GLOBAL_INTERRUPT_QUEUE,
 			(1UL << interrupt_server_size) - 1 -
 			default_distrib_server, 0);
-	}
+	
 }
 
 #ifdef CONFIG_HOTPLUG_CPU

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kdump: clear and EOI IPI for kexec CPU
  2006-03-23  5:18 [PATCH] kdump: clear and EOI IPI for kexec CPU Haren Myneni
@ 2006-03-27  2:04 ` Paul Mackerras
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mackerras @ 2006-03-27  2:04 UTC (permalink / raw)
  To: Haren Myneni; +Cc: linuxppc-dev, ellerman, Milton Miller, Olaf Hering

Haren Myneni writes:

> Paul, Sorry, Please ignore the previous patch since it has one tab/space 
> issue. Tested this one and kdump-dma-fault-fix.patch on P5, P4 
> (non-lpar), JS21 and JS20.
> 
> Thanks
> Haren
> 
> Some times, the kexec CPU is not reponding to an IPI during kdump boot. 
> It is causing the system in xmon. Noticed on power-4 (non-lpar). This 
> patch clears and EOI IPI for kexec CPU as well before the kdump boot 
> started.

Sorry, that commit message is quite opaque to me.  Could you explain
in more detail what the problem is and how this fixes it?

Thanks,
Paul.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-03-27  2:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-23  5:18 [PATCH] kdump: clear and EOI IPI for kexec CPU Haren Myneni
2006-03-27  2:04 ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).