Re: Device hang when offlining a CPU due to IRQ misrouting

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Siddha, Suresh B
Date: Thursday, June 7, 2007 - 5:57 pm

On Wed, Jun 06, 2007 at 04:16:42PM -0700, Darrick J. Wong wrote:

hmm.. Darrick, can't find anything wrong in there.

I am very much puzzled and the main thing I am confused about is, that
how come "/proc/irq/<irq#-hung>/smp_affinity" is still pointing at the old
offlined cpu, while calls to set_affinity() with cpu_online_map mask
in fixup_irqs() don't show any failure..

As you have the failing system, you need to do more detective work and
help me out. Can you try this debug patch and send across the dmesg after the
bug happens and also can you try different compiler to see if something
changes..

diff --git a/arch/x86_64/kernel/irq.c b/arch/x86_64/kernel/irq.c
index 3eaceac..fc2a576 100644
--- a/arch/x86_64/kernel/irq.c
+++ b/arch/x86_64/kernel/irq.c
@@ -152,9 +152,11 @@ void fixup_irqs(cpumask_t map)
 			printk("Breaking affinity for irq %i\n", irq);
 			mask = map;
 		}
-		if (irq_desc[irq].chip->set_affinity)
+		if (irq_desc[irq].chip->set_affinity) {
+			printk("calling set affinity for %i, with mask %lx\n",
+				irq, cpus_addr(mask)[0]);
 			irq_desc[irq].chip->set_affinity(irq, mask);
-		else if (irq_desc[irq].action && !(warned++))
+		} else if (irq_desc[irq].action && !(warned++))
 			printk("Cannot set affinity for irq %i\n", irq);
 	}
 
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Thu May 31, 5:44 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Eric W. Biederman, (Fri Jun 1, 12:39 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Tue Jun 5, 10:23 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Tue Jun 5, 10:36 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Tue Jun 5, 11:13 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Tue Jun 5, 11:33 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Tue Jun 5, 11:40 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Tue Jun 5, 1:09 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Tue Jun 5, 2:14 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Tue Jun 5, 4:57 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Tue Jun 5, 6:37 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Wed Jun 6, 11:58 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Wed Jun 6, 12:35 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Wed Jun 6, 4:16 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Thu Jun 7, 5:57 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Mon Jun 18, 3:38 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Mon Jun 18, 4:54 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Mon Jun 18, 5:51 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Eric W. Biederman, (Tue Jun 19, 10:54 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Tue Jun 19, 11:00 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Eric W. Biederman, (Tue Jun 19, 11:55 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Tue Jun 19, 12:06 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Tue Jun 19, 12:59 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Darrick J. Wong, (Tue Jun 19, 1:49 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Tue Jun 19, 3:08 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Rafael J. Wysocki, (Sat Jun 23, 4:54 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Sat Jun 23, 5:28 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Eric W. Biederman, (Sat Jun 23, 5:45 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Siddha, Suresh B, (Sat Jun 23, 5:51 pm)
Re: Device hang when offlining a CPU due to IRQ misrouting, Rafael J. Wysocki, (Sun Jun 24, 5:48 am)
Re: Device hang when offlining a CPU due to IRQ misrouting, Rafael J. Wysocki, (Sun Jun 24, 5:50 am)