Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 1999 19:50:05 -0800 (PST)
From:      abc@firehouse.net
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/12022: System clock timewarps
Message-ID:  <199912170350.TAA83739@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/12022; it has been noted by GNATS.

From: abc@firehouse.net
To: FreeBSD-gnats-submit@freebsd.org
Cc:  
Subject: Re: kern/12022: System clock timewarps
Date: Thu, 16 Dec 1999 22:41:16 -0500 (EST)

 >Submitter-Id:   current-users
 >Originator:     Alan Clegg
 >Organization:   Firehouse Network Consulting
 >Confidential:   no
 >Synopsis:       Clock warp semi-fix
 >Severity:       serious
 >Priority:       high
 >Category:       i386
 >Release:        FreeBSD 3.4-RC i386
 >Class:          sw-bug
 >Environment: 
 
 	Winbook XL2 500Mhz Celeron laptop
 
 >Description: 
 
 	Timewarp of over 6 seconds per minute (losing 6 seconds)
 
 >How-To-Repeat: 
 
 	enable kernel APM, watch clock skew so badly that nothing
 	can bring it back.
 
 >Fix: 
 
 	Since I don't have the option of turning off APM (no BIOS
 	options), and I really like being able to watch the status
 	of my batteries, I need both clock _AND_ apm.
 	
 	I enable use of TSC even if there is APM.  While this may
 	act funky on certain systems, it sure did fix the problem
 	here.  Might we add another OPTION to allow use of tsc
 	even if there is APM for those systems where it actually
 	works?
 
 	Change of (around 824 of /sys/i386/isa/clock.c):
 
 ---------------
         if (apm_version != APMINI_CANTFIND)
 +#if defined(APM_TSC_OK)
 +               printf("APM BIOS found but using tsc anyway\n");
 +else
                 return;
 +#endif /* !defined(APM_TSC_OK) */
  #endif /* NAPM > 0 */
 ---------------
 
 	with the addition of:
 
 options	APM_TSC_OK
 
 	to my config file allows me to override code to override
 	broken BIOS.  8-)
 
 AlanC
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912170350.TAA83739>