Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Sep 1999 17:03:11 +0300
From:      Valentin Nechayev <netch@lucky.net>
To:        freebsd-alpha@freebsd.org
Subject:   timer bad
Message-ID:  <19990920170311.J8323@lucky.net>

next in thread | raw e-mail | index | archive | help
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<BWX>
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<BWEN>
isa0
Probing for devices on PCI bus 0:
de0: <Digital 21143 Fast Ethernet> 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: <S3 Trio graphics accelerator> rev 0x00 int a irq 10 on pci0.7.0
chip0: <PCI to ISA bridge (vendor=1080 device=c693)> rev 0x00 on pci0.8.0
ncr0: <ncr 53c875 fast20 wide scsi> rev 0x03 int a irq 8 on pci0.9.0
mcclock0: <MC146818A real time clock> 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: <keyboard controller (i8042)> at port 0x60 on isa0
atkbd0: <AT Keyboard> on atkbdc0
psm0: <PS/2 Mouse> on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> on isa0
sc0: <System console> 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: <TOSHIBA CD-ROM XM-3801TA 0207> 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: <IBM DCAS-34330W S61A> 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




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