Date: Sat, 28 Nov 1998 21:13:07 +0300 From: Ilya Orehov <elias@cnetworks.net> To: Brian Feldman <green@unixhelp.org> Cc: phk@FreeBSD.ORG, current@FreeBSD.ORG Subject: kern_clock.c (was: video mode switching has gone south) Message-ID: <19981128211307.A16994@cnetworks.net> In-Reply-To: <Pine.BSF.4.05.9811240700500.21608-100000@janus.syracuse.net>; from Brian Feldman on Tue, Nov 24, 1998 at 07:57:32AM -0500 References: <Pine.BSF.4.05.9811240700500.21608-100000@janus.syracuse.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE>
real memory = 33554432 (32768K bytes)
config> quit
avail memory = 30216192 (29508K bytes)
DEVFS: ready for devices
Probing for devices on PCI bus 0:
chip0: <Intel 82437VX PCI cache memory controller> rev 0x02 on pci0.0.0
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.7.0
ide_pci0: <Intel PIIX3 Bus-master IDE controller> rev 0x00 on pci0.7.1
vga0: <S3 ViRGE DX/GX graphics accelerator> 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
|
| <dmesg>
| 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<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
| 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: <Intel 82437VX PCI cache memory controller> rev 0x02 on pci0.0.0
| chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.7.0
| ide_pci0: <Intel PIIX3 Bus-master IDE controller> rev 0x00 on pci0.7.1
| vga0: <S3 ViRGE DX/GX graphics accelerator> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981128211307.A16994>
