From owner-freebsd-current Tue Mar 26 2:24:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from upchuck.ugcs.caltech.edu (upchuck.ugcs.caltech.edu [131.215.43.156]) by hub.freebsd.org (Postfix) with ESMTP id 9D2D437B41B for ; Tue, 26 Mar 2002 02:24:26 -0800 (PST) Received: by upchuck.ugcs.caltech.edu (Postfix, from userid 3640) id AFC8342C8; Tue, 26 Mar 2002 02:24:25 -0800 (PST) Date: Tue, 26 Mar 2002 02:24:25 -0800 From: Jon To: Kyle Butt Cc: freebsd-current@freebsd.org Subject: Re: Superfast clock on current. Message-ID: <20020326022425.A9598@upchuck.ugcs.caltech.edu> References: <87pu1rvh7k.wl@kylebutt.dorms.usu.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <87pu1rvh7k.wl@kylebutt.dorms.usu.edu>; from kylebutt@myrealbox.com on Tue, Mar 26, 2002 at 01:58:07AM -0700 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I too have experienced this problem with -current. I'm running on a Thinkpad A21p, but with a fairly out-of-date build (September 1, 2001). This happens, I believe. because the kernel thinks the processor is running at one speed and then that speed changes to reflect different power management settings. For example, if I configure BIOS APM to clockdown the processor on battery and run full-throttle on AC power. My clock runs smoothly on battery (the condition I booted in), but when I engage the AC the clock runs a few times faster than normal. I can control this condition simply adding and removing AC power and having the BIOS APM react. It is clear: the processor speed is not held constant and this produces the behavior you mention. Some data points: Right after boot ntptimeset reports: Your clock is off by -4.4654581 seconds. (131.215.225.254) [48/47] Some minutes later: Your clock is off by -1710.9709441 seconds. (131.215.225.254) [37/36] Anyways, my dmesg is attached. -Jon --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="philemon.dmesg" Copyright (c) 1992-2001 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-CURRENT #1: Sat Sep 1 01:18:52 PDT 2001 jd@philemon.dylex.net:/usr/obj/usr/src/sys/PHILEMON Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 846865184 Hz CPU: Pentium III/Pentium III Xeon/Celeron (846.87-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x686 Stepping = 6 Features=0x383f9ff real memory = 134152192 (131008K bytes) avail memory = 125894656 (122944K bytes) Preloaded elf kernel "kernel" at 0xc0490000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc049009c. Pentium Pro MTRR support enabled Using $PIR table, 11 entries at 0xc00fdee0 npx0: on motherboard npx0: INT 16 interface pcib0: at pcibus 0 on motherboard pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 (no driver attached) pcic0: mem 0x50000000-0x50000fff irq 11 at device 2.0 on pci0 pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq] pccard0: on pcic0 pcic1: mem 0x50100000-0x50100fff irq 11 at device 2.1 on pci0 pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq] pccard1: on pcic1 fxp0: port 0x1800-0x183f mem 0xf0100000-0xf011ffff,0xf0120000-0xf0120fff irq 11 at device 3.0 on pci0 fxp0: Ethernet address 00:10:a4:8e:87:33 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto pci0: at 3.1 (no driver attached) csa0: mem 0xf0000000-0xf00fffff,0xf0122000-0xf0122fff irq 11 at device 5.0 on pci0 csa: card is Thinkpad 600X/A20/T20 pcm0: on csa0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1850-0x185f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0x1860-0x187f irq 11 at device 7.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at 7.3 (no driver attached) orm0: