From owner-freebsd-current@FreeBSD.ORG Wed Aug 24 10:09:50 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CF8316A41F for ; Wed, 24 Aug 2005 10:09:50 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from linda-4.paradise.net.nz (bm-4a.paradise.net.nz [202.0.58.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCFBC43D46 for ; Wed, 24 Aug 2005 10:09:49 +0000 (GMT) (envelope-from markir@paradise.net.nz) Received: from smtp-3.paradise.net.nz (smtp-3a.paradise.net.nz [202.0.32.196]) by linda-4.paradise.net.nz (Paradise.net.nz) with ESMTP id <0ILQ00M2U1KCWJ@linda-4.paradise.net.nz> for freebsd-current@freebsd.org; Wed, 24 Aug 2005 22:09:48 +1200 (NZST) Received: from [192.168.1.11] (218-101-14-82.paradise.net.nz [218.101.14.82]) by smtp-3.paradise.net.nz (Postfix) with ESMTP id 1F57FAE78B for ; Wed, 24 Aug 2005 22:09:48 +1200 (NZST) Date: Wed, 24 Aug 2005 22:09:43 +1200 From: Mark Kirkwood In-reply-to: <430BA5B1.5080507@paradise.net.nz> To: freebsd-current@freebsd.org Message-id: <430C4767.2070905@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050726) References: <430BA1F1.1010907@paradise.net.nz> <430BA5B1.5080507@paradise.net.nz> Subject: Re: 6.0 BETA2 reboot hangs on SMP system - progress of a sort X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2005 10:09:50 -0000 Ok, a little more testing this time :-). The situation is this: kernel(SMP) + bios(no USB) -> hang at reboot whereas kernel(SMP) + bios(USB) -> reboot ok As I am still a kernel debugger newbie, I added a few printfs instead to pin down where the hang was. It appears to be in: src/sys/i386/i386/vm_machdep.c:cpu_reset_real() specifically: #if !defined(BROKEN_KEYBOARD_RESET) printf("cpu_reset_real: case CPU_PC98 + !BROKEN_KEYBOARD_RESET \n"); /* <==== HANGS AFTER DISPLAYING ==== */ DELAY(1000000); /* * Attempt to do a CPU reset via the keyboard controller, * do not turn off GateA20, as any machine that fails * to do the reset here would then end up in no man's land. */ outb(IO_KBD + 4, 0xFE); /* <==== DEDUCE HANG HERE ==== */ DELAY(500000); /* wait 0.5 sec to see if that did it */ printf("Keyboard reset did not work, attempting CPU shutdown\n"); DELAY(1000000); /* wait 1 sec for printf to complete */ #endif (I have spattered the nice clean source with printf's and DELAY's... but you get the idea). So outb(IO_KBD + 4, 0xFE) *looks* like the culprit. So anybody have any ideas why *SMP* is triggering this? Or why it is happening anyway? cheers Mark P.S : Funnily enough, searching about I found cases where Windoze SMP boxes would not reboot *unless* USB was disabled... Mark Kirkwood wrote: > Looks like I have false alarmed everybody :-( I must have changed > something in my BIOS setup since I last (tried to) reboot, because now > 5.4-RELEASE (SMP) reboots ok, and I have made no changes there. > > I will look around and try to see what it is (a quick glance suggests I > have USB enabled now, whereas it may have been disabled before). >