From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 28 13:40:09 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9614E37B404 for ; Mon, 28 Apr 2003 13:40:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A16243FA3 for ; Mon, 28 Apr 2003 13:40:09 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h3SKe7Up043299 for ; Mon, 28 Apr 2003 13:40:07 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h3SKe7ip043286; Mon, 28 Apr 2003 13:40:07 -0700 (PDT) Date: Mon, 28 Apr 2003 13:40:07 -0700 (PDT) Message-Id: <200304282040.h3SKe7ip043286@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Marco Wertejuk Subject: Re: i386/39234 SMP 4.6-RC freezes during boot (Fujitsu-Siemens C200) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Marco Wertejuk List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2003 20:40:09 -0000 The following reply was made to PR i386/39234; it has been noted by GNATS. From: Marco Wertejuk To: freebsd-gnats-submit@freebsd.org, hlh@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--