Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jun 1999 17:39:21 +0930 (CST)
From:      Greg Lehey <grog@lemis.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/12295: Recent -CURRENT crashes on AMD K6 system
Message-ID:  <199906190809.RAA00680@freebie.lemis.com>

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

>Number:         12295
>Category:       kern
>Synopsis:       Recent -CURRENT kernels do not survive a boot
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 19 01:10:04 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Greg Lehey
>Release:        FreeBSD-4.0-CURRENT
>Organization:
FreeBSD
>Environment:

	Copyright (c) 1992-1999 The FreeBSD Project.
	Copyright (c) 1982, 1986, 1989, 1991, 1993
		The Regents of the University of California. All rights reserved.
	FreeBSD 4.0-CURRENT #142: Wed Jun 16 14:25:38 CST 1999
	    root@freebie.lemis.com:/T/src/FREEBIE/src/sys/compile/FREEBIE
	Timecounter "i8254"  frequency 1193182 Hz
	Timecounter "TSC"  frequency 334058696 Hz
	CPU: AMD-K6(tm) 3D processor (334.06-MHz 586-class CPU)
	  Origin = "AuthenticAMD"  Id = 0x58c  Stepping=12
	  Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX>
	real memory  = 167772160 (163840K bytes)
	avail memory = 159744000 (156000K bytes)
	npx0: <math processor> on motherboard
	npx0: INT 16 interface
	pcib0: <PCI host bus adapter> on motherboard
	pci0: <PCI bus> on pcib0
	chip0: <Host to PCI bridge (vendor=1039 device=5591)> at device 0.0 on pci0
	ide_pci0: <SiS 5591 Bus-master IDE Controller> at device 0.1 on pci0
	isab0: <SiS 85c503 PCI-ISA bridge> at device 1.0 on pci0
	pcib1: <PCI to PCI bridge (vendor=1039 device=0001)> at device 2.0 on pci0
	pci1: <PCI bus> on pcib1
	ahc0: <Adaptec 2940 SCSI adapter> at device 9.0 on pci0
	ahc0: aic7870 Single Channel A, SCSI Id=7, 16/255 SCBs
	ahc0: interrupting at irq 11
	ed0: <NE2000 PCI Ethernet (Compex)> at device 12.0 on pci0
	ed0: address 00:80:48:e6:a0:61, type NE2000 (16 bit) 
	ed0: interrupting at irq 10
	eisa0: <EISA bus> on motherboard
	devclass_alloc_unit: npx0 already exists, using next available unit number
	devclass_alloc_unit: ed0 already exists, using next available unit number
	devclass_alloc_unit: ed1 already exists, using next available unit number
	isa0: <ISA bus> on motherboard
	fdc0: interrupting at irq 6
	fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
	fdc0: FIFO enabled, 8 bytes threshold
	fd0: <1440-KB 3.5" drive> at fdc0 drive 0
	wdc0 at port 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa0
	wdc0: unit 0 (wd0): <ST51270A>, DMA, 32-bit, multi-block-32
	wd0: 1223MB (2504880 sectors), 2485 cyls, 16 heads, 63 S/T, 512 B/S
	wdc0: interrupting at irq 14
	wdc1 at port 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa0
	wdc1: unit 0 (wd2): <IBM-DHEA-36480>, DMA, 32-bit, multi-block-16
	wd2: 6197MB (12692736 sectors), 12592 cyls, 16 heads, 63 S/T, 512 B/S
	wdc1: unit 1 (wd3): <IBM-DHEA-38451>, DMA, 32-bit, multi-block-16
	wd3: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S
	wdc1: interrupting at irq 15
	atkbdc0: <keyboard controller (i8042)> at port 0x60 on isa0
	WARNING: Update your atkbdc config!
	psm0: <PS/2 Mouse> on atkbdc0
	psm0: model MouseMan+, device ID 0
	psm0: interrupting at irq 12
	atkbd0: <AT Keyboard> on atkbdc0
	atkbd0: interrupting at irq 1
	vga0: <Generic ISA VGA> on isa0
	sc0: <System console> on isa0
	sc0: VGA color <16 virtual consoles, flags=0x0>
	sio0 at port 0x3f8-0x3ff irq 4 on isa0
	sio0: type 16550A
	sio0: interrupting at irq 4
	sio1 at port 0x2f8-0x2ff irq 3 on isa0
	sio1: type 16550A
	sio1: interrupting at irq 3
	sio2 at port 0x3e8-0x3ef irq 5 on isa0
	sio2: type 16550A
	sio2: interrupting at irq 5
	ppc0 at port 0x378-0x37f irq 7 on isa0
	ppc0: W83877F chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
	ppc0: FIFO with 16/16/16 bytes threshold
	plip0: <PLIP network interface> on ppbus 0
	lpt0: <generic printer> on ppbus 0
	lpt0: Interrupt-driven port
	ppi0: <generic parallel i/o> on ppbus 0
	ppc0: interrupting at irq 7
	isa_compat: didn't get irq for ed
	Waiting 3 seconds for SCSI devices to settle
	sa0 at ahc0 bus 0 target 3 lun 0
	sa0: <Quantum DLT4000 CC1E> Removable Sequential Access SCSI-2 device 
	sa0: 10.000MB/s transfers (10.000MHz, offset 15)
	sa1 at ahc0 bus 0 target 4 lun 0
	sa1: <ARCHIVE 4586XX 28887-XXX 0420> Removable Sequential Access SCSI-2 device 
	sa1: 5.000MB/s transfers (5.000MHz, offset 15)
	sa2 at ahc0 bus 0 target 5 lun 0
	sa2: <TANDBERG TDC 3800 -03:> Removable Sequential Access SCSI-CCS device 
	sa2: 3.300MB/s transfers
	pass4 at ahc0 bus 0 target 4 lun 1
	pass4: <ARCHIVE 4586XX 28887-XXX 0420> Removable Changer SCSI-2 device 
	pass4: 5.000MB/s transfers (5.000MHz, offset 15)
	da1 at ahc0 bus 0 target 2 lun 0
	da1: <CONNER CFP4207S  4.28GB 2847> Fixed Direct Access SCSI-2 device 
	da1: 3.300MB/s transfers, Tagged Queueing Enabled
	da1: 4096MB (8388608 512 byte sectors: 64H 32S/T 4096C)
	cd0 at ahc0 bus 0 target 6 lun 0
	cd0: <NRC MBR-7 110> Removable CD-ROM SCSI-2 device 
	cd0: 3.300MB/s transfers
	cd0: cd present [322265 x 2048 byte records]
	changing root device to wd0s1a
	da0 at ahc0 bus 0 target 0 lun 0
	da0: <IBM DORS-32160 WA0A> Fixed Direct Access SCSI-2 device 
	da0: 10.000MB/s transfers (10.000MHz, offset 15), Tagged Queueing Enabled
	da0: 2063MB (4226725 512 byte sectors: 64H 32S/T 2063C)
	ffs_mountfs: superblock updated for soft updates
	ffs_mountfs: superblock updated for soft updates
	cd1 at ahc0 bus 0 target 6 lun 1
	cd1: <NRC MBR-7 110> Removable CD-ROM SCSI-2 device 
	cd1: 3.300MB/s transfers
	cd1: cd present [248494 x 2048 byte records]

>Description:

	This system has been running the version of -CURRENT shown for
	about three months (the sources had not been updated since
	mid-March).  After upgrading to the most recent -CURRENT, it
	was no longer possible to boot the machine.  

	On the first occasion, the boot completed, but the keyboard
	did not respond.  This particular problem may be a red
	herring: the config file had been continuously updated for
	about 3 years, and may have had some cruft in there which
	caused the problem.

	After this, I built a GENERIC kernel and tried to boot it.
	The system crashed during the boot, killing the display (the
	monitor lost signal, so it wasn't just a clear screen
	function).  All attempts to build a functional kernel have
	failed.

	Finally, I tried booting the kernel from another system.  This
	kernel is -CURRENT of about 2 days ago.  It works fine on the
	other system, but it shows the same symptoms on this system.

	I really don't know what's causing this problem, but something
	seems to be pointing to the keyboard.  I have changed the
	keyboards around, and they all work fine on the other machine.

>How-To-Repeat:

	As described.

>Fix:
	
	The problem here proves to be related to the presence of an
	ATI video board: these boards are cleverly designed with I/O
	registers which conflict with sio3.  The newbus code in
	sioprobe did not check whether a serial port was enabled
	before writing to it, causing the display board to go off into
	Nirvana.  In fact, the system carried on running, sort of.

	The following modification fixes the problem:

	RCS file: /src/ncvs/src/sys/isa/sio.c,v
	retrieving revision 1.247
	diff -w -u -r1.247 sio.c
	--- sio.c       1999/06/15 22:15:10     1.247
	+++ sio.c       1999/06/19 07:47:18
	@@ -69,6 +69,7 @@
	 #include <sys/sysctl.h>
	 #include <sys/bus.h>
	 #include <machine/bus.h>
	+#include <sys/bus_private.h>
	 #include <sys/rman.h>
	 #ifdef DEVFS
	 #include <sys/devfsext.h>
	@@ -639,6 +640,7 @@
	                devclass_get_devices(sio_devclass, &devs, &count);
	                for (i = 0; i < count; i++) {
	                        xdev = devs[i];
	+                       if (xdev->flags & DF_ENABLED)
	                        outb(isa_get_port(xdev) + com_mcr, 0);
	                }
	                free(devs, M_TEMP);




>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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