From owner-freebsd-bugs Sun Jan 17 23:30:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA02559 for freebsd-bugs-outgoing; Sun, 17 Jan 1999 23:30:05 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA02492 for ; Sun, 17 Jan 1999 23:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id XAA24805; Sun, 17 Jan 1999 23:30:01 -0800 (PST) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA01751 for ; Sun, 17 Jan 1999 23:21:40 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id RAA26119 for ; Mon, 18 Jan 1999 17:51:34 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.2/8.9.0) id RAA00851; Mon, 18 Jan 1999 17:51:33 +1030 (CST) Message-Id: <199901180721.RAA00851@freebie.lemis.com> Date: Mon, 18 Jan 1999 17:51:33 +1030 (CST) From: Greg Lehey Reply-To: grog@lemis.com To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/9550: Latest -current has problems with UDMA IDE drives with SiS chipsets Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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 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: rev 0x02 on pci0.0.0 ide_pci0: rev 0xd0 int a irq 14 on pci0.0.1 chip1: rev 0x01 on pci0.1.0 chip2: rev 0x00 on pci0.2.0 ahc0: rev 0x03 int a irq 11 on pci0.9.0 ahc0: aic7870 Single Channel A, SCSI Id=7, 16/255 SCBs vga0: rev 0x01 int a irq 10 on pci0.10.0 vga1: rev 0x09 on pci0.11.0 ed2: 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): , 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): , 32-bit, multi-block-16 wd2: 6197MB (12692736 sectors), 12592 cyls, 16 heads, 63 S/T, 512 B/S wdc1: unit 1 (wd3): , 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: 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: 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: Removable Sequential Access SCSI-CCS device sa2: 3.300MB/s transfers pass4 at ahc0 bus 0 target 4 lun 1 pass4: Removable Changer SCSI-2 device pass4: 5.0MB/s transfers (5.0MHz, offset 15) da1 at ahc0 bus 0 target 2 lun 0 da1: 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: 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