From owner-freebsd-bugs Thu Jun 22 14:54:29 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id OAA27708 for bugs-outgoing; Thu, 22 Jun 1995 14:54:29 -0700 Received: from gndrsh.aac.dev.com (gndrsh.aac.dev.com [198.145.92.241]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id OAA27698 for ; Thu, 22 Jun 1995 14:54:26 -0700 Received: (from rgrimes@localhost) by gndrsh.aac.dev.com (8.6.11/8.6.9) id OAA08312; Thu, 22 Jun 1995 14:54:16 -0700 From: "Rodney W. Grimes" Message-Id: <199506222154.OAA08312@gndrsh.aac.dev.com> Subject: Re: i386/541: Alternate Reset method by unmapping ALSO broken To: regnauld@tetard.frmug.fr.net Date: Thu, 22 Jun 1995 14:54:16 -0700 (PDT) Cc: freebsd-bugs@freefall.cdrom.com In-Reply-To: <199506222140.OAA27154@freefall.cdrom.com> from "regnauld@tetard.frmug.fr.net" at Jun 22, 95 02:40:01 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 2884 Sender: bugs-owner@FreeBSD.org Precedence: bulk > Attempting to debug this piece of code with printf's is futile!! You need to either use an Intel ICE emulator or use inline asm outb's to a latch port with LED's on it. Attempting to call printf ofter an unmap of the address space usually sends you to never never land. Put the code back to the stock code and try just the option to not use the keyboard reset. Your printfs may be causing more problems. If this still fails let me know..., it means you have 2 bugs, a broken keyboard controller, and a motherboard that does not correctly detect a CPU shutdown condition. Not that uncommon in the high volume low dollar VLB ISA motherboard market :-(. The real sad news is I don't have another alternative at this time to try to make the thing report, perhaps it has the port 92 alternate reset logic. > > >Number: 541 > >Category: i386 > >Synopsis: Alternate Reset method by unmapping ALSO broken > >Confidential: no > >Severity: critical > >Priority: high > >Responsible: freebsd-bugs (FreeBSD bugs mailing list) > >State: open > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu Jun 22 14:40:01 1995 > >Originator: Philippe Regnauld > >Organization: > >Release: FreeBSD 2.0-BUILT-19950615 i386 > >Environment: > > - 486 DX 2/80 (*Processor is AMD*) > - Motherboard is 30pin/72pin RAM 486 VLB Isa > (keyboard controller could not be located) > - FreeBSD 2.0.5 current > > >Description: > > Keyboard Reset supposedly bogus, and shutdown -r or reboot > systematically produces: > > Keyboard reset did not work, attempting CPU shutdown > > ... and then the system hangs. > > I've tried localizing the problem by inserting visual checkpoints > in /sys/i386/i386/vm_machdep.c (line 786+) > > ---- > > /* force a shutdown by unmapping entire address space ! */ > -> printf("Unmapping address space:"); > bzero((caddr_t) PTD, NBPG); > -> printf(" Done.\n"); > > /* "good night, sweet prince .... " */ > -> printf("Pmap Update:"); > pmap_update(); > -> printf(" Done.\n"); > > /* NOTREACHED */ > while(1); > > --- > > After recompiling a kernel and booting it, the result is this: > > Keyboard reset did not work, attempting CPU shutdown > Unmapping address space: > > ... and nothing more. > > Obviously bzero((caddr_t) PTD, NBPG) never makes it... > (Pretty annoying, as I can't be away long if it crashes and > attempts to reboot while I'm not around (like this summer...)) > > >How-To-Repeat: > > # shutdown -r now > or > # reboot > > > >Fix: > > Unknown. > > >Audit-Trail: > >Unformatted: > > > -- Rod Grimes rgrimes@gndrsh.aac.dev.com Accurate Automation Company Reliable computers for FreeBSD