Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Nov 2002 00:20:56 +0100
From:      "Patrick Bihan-Faou" <patrick@mindstep.com>
To:        <freebsd-stable@freebsd.org>
Cc:        "Glenn Dawson" <glenn@antimatter.net>, <andris@multicom.lv>
Subject:   RE: ad0: READ command timeout
Message-ID:  <DBEFLLCPEGLPEAGOPLIHEEEEENAA.patrick@mindstep.com>
In-Reply-To: <5.2.0.9.2.20021126012746.0249bcc0@199.184.188.23>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I have had the same problem on the same machine. The issue is that FreeBSD
does not detect the ATA driver on this chipset properly. I have send a very
simple patch that fixes the symptoms and make the system work, however it is
not in the 4.7 release.

There is a workaround, which is to disable the DMA features in the BIOS. You
will not get top performance out of your disk, but you will be able to
install. Once you have the system installed, you can patch the kernel source
as indicated in the PR and re-enable all the IDE features from the BIOS.

Soeren Schmidt is apparently working on a more complete fix, so keep an eye
on commits on the files touch by my patch:

/usr/src/sys/dev/ata/ata-pci.c
/usr/src/sys/dev/ata/ata-dma.c

The PR in question is: kern/43345
http://www.freebsd.org/cgi/query-pr.cgi?pr=43345


Good luck!

Patrick.

> -----Original Message-----
> From: owner-freebsd-stable@FreeBSD.ORG
> [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Glenn Dawson
> Sent: 26 novembre, 2002 11:02
> To: freebsd-stable@freebsd.org
> Subject: ad0: READ command timeout
>
>
> I just put together a new system using a Shuttle SS51G with a P4 2.53GHz,
> 512MB RAM, and a 80GB Maxtor UATA133 HD (DiamondMax Plus 9).
>
> Booting from the 4.7 install CD the system would hang with the following
> message:
>
> ad0: READ command timeout tag=0 serv=0 - resetting
> ata0: resetting devices ..
>
> I manually set hw.ata.ata_dma=0 and was able to boot and install 4.7.
>
> I cvsuped to the latest -STABLE but booting with hw.ata.ata_dma=1 still
> hangs the system with the same message.  Disabling UDMA in the BIOS will
> also allow the system to boot.
>
> I searched the mailing list archives, but couldn't find anything that
> looked relevant (other than setting hw.ata.ata_dma=0).
>
> Any help would be greatly appreciated.  If I need to provide more info,
> just let me know what to provide.  Below is dmesg output (with a GENERIC
> kernel) and uname -a output. (the dates are wrong as I had not
> yet set the
> clock)
>
> -Glenn
>
> cube# uname -a
> FreeBSD cube 4.7-STABLE FreeBSD 4.7-STABLE #0: Thu Nov 14 01:31:24 GMT
> 2002     root@cube:/usr/obj/usr/src/sys/GENERIC  i386
>
> cube# dmesg
> Copyright (c) 1992-2002 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.7-STABLE #0: Thu Nov 14 01:31:24 GMT 2002
>      root@cube:/usr/obj/usr/src/sys/GENERIC
> Timecounter "i8254"  frequency 1193182 Hz
> CPU: Pentium 4 (2526.15-MHz 686-class CPU)
>    Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
>
> Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MT
> RR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,<b
> 28>,ACC,<b31>>
> real memory  = 503250944 (491456K bytes)
> avail memory = 484376576 (473024K bytes)
> Preloaded elf kernel "kernel" at 0xc0514000.
> Pentium Pro MTRR support enabled
> md0: Malloc disk
> Using $PIR table, 5 entries at 0xc00fde80
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <Host to PCI bridge> on motherboard
> pci0: <PCI bus> on pcib0
> pcib2: <PCI to PCI bridge (vendor=1039 device=0001)> at device 1.0 on pci0
> pci1: <PCI bus> on pcib2
> pci1: <SiS model 6325 VGA-compatible display device> at 0.0 irq 11
> isab0: <SiS 85c503 PCI-ISA bridge> at device 2.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <SiS 5591 ATA33 controller> port
> 0x4000-0x400f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 irq 11 at
> device 2.5 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> pci0: <unknown card> (vendor=0x1039, dev=0x7012) at 2.7 irq 10
> ohci0: <SiS 5571 USB controller> mem 0xe0100000-0xe0100fff irq 5
> at device
> 3.0 on pci0
> usb0: OHCI version 1.0, legacy support
> usb0: <SiS 5571 USB controller> on ohci0
> usb0: USB revision 1.0
> uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> ohci1: <SiS 5571 USB controller> mem 0xe0101000-0xe0101fff irq 10
> at device
> 3.1 on pci0
> usb1: OHCI version 1.0, legacy support
> usb1: <SiS 5571 USB controller> on ohci1
> usb1: USB revision 1.0
> uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> ohci2: <SiS 5571 USB controller> mem 0xe0102000-0xe0102fff irq 11
> at device
> 3.2 on pci0
> usb2: OHCI version 1.0, legacy support
> usb2: <SiS 5571 USB controller> on ohci2
> usb2: USB revision 1.0
> uhub2: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> pci0: <USB controller> at 3.3 irq 9
> rl0: <RealTek 8139 10/100BaseTX> port 0xbc00-0xbcff mem
> 0xe0104000-0xe01040ff irq 10 at device 15.0 on pci0
> rl0: Ethernet address: 00:30:1b:ab:5d:03
> miibus0: <MII bus> on rl0
> rlphy0: <RealTek internal media interface> on miibus0
> rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> pci0: <unknown card> (vendor=0x1106, dev=0x3044) at 16.0 irq 5
> pcib1: <SiS 5591 host to AGP bridge> on motherboard
> pci2: <PCI bus> on pcib1
> orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
> fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
> atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
> atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> 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> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> 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: Generic chipset (NIBBLE-only) in COMPATIBLE mode
> plip0: <PLIP network interface> on ppbus0
> lpt0: <Printer> on ppbus0
> lpt0: Interrupt-driven port
> ppi0: <Parallel I/O> on ppbus0
> ad0: 78167MB <Maxtor 6Y080L0> [158816/16/63] at ata0-master WDMA2
> Mounting root from ufs:/dev/ad0s1a
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message


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




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