i386/39234 SMP 4.6-RC freezes during boot (Fujitsu-Siemens C200)

Marco Wertejuk wertejuk at mwcis.com
Mon Apr 28 13:40:09 PDT 2003


The following reply was made to PR i386/39234; it has been noted by GNATS.

From: Marco Wertejuk <wertejuk at mwcis.com>
To: freebsd-gnats-submit at freebsd.org, hlh at ciger.be
Cc:  
Subject: Re: i386/39234 SMP 4.6-RC freezes during boot (Fujitsu-Siemens C200)
Date: Mon, 28 Apr 2003 22:33:11 +0200

 --RnlQjJ0d97Da+TV1
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 I was fighting with the same problem during the last days.
 Since there's no solution found yet, it would be nice to
 have an easy workaround which is configurable within the
 kernel config file, because as discussed on -smp, it's no
 solution to make the change default.
 But on the other hand it doesn't make sense to patch 
 mp_machdep.c after every checkout just to retain the
 system bootable.
 
 Please apply the attached patches, which create a new
 kernel option for i386 config files (called
 SMP_PRIMERGY_BUG) which enable the workaround in the
 APIC I/O int table.
 The workaround itself is tested on multiple servers
 successfully and patches if applied make it easier
 to run smp on the affected machines, by just using
 the kernel option (documented in NOTES).
 
 Maybe this should be applied to -stable and -current
 because a lot of people running FreeBSD on SMP Hosts
 use it in a production system with RELENG_4, or even
 release.
 
 -- 
 Mit freundlichen Gruessen,
 Marco Wertejuk - mwcis.com
 Consulting & Internet Solutions
 
 --RnlQjJ0d97Da+TV1
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="NOTES.diff"
 
 *** NOTES	Sun Apr 27 05:35:10 2003
 --- NOTES.primergy	Mon Apr 28 20:24:09 2003
 ***************
 *** 1067,1072 ****
 --- 1067,1073 ----
   # Note that documenting these are not considered an affront.
   
   options 	FB_INSTALL_CDEV		# install a CDEV entry in /dev
 + options		SMP_PRIMERGY_BUG	# use this if SMP on P200/C200 freezes
   
   # PECOFF module (Win32 Execution Format)
   options 	PECOFF_SUPPORT
 
 --RnlQjJ0d97Da+TV1
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="mp_machdep.c.diff"
 
 *** mp_machdep.c	Wed Apr  2 23:53:28 2003
 --- mp_machdep.c.primergy	Mon Apr 28 19:15:37 2003
 ***************
 *** 1045,1050 ****
 --- 1045,1053 ----
   		panic("NO BSP found!");
   
   	/* report fact that its NOT a default configuration */
 + #if defined (SMP_PRIMERGY_BUG)
 + 		io_apic_ints[0].int_type = 3;
 + #endif /* SMP_PRIMERGY_BUG */
   	return 0;
   }
   
 
 --RnlQjJ0d97Da+TV1
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="options.i386.diff"
 
 *** options.i386	Sat Apr 12 09:40:37 2003
 --- options.i386.primergy	Mon Apr 28 19:15:05 2003
 ***************
 *** 18,23 ****
 --- 18,24 ----
   I586_PMC_GUPROF		opt_i586_guprof.h
   COMPAT_OLDISA
   BROKEN_KEYBOARD_RESET	opt_reset.h
 + SMP_PRIMERGY_BUG
   
   # Options for emulators.  These should only be used at config time, so
   # they are handled like options for static filesystems
 
 --RnlQjJ0d97Da+TV1--


More information about the freebsd-bugs mailing list