From nobody@FreeBSD.org  Sat Jul 27 17:01:15 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4DB0037B400
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 27 Jul 2002 17:01:15 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0F85843E4A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 27 Jul 2002 17:01:00 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g6S00nOT059899
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 27 Jul 2002 17:00:49 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g6S00n6G059898;
	Sat, 27 Jul 2002 17:00:49 -0700 (PDT)
Message-Id: <200207280000.g6S00n6G059898@www.freebsd.org>
Date: Sat, 27 Jul 2002 17:00:49 -0700 (PDT)
From: Marcin Liwinski <gospos@tekkom.pl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: time counters gives negative time, system hang-up
X-Send-Pr-Version: www-1.0

>Number:         41065
>Category:       kern
>Synopsis:       time counters gives negative time, system hang-up
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 27 17:10:01 PDT 2002
>Closed-Date:    Fri Oct 11 22:10:20 PDT 2002
>Last-Modified:  Fri Oct 11 22:20:01 PDT 2002
>Originator:     Marcin Liwinski
>Release:        4.6-stable
>Organization:
>Environment:
root@bsd /usr/src> uname -a
FreeBSD bsd.tekkom.pl 4.6-STABLE FreeBSD 4.6-STABLE #0: Tue Jul 16 02:20:49 CEST 2002     root@bsd.tekkom.pl:/usr/src/sys/compile/gospos  i386

>Description:
      i'm running setiathome on abits bp6 mainboard and 2 celerons 500. about 2 days after system reboot, kernel (i think) shows message that time counter gives a negative (micro)time for setiathome processes and then system is freezing (only asnwering for pings, about 2 hours later not responding at all).
>How-To-Repeat:
      reboot and wait about two days
>Fix:
      do not run setiathome processes or any one else wich has run time too long 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: njl 
State-Changed-When: Tue Sep 3 15:27:51 PDT 2002 
State-Changed-Why:  
The HPT366 controller on bp6 mobos has known problems.  Please disable 
dma mode and see if the problem persists.  The controller should work 
in udma33 mode but not udma66. 
Workaround: add hw.ata.ata_dma=0 to /etc/sysctl.conf 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41065 

From: Nate Lawson <nate@root.org>
To: freebsd-gnats-submit@freebsd.org
Cc: sos@freebsd.org
Subject: Re: kern/41065
Date: Tue, 3 Sep 2002 15:25:36 -0700 (PDT)

 Please try adding:
      hw.ata.ata_dma=0
 to /etc/sysctl.conf and see if this solves things.  Are your drives on the
 HPT366 controller (UDMA 66)?  This chip has known problems with running in
 ultra dma mode and should be run at UDMA 33 or PIO mode instead.
 
 -Nate
 
State-Changed-From-To: feedback->closed 
State-Changed-By: njl 
State-Changed-When: Fri Oct 11 22:08:44 PDT 2002 
State-Changed-Why:  
Workaround was successful for user. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41065 

From: Nate Lawson <nate@root.org>
To: =?iso-8859-2?Q?Marcin_Liwi=F1ski?= <gospos@tekkom.pl>
Cc: freebsd-gnats-submit@freebsd.org
Subject: RE: kern/41065: time counters gives negative time, system hang-up
Date: Fri, 11 Oct 2002 22:08:40 -0700 (PDT)

 All I know is that the HPT366 hangs and times out in UDMA66 mode but not
 UDMA33.  This may be timing dependent and adding another CPU changes the
 timing.  This is just a guess.  In any case, the workaround is sufficient
 for me to run a BP6 in -STABLE and now works for you.
 
 -Nate
 
 
 On Thu, 5 Sep 2002, [iso-8859-2] Marcin Liwiski wrote:
 > hi,
 > 
 > it works for now, but i wonder: why this problem apear just after i added
 > the second cpu ?
 > 
 > --
 > with best rgrds, GoSPoS.
 > The BOFH.
 > 
 > 
 >  > -----Original Message-----
 >  > From: Nate Lawson [mailto:njl@FreeBSD.org]
 >  > Sent: Wednesday, September 04, 2002 12:30 AM
 >  > To: gospos@tekkom.pl; njl@FreeBSD.org; freebsd-bugs@FreeBSD.org
 >  > Subject: Re: kern/41065: time counters gives negative time, system
 >  > hang-up
 >  >
 >  >
 >  > Synopsis: time counters gives negative time, system hang-up
 >  >
 >  > State-Changed-From-To: open->feedback
 >  > State-Changed-By: njl
 >  > State-Changed-When: Tue Sep 3 15:27:51 PDT 2002
 >  > State-Changed-Why:
 >  > The HPT366 controller on bp6 mobos has known problems.  Please disable
 >  > dma mode and see if the problem persists.  The controller should work
 >  > in udma33 mode but not udma66.
 >  > Workaround: add hw.ata.ata_dma=0 to /etc/sysctl.conf
 >  >
 >  > http://www.freebsd.org/cgi/query-pr.cgi?pr=41065
 >  >
 > 
 
>Unformatted:
