Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2001 20:23:27 -0500 (EST)
From:      Matt Heckaman <matt@LUCIDA.CA>
To:        FreeBSD-STABLE <freebsd-stable@freebsd.org>
Subject:   Continued timecounter problems on 4.2-STABLE
Message-ID:  <Pine.BSF.4.33.0102172013440.20259-300000@epsilon.lucida.ca>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All:

I'll start off by saying that I have read the list archives and freebsd
troubleshooting section on calcru problems, the solutions presented have
not worked in my case. I am at a total loss now.

Background:

This machine has been running for 6 months prior with no problems at all.
The problems started when I added a new video card, however that is not a
change that I can remove, it's absolutely needed for the machine.

I have increased NTIMECOUNTER in the kernel as suggested, I started with
15 and brought it up to 30 in steps of 5. This has had no affect at all, I
have also set kern.timecounter.method to 1 as recommended. This has had no
affect as well.

Interesting parts:

For some reason, the TSC is no longer seen at all! After the addition of
the video card, TSC no longer shows up in dmesg. I see this;

FreeBSD 4.2-STABLE #0: Fri Feb  9 01:40:55 EST 2001
    root@epsilon.lucida.ca:/usr/src/sys/compile/EPSILON
Timecounter "i8254"  frequency 1193182 Hz
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CPU: Pentium III/Pentium III Xeon/Celeron (548.32-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3

There should be a TSC line under that, like on this machine:

Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 400911205 Hz
CPU: Pentium II/Pentium II Xeon/Celeron (400.91-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x660  Stepping = 0


I cannot imagine what would cause TSC to go away, but it happened when I
put in the video card (PCI Voodoo 4 4500). I wont pretend to understand
how the kernel and the timecounters work on a low level, but there must be
something that I can do; other than replacing the video card, which is not
an option at all I'm afraid.

I have attached my full dmesg and kernel configuration, I would appreciate
it if anyone has any ideas, I desperately need the help. Thanks.

Matt

* Matt Heckaman   - mailto:matt@lucida.ca     http://www.lucida.ca/pgp *
* GPG fingerprint - 53CA 8320 C8F6 32ED 9DDF  036E 3171 C093 4AD3 1364 *

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: http://www.lucida.ca/pgp

iD8DBQE6jyQQMXHAk0rTE2QRAhfwAKCEJMB0jjrNMAjPUV6E47VY0/gInwCfWliN
ZWmxVY+kItLuQRBCVCPIX34=
=Pmtv
-----END PGP SIGNATURE-----


[-- Attachment #2 --]
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 4.2-STABLE #0: Fri Feb  9 01:40:55 EST 2001
    root@epsilon.lucida.ca:/usr/src/sys/compile/EPSILON
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (548.32-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x673  Stepping = 3
  Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536862720 (524280K bytes)
avail memory = 518512640 (506360K bytes)
Changing APIC ID for IO APIC #0 from 0 to 2 on chip
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "EPSILON" at 0xc032c000.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI Mach64-GW graphics accelerator> at 0.0
pcib2: <DEC 21152 PCI-PCI bridge> at device 2.0 on pci0
pci2: <PCI bus> on pcib2
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xffa0-0xffaf at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
pci0: <Intel 82371AB/EB (PIIX4) USB controller> at 7.2 irq 19
intpm0: <Intel 82371AB Power management controller> port 0x850-0x85f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 850
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus general purpose I/O> on smbus0
intpm0: PM I/O mapped 800 
ahc0: <Adaptec 2940 Ultra2 SCSI adapter> port 0xd800-0xd8ff mem 0xfc000000-0xfc000fff irq 17 at device 13.0 on pci0
aic7890/91: Wide Channel A, SCSI Id=7, 32/255 SCBs
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xdc00-0xdc7f mem 0xfc001000-0xfc00107f irq 18 at device 14.0 on pci0
xl0: Ethernet address: 00:10:4b:37:e8:75
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <3Dfx model 0009 graphics accelerator> at 16.0 irq 19
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppi0: <Parallel I/O> on ppbus0
sbc0: <Creative ViBRA16C> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
pcm0: <SB DSP 4.13> on sbc0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
IP packet filtering initialized, divert disabled, rule-based forwarding disabled, default to accept, logging disabled
SMP: AP CPU #1 Launched!
acd0: CDROM <SAMSUNG SC-140B> at ata0-master using PIO4
Waiting 2 seconds for SCSI devices to settle
Mounting root from ufs:/dev/da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: <QUANTUM ATLAS V  9 WLS 0201> Fixed Direct Access SCSI-3 device 
da0: 80.000MB/s transfers (40.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da0: 8683MB (17783249 512 byte sectors: 255H 63S/T 1106C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <QUANTUM ATLAS_V_18_WLS 0230> Fixed Direct Access SCSI-3 device 
da1: 80.000MB/s transfers (40.000MHz, offset 63, 16bit), Tagged Queueing Enabled
da1: 17510MB (35861388 512 byte sectors: 255H 63S/T 2232C)

[-- Attachment #3 --]
# EPSILON.LUCIDA.CA, 4.2 KERNEL
# Updated: 2002/02/09

machine         i386
cpu             I686_CPU
ident           EPSILON
maxusers        512
options         NMBCLUSTERS=32768
makeoptions	DEBUG=-g
makeoptions	KERNEL=EPSILON

# SMP

options         SMP                     # Symmetric MultiProcessor Kernel
options         APIC_IO                 # Symmetric (APIC) I/O

# Main Options
options         CD9660                  # ISO 9660 Filesystem
options         CD9660_ROOT             # CD-ROM usable as root. "CD9660"
options         COMPAT_43               # Compatible with BSD 4.3
options         COMPAT_LINUX            # Compatible with Linux
options         FFS                     # Berkeley Fast Filesystem
options         FFS_ROOT                # FFS usable as root device: keep this!
options         INCLUDE_CONFIG_FILE     # Include this file in the kernel
options         INET                    # InterNETworking
options         KTRACE                  # ktrace(1) syscall trace support
options         MFS                     # Memory Filesystem
options         MD_ROOT                 # MD is a potential root device
options         MSDOSFS                 # MSDOS Filesystem
options		NTIMECOUNTER=30		# For calcru problem
options         PROCFS                  # Process filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UCONSOLE                # Allow users to grab the console
options         USERCONFIG              # boot -c editor
options         VISUAL_USERCONFIG       # visual boot -c editor

# POSIX Options
options         P1003_1B
options         _KPOSIX_PRIORITY_SCHEDULING
options         _KPOSIX_VERSION=199309L

# SYSV Options
options         SYSVMSG
options         SYSVSEM
options         SYSVSHM
options		SHMSEG=100

# Firewall Options
options         IPFIREWALL
options         IPFIREWALL_DEFAULT_TO_ACCEPT

# Color Options
options		SC_NORM_ATTR="(FG_LIGHTCYAN|BG_BLACK)"
options		SC_NORM_REV_ATTR="(FG_BLACK|BG_CYAN)"
options		SC_KERNEL_CONS_ATTR="(FG_LIGHTCYAN|BG_BLACK)"
options		SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_CYAN)"

device          isa
device          eisa
device          pci

# Floppy drives
device          fdc0    at isa? port IO_FD1 irq 6 drq 2
device          fd0     at fdc0 drive 0
device          fd1     at fdc0 drive 1

# ATA and ATAPI devices
device          ata
device          ata0    at isa? port IO_WD1 irq 14
device          ata1    at isa? port IO_WD2 irq 15
device          atadisk         # ATA disk drives
device          atapicd         # ATAPI CDROM drives
device          atapifd         # ATAPI floppy drives
options         ATA_STATIC_ID	# Static device numbering

# SCSI devices
device		ahc		# AHA2940 and onboard AIC7xxx devices
device		scbus		# SCSI bus (required)
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape, etc)
device		cd		# CD
device		pass		# Passthrough device (Direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc0 at isa? port IO_KBD
device          atkbd0  at atkbdc? irq 1
device		psm0	at atkbdc? irq 12

# The video card driver.
device          vga0    at isa?

# syscons is the default console driver, resembling an SCO console
device          sc0     at isa?

# Floating point support - do not disable.
device          npx0    at nexus? port IO_NPX irq 13

# Serial (COM) ports
device          sio0    at isa? port IO_COM1 flags 0x10 irq 4
device          sio1    at isa? port IO_COM2 irq 3
device          sio2    at isa? disable port IO_COM3 irq 5
device          sio3    at isa? disable port IO_COM4 irq 9

# Parallel port
device          ppc0    at isa? irq 7
device          ppbus           # Parallel port bus (required)
device          ppi             # Parallel port interface device

# System Management Bus
device		smbus		# Bus support, required for smb below.
device		smb		# standard io through /dev/smb*
device		intpm		# Intel PIIX4 Power Management Unit

# For PnP/PCI sound cards
device          pcm

# PCI Ethernet NICs that use the common MII bus controller code.
device          miibus          # MII bus support
device          xl              # 3Com 3c90x (``Boomerang'', ``Cyclone'')

# Pseudo devices
pseudo-device   bpf      4      # Berkeley packet filter
pseudo-device   ether           # Ethernet support
pseudo-device   loop            # Network loopback
pseudo-device   pty     32      # Pseudo-ttys (telnet etc)
pseudo-device   snp      4      # "Snoop" devices.
pseudo-device   splash          # Splash screen/screen saver

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0102172013440.20259-300000>