public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC][PATCH] fix target_cpus() for summit subarch
@ 2004-08-28  0:24 john stultz
  2004-08-28  2:02 ` William Lee Irwin III
  2004-08-28  6:17 ` Martin J. Bligh
  0 siblings, 2 replies; 7+ messages in thread
From: john stultz @ 2004-08-28  0:24 UTC (permalink / raw)
  To: lkml
  Cc: William Lee Irwin III, James, keith maanthey, Chris McDermott,
	Martin J. Bligh

I've been hunting down a bug affecting IBM x440/x445 systems where the
floppy driver would get spurious interrupts and would not initialize
properly. 

After digging James Cleverdon pointed out that target_cpus() is routing
the interrupts to the clustered apic broadcast mask. This was causing
multiple interrupts to show up, breaking the floppy init code. 

This one-liner fix simply routes interrupts to the first cpu to resolve
this issue.

Any comments or feedback would be appreciated.

thanks
-john

===== include/asm-i386/mach-summit/mach_apic.h 1.38 vs edited =====
--- 1.38/include/asm-i386/mach-summit/mach_apic.h	2004-06-24 01:55:52 -07:00
+++ edited/include/asm-i386/mach-summit/mach_apic.h	2004-08-27 16:43:22 -07:00
@@ -19,7 +19,7 @@
 
 static inline cpumask_t target_cpus(void)
 {
-	return CPU_MASK_ALL;
+	return cpumask_of_cpu(0);
 } 
 #define TARGET_CPUS	(target_cpus())
 



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

end of thread, other threads:[~2004-08-31  1:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-28  0:24 [RFC][PATCH] fix target_cpus() for summit subarch john stultz
2004-08-28  2:02 ` William Lee Irwin III
2004-08-28  6:17 ` Martin J. Bligh
2004-08-30 18:03   ` john stultz
2004-08-30 20:46     ` john stultz
2004-08-30 21:24     ` James Cleverdon
2004-08-31  1:06       ` john stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox