From owner-freebsd-alpha Mon Sep 20 7: 3:31 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from burka.carrier.kiev.ua (burka.carrier.kiev.ua [193.193.193.107]) by hub.freebsd.org (Postfix) with ESMTP id 027BA1504A for ; Mon, 20 Sep 1999 07:03:13 -0700 (PDT) (envelope-from netch@lucky.net) Received: (from netch@localhost) by burka.carrier.kiev.ua (8.Who.Cares/Guinness_Is_Better) id RAA11510; Mon, 20 Sep 1999 17:03:11 +0300 (EEST) (envelope-from netch) Date: Mon, 20 Sep 1999 17:03:11 +0300 From: Valentin Nechayev To: freebsd-alpha@freebsd.org Subject: timer bad Message-ID: <19990920170311.J8323@lucky.net> Reply-To: netch@lucky.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.1i X-42: On Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org System: 3.3-release on AlphaPC 164SX (SRM V5.3-3). On startup, kernel writes: Timecounter "alpha" frequency 391549955 Hz (real values on a series of successive boots was: 342MHz, 339MHz, 336MHz, 333MHz; after poweroff and poweron: 421MHz, 391MHz). Real speed is ~533 MHz, and hence kernel time speed on the last startup, when 391MHz was detected, was 136% of true one (tested with ntpdate). With 3.2-RELEASE, detection is true (531...MHz). I fixed it by disabling calibrate_clocks() of sys/alpha/alpha/clock.c: ==={ --- clock.c.orig Mon Sep 20 16:58:07 1999 +++ clock.c Mon Sep 20 16:37:43 1999 @@ -126,7 +126,9 @@ if (clockdev) panic("clockattach: multiple clocks"); clockdev = dev; +#if 0 cycles_per_sec = calibrate_clocks(cycles_per_sec); +#endif #ifdef EVCNT_COUNTERS evcnt_attach(dev, "intr", &clock_intr_evcnt); #endif ===} and now timer works normally. Is it hardware, firmware or software problem, and how to fix it? Dmesg output attached: ==={ /var/run/dmesg.boot WARNING: 8192 bytes not available for msgbuf in last cluster (81920 used) Unrecognized boot flag '-'. Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.3-STABLE #4: Mon Sep 20 16:37:57 EEST 1999 root@aleph.carrier.kiev.ua:/var/src/sys/compile/bull1 EB164 Digital AlphaPC 164SX 533 MHz, 531MHz 8192 byte page size, 1 processor. CPU: PCA56 (21164PC) major=9 minor=2 extensions=0x1 OSF PAL rev: 0x1000600020116 real memory = 132268032 (129168K bytes) avail memory = 123437056 (120544K bytes) Preloaded elf kernel "kernel" at 0xfffffc000061c000. cia0: <2117x PCI adapter> cia0: Pyxis, pass 1 cia0: extended capabilities: 1 isa0 Probing for devices on PCI bus 0: de0: rev 0x41 int a irq 9 on pci0.5.0 de0: 21143 [10-100Mb/s] pass 4.1 de0: address 00:80:48:cd:63:0a vga0: rev 0x00 int a irq 10 on pci0.7.0 chip0: rev 0x00 on pci0.8.0 ncr0: rev 0x03 int a irq 8 on pci0.9.0 mcclock0: at port 0x70-0x71 on isa0 sio0 at port 0x3f8-0x3ff irq 4 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A atkbdc0: at port 0x60 on isa0 atkbd0: on atkbdc0 psm0: on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 vga0: on isa0 sc0: on isa0 sc0: VGA color <16 virtual consoles, flags=0x0> struct nfssvc_sock bloated (> 256bytes) Try reducing NFS_UIDHASHSIZ struct nfsuid bloated (> 128bytes) Try unionizing the nu_nickname and nu_flag fields Timecounter "alpha" frequency 531914893 Hz IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to accept, unlimited logging DUMMYNET initialized (990504) Waiting 5 seconds for SCSI devices to settle de0: enabling 10baseT port cd0 at ncr0 bus 0 target 3 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 10.000MB/s transfers (10.000MHz, offset 8) cd0: Attempt to query device size failed: NOT READY, Medium not present da0 at ncr0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) da0: 4134MB (8467200 512 byte sectors: 255H 63S/T 527C) ===} -- Netch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message