NetBSD Problem Report #8120

Received: (qmail 17074 invoked from network); 30 Jul 1999 18:06:55 -0000
Message-Id: <199907301806.LAA04223@toblerone.pa.dec.com>
Date: Fri, 30 Jul 1999 11:06:49 -0700 (PDT)
From: Ed Gould <ed@pa.dec.com>
Reply-To: ed@pa.dec.com
To: gnats-bugs@gnats.netbsd.org
Subject: cpu_reset() is unreliable
X-Send-Pr-Version: 3.95

>Number:         8120
>Category:       port-i386
>Synopsis:       cpu_reset() is unreliable
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mycroft
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 30 11:20:01 +0000 1999
>Closed-Date:    Fri Jul 16 17:41:41 +0000 2004
>Last-Modified:  Fri Jul 16 17:41:41 +0000 2004
>Originator:     Ed Gould
>Release:        20 July 1999
>Organization:
--
Ed Gould	 Palo Alto Advanced Development	 Compaq Computer Corp.
+1 650 853 2108	 ed@pa.dec.com			 130 Lytton Avenue
		 ed.gould@compaq.com		 Palo Alto, CA 94301
>Environment:
System: NetBSD toblerone.pa.dec.com 1.4G NetBSD 1.4G (TOBLERONE) #22: Wed Jul 28 11:35:27 PDT 1999 ed@toblerone.pa.dec.com:/usr/src/current/sys/arch/i386/compile/TOBLERONE i386


>Description:
	System reboot on a Digital Celebris GL 6200 (200 MHz Pentium Pro)
	is unreliable.  The code in 1.3.2 worked well.
>How-To-Repeat:
	reboot(8) many times.  Sometimes it works, sometimes it hangs forever.
>Fix:
    The code in 1.4 is

        /*
         * Try to cause a triple fault and watchdog reset by making the IDT
         * invalid and causing a fault.
         */
        memset((caddr_t)idt, 0, NIDT * sizeof(idt[0]));
        __asm __volatile("divl %0,%1" : : "q" (0), "a" (0));

    The code in 1.3.2 that's different was

        /*
         * Try to cause a triple fault and watchdog reset by making the IDT
         * invalid and causing a fault.
         */
        bzero((caddr_t)idt, NIDT * sizeof(idt[0]));
        setregion(&region, idt, NIDT * sizeof(idt[0]) - 1);
        lidt(&region);
        __asm __volatile("divl %0,%1" : : "q" (0), "a" (0));


    If the 1.3.2 method is still valid, use it.  Otherwise, find a
    real fix.  I don't know the VM code at all, so I don't know if the
    old code will still work.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: mycroft 
State-Changed-When: Sat Jul 3 20:51:10 UTC 2004 
State-Changed-Why:  
Fixed.  I don't suppose you still have a system that exhibited this problem? 


Responsible-Changed-From-To: port-i386-maintainer->mycroft 
Responsible-Changed-By: mycroft 
Responsible-Changed-When: Sat Jul 3 20:51:10 UTC 2004 
Responsible-Changed-Why:  
. 

From: "Charles M. Hannum" <mycroft@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/8120 CVS commit: src/sys/arch/i386/i386
Date: Sat,  3 Jul 2004 21:02:09 +0000 (UTC)

 Module Name:	src
 Committed By:	mycroft
 Date:		Sat Jul  3 21:02:09 UTC 2004

 Modified Files:
 	src/sys/arch/i386/i386: machdep.c

 Log Message:
 Per PR 8120, put back the reloading of the IDT in cpu_reset().  (Presumably
 this overrides some descriptor caching in the CPU.)


 To generate a diff of this commit:
 cvs rdiff -r1.554 -r1.555 src/sys/arch/i386/i386/machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


From: Havard Eidnes <he@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/8120 CVS commit: [netbsd-2-0] src/sys/arch/i386/i386
Date: Sun,  4 Jul 2004 13:09:01 +0000 (UTC)

 Module Name:	src
 Committed By:	he
 Date:		Sun Jul  4 13:09:01 UTC 2004

 Modified Files:
 	src/sys/arch/i386/i386 [netbsd-2-0]: machdep.c

 Log Message:
 Pull up revision 1.555 (requested by mycroft in ticket #594):
   Put back the reloading of the IDT in cpu_reset().
   Presumably this overrides some descriptor caching in the CPU.
   Fixes PR#8120 (cpu_reset() is unreliable on some systems).


 To generate a diff of this commit:
 cvs rdiff -r1.552 -r1.552.2.1 src/sys/arch/i386/i386/machdep.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: feedback->closed 
State-Changed-By: mycroft 
State-Changed-When: Fri Jul 16 17:41:13 UTC 2004 
State-Changed-Why:  
Changes applied. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.