Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 1999 17:51:33 +1030 (CST)
From:      Greg Lehey <grog@lemis.com>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/9550: Latest -current has problems with UDMA IDE drives with SiS chipsets
Message-ID:  <199901180721.RAA00851@freebie.lemis.com>

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

>Number:         9550
>Category:       kern
>Synopsis:       The latest -current as of 17 January has problems with UDMA IDE drives with SiS chipsets
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 17 23:30:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Greg Lehey
>Release:        FreeBSD-3.0 -CURRENT of 17 January 1999.  wd.c revision 1.186
>Organization:
FreeBSD
>Environment:

	i386 system with AMD K6/233 and "Rise Mustang R581A"
	motherboard (SiS 5591/5595 AGP chipset).

	FreeBSD 3.0-CURRENT #126: Mon Jan 18 17:12:22 CST 1999
	    root@freebie.lemis.com:/T/src/FREEBIE/src/sys/compile/FREEBIE
	Timecounter "i8254"  frequency 1193182 Hz
	Timecounter "TSC"  frequency 233841037 Hz
	CPU: AMD-K6tm w/ multimedia extensions (233.84-MHz 586-class CPU)
	  Origin = "AuthenticAMD"  Id = 0x562  Stepping=2
	  Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
	real memory  = 167772160 (163840K bytes)
	config> quit
	avail memory = 159813632 (156068K bytes)
	Preloaded elf kernel "kernel" at 0xf02c6000.
	Probing for devices on PCI bus 0:
	chip0: <Host to PCI bridge (vendor=1039 device=5591)> rev 0x02 on pci0.0.0
	ide_pci0: <PCI IDE controller (busmaster capable)> rev 0xd0 int a irq 14 on pci0.0.1
	chip1: <SiS 85c503> rev 0x01 on pci0.1.0
	chip2: <PCI to PCI bridge (vendor=1039 device=0001)> rev 0x00 on pci0.2.0
	ahc0: <Adaptec 2940 SCSI adapter> rev 0x03 int a irq 11 on pci0.9.0
	ahc0: aic7870 Single Channel A, SCSI Id=7, 16/255 SCBs
	vga0: <Matrox MGA 2064W graphics accelerator> rev 0x01 int a irq 10 on pci0.10.0
	vga1: <ATI Mach64-CT graphics accelerator> rev 0x09 on pci0.11.0
	ed2: <NE2000 PCI Ethernet (Compex)> rev 0x0a int a irq 10 on pci0.12.0
	ed2: address 00:80:48:e6:a0:61, type NE2000 (16 bit) 
	Probing for devices on PCI bus 1:
	Probing for devices on the ISA bus:
	sc0 on isa
	sc0: VGA color <16 virtual consoles, flags=0x0>
	ed0 not found at 0x280
	ed1 not found at 0x300
	atkbdc0 at 0x60-0x6f on motherboard
	atkbd0 irq 1 on isa
	psm0 irq 12 on isa
	psm0: model MouseMan+, device ID 0
	sio0 at 0x3f8-0x3ff irq 4 on isa
	sio0: type 16550A
	sio1 at 0x2f8-0x2ff irq 3 on isa
	sio1: type 16550A
	sio2 at 0x3e8-0x3ef irq 5 on isa
	sio2: type 16550A
	lpt0 at 0x378-0x37f irq 7 on isa
	lpt0: Interrupt-driven port
	lp0: TCP/IP capable interface
	fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
	fdc0: FIFO enabled, 8 bytes threshold
	fd0: 1.44MB 3.5in
	wdc0 at 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa
	ide_pci: generic_dmainit 01f0:0: warning, IDE controller timing not set
	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
	wdc1 at 0x170-0x177 irq 15 flags 0x80ff80ff on isa
	wdc1: unit 0 (wd2): <IBM-DHEA-36480>, 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>, 32-bit, multi-block-16
	wd3: 8063MB (16514064 sectors), 16383 cyls, 16 heads, 63 S/T, 512 B/S
	ep0 not found at 0x300
	vga0 at 0x3b0-0x3df maddr 0xa0000 msize 131072 on isa
	npx0 on motherboard
	npx0: INT 16 interface
	Waiting 3 seconds for SCSI devices to settle
	sa0 at ahc0 bus 0 target 3 lun 0
	sa0: <EXABYTE EXB-8505SMBANSH2 0793> Removable Sequential Access SCSI-2 device 
	sa0: 5.0MB/s transfers (5.0MHz, offset 11)
	sa1 at ahc0 bus 0 target 4 lun 0
	sa1: <ARCHIVE Python 28849-XXX 4.CM> Removable Sequential Access SCSI-2 device 
	sa1: 5.0MB/s transfers (5.0MHz, 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 Python 28849-XXX 4.CM> Removable Changer SCSI-2 device 
	pass4: 5.0MB/s transfers (5.0MHz, 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)
	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.0MB/s transfers (10.0MHz, offset 15), Tagged Queueing Enabled
	da0: 2063MB (4226725 512 byte sectors: 64H 32S/T 2063C)

>Description:

	On boot, during the fscks the system hangs up unable to access
	/dev/rwd2e.  After a while a timeout message appears with no
	error bits set (status 50: ready, done).  At this point the
	system freezes up and accepts no input.  It is not possible to
	enter ddb.

>How-To-Repeat:

	It's not clear how specific this problem is to the specific
	hardware.  There appear to be no problems with the primary
	controller, which may relate to the fact that it services only
	one disk.

>Fix:

	This bug is specifically DMA related.  Disabling the DMA probe
	allows it to work properly.  As such, it could be related to
	this commit to sys/i386/isa/wd.c:
	
	revision 1.186
	date: 1999/01/17 05:46:24;  author: bde;  state: Exp;  lines: +5 -3
	Pass the unit number to the DMA cookie lookup routine and use it
	to look up cookies properly, at least for standard controllers.
	Cookies are used so that we don't have to pass around lots of args.
	All of the dmainit functions use the unit number so it is essential
	that we pass them a cookie with the correct unit number.
	
	This may break working configurations if there are bugs in the
	dmainit functions like the ones I just fixed for VIA chipsets.
>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?199901180721.RAA00851>