From owner-freebsd-current Sat Nov 28 10:14:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA02554 for freebsd-current-outgoing; Sat, 28 Nov 1998 10:14:05 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from head.lvl.ru (head.lvl.ru [195.210.164.100]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA02531; Sat, 28 Nov 1998 10:13:58 -0800 (PST) (envelope-from elias@head.lvl.ru) Received: (from elias@localhost) by head.lvl.ru (8.8.8/8.8.8) id VAA17409; Sat, 28 Nov 1998 21:13:07 +0300 (MSK) (envelope-from elias) Message-ID: <19981128211307.A16994@cnetworks.net> Date: Sat, 28 Nov 1998 21:13:07 +0300 From: Ilya Orehov To: Brian Feldman Cc: phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: kern_clock.c (was: video mode switching has gone south) References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: ; from Brian Feldman on Tue, Nov 24, 1998 at 07:57:32AM -0500 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi! I'm another one who can report somewhat new behaviour : 1. X now starts up more slowly, with flicker. 2. usleep(s), where s=1, 10, 100, 10000 sleeps for about 1 second, regardless of argument. I think it is hardware-dependent, since on another machine (with Intel CPU) usleep() works ok. It shows up after recent commit in kern_clock.c: Edit src/sys/kern/kern_clock.c Add delta 1.85 98.11.23.09.58.53 phk Commenting out 2 lines in tco_forward() solved both problems for me. *** /sys/kern/kern_clock.c Sat Nov 28 18:13:02 1998 --- kern_clock.c.1.85 Mon Nov 23 12:58:53 1998 *************** *** 792,801 **** tco_setscales(tc); force++; } ! /* if (!force) return; ! */ tc->tc_offset_micro = (tc->tc_offset_nano / 1000) >> 32; /* Figure out the wall-clock time */ --- 792,801 ---- tco_setscales(tc); force++; } ! if (!force) return; ! tc->tc_offset_micro = (tc->tc_offset_nano / 1000) >> 32; /* Figure out the wall-clock time */ Half of my dmesg ( gee! we're both use CPUs by AMD and ViRGE): Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-CURRENT #33: Sat Nov 28 18:15:51 MSK 1998 elias@cactus.unicon.msk.su:/make/src/sys/compile/Cactus Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 99952410 Hz CPU: AMD-K5(tm) Processor (99.95-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x512 Stepping=2 Features=0x21bf real memory = 33554432 (32768K bytes) config> quit avail memory = 30216192 (29508K bytes) DEVFS: ready for devices Probing for devices on PCI bus 0: chip0: rev 0x02 on pci0.0.0 chip1: rev 0x01 on pci0.7.0 ide_pci0: rev 0x00 on pci0.7.1 vga0: rev 0x01 int a irq 11 on pci0.13.0 Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> [...] On Tue, Nov 24, 1998 at 07:57:32AM -0500, Brian Feldman wrote: | It seems (nay, it IS so) that video mode switching has gotten extremely | strange within the last few days. This is not a problem just with vidcontrol | and syscons, this affects XFree86 as well. I've got two kernels, the old one | which does not exhibit this problem, and the new one which does. | | Working: | FreeBSD 3.0-CURRENT #3: Sun Nov 22 21:45:52 EST 1998 | Broken: | FreeBSD 3.0-CURRENT #4: Mon Nov 23 20:11:02 EST 1998 | | | Copyright (c) 1992-1998 FreeBSD Inc. | Copyright (c) 1982, 1986, 1989, 1991, 1993 | The Regents of the University of California. All rights reserved. | FreeBSD 3.0-CURRENT #3: Sun Nov 22 21:45:52 EST 1998 | green@feldman.dyn.ml.org:/usr/src/sys/compile/FELDMAN | Timecounter "i8254" frequency 1193182 Hz | Timecounter "TSC" frequency 200455956 Hz | CPU: AMD-K6tm w/ multimedia extensions (200.46-MHz 586-class CPU) | Origin = "AuthenticAMD" Id = 0x561 Stepping=1 | Features=0x8001bf | real memory = 83886080 (81920K bytes) | config> quit | avail memory = 78667776 (76824K bytes) | Preloaded elf kernel "kernel.old" at 0xf0289000. | Probing for devices on PCI bus 0: | chip0: rev 0x02 on pci0.0.0 | chip1: rev 0x01 on pci0.7.0 | ide_pci0: rev 0x00 on pci0.7.1 | vga0: rev 0x01 int a irq 10 on pci0.13.0 | Probing for PnP devices: | Probing for devices on the ISA bus: | VESA: v1.2, 4096k memory, flags:0x0, mode table:0xf00c4cc2 (c0004cc2) | VESA: S3 Incorporated. 86C375/86C385 | sc0 at 0x60-0x6f irq 1 on motherboard | sc0: VGA color <16 virtual consoles, flags=0x0> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message