Bug 24320

Summary: DMA doesn't work with Alladain V and K6-2
Product: Base System Reporter: h-hoshi <h-hoshi>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.2-STABLE   
Hardware: Any   
OS: Any   

Description h-hoshi 2001-01-14 08:30:01 UTC
When DMA enabled ,my machine fails to read ata disk with dma mode on
startup, and fallback to PIO mode.
After falling back to PIO mode, the machine works fine .

How-To-Repeat: Boot with ATA-DMA enabled KERNEL.
Comment 1 sos 2001-01-14 09:25:41 UTC
It seems h-hoshi@venus.dti.ne.jp wrote:

I did a fix that has been committed to -current, MFC will follow
shortly...

> 
> >Number:         24320
> >Category:       kern
> >Synopsis:       DMA doesn't work with Alladain V and K6-2
> >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 14 00:30:01 PST 2001
> >Closed-Date:
> >Last-Modified:
> >Originator:     HOSHIMOTO, Hiroyuki
> >Release:        4.2-STABLE
> >Organization:
> The University of Tokyo Hospital.
> >Environment:
> %uname -a
> FreeBSD neko.funyafunya.com 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Jan 10 22:00:2
> 5 JST 2001     mizuho@neko.funyafunya.com:/usr/src/sys/compile/NEKO  i386
> %
> 
> %dmesg
> 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: Wed Jan 10 22:00:25 JST 2001
>     mizuho@neko.funyafunya.com:/usr/src/sys/compile/NEKO
> Timecounter "i8254"  frequency 1193182 Hz
> CPU: AMD-K6(tm) 3D processor (350.80-MHz 586-class CPU)
>   Origin = "AuthenticAMD"  Id = 0x580  Stepping = 0
>   Features=0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
>   AMD Features=0x80000800<SYSCALL,3DNow!>
> real memory  = 134217728 (131072K bytes)
> avail memory = 127520768 (124532K bytes)
> Preloaded elf kernel "kernel" at 0xc0321000.
> md0: Malloc disk
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <AcerLabs M1541 (Aladdin-V) PCI host bridge> on motherboard
> pci0: <PCI bus> on pcib0
> pcib1: <AcerLabs M5243 PCI-PCI bridge> at device 1.0 on pci0
> pci1: <PCI bus> on pcib1
> ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem 0xebfef000-0xebfeffff irq
>  10 at device 2.0 on pci0
> usb0: OHCI version 1.0, legacy support
> usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0
> usb0: USB revision 1.0
> uhub0: AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> chip1: <AcerLabs M15x3 Power Management Unit> at device 3.0 on pci0
> isab0: <AcerLabs M1533 portable PCI-ISA bridge> at device 7.0 on pci0
> isa0: <ISA bus> on isab0
> xl0: <3Com 3c905-TX Fast Etherlink XL> port 0xdf00-0xdf3f irq 9 at device 14.0 o
> n pci0
> xl0: Ethernet address: 00:60:97:77:ef:41
> miibus0: <MII bus> on xl0
> nsphy0: <DP83840 10/100 media interface> on miibus0
> nsphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> atapci0: <AcerLabs Aladdin ATA33 controller> port 0xffa0-0xffaf irq 0 at device
> 15.0 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> pci0: <3Dfx Voodoo graphics accelerator> at 16.0
> pci0: <S3 Trio 64V2/DX/GX graphics accelerator> at 18.0 irq 11
> pci0: <unknown card> (vendor=0x1092, dev=0x9999) at 20.0 irq 5
> 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> flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: model IntelliMouse, device ID 3
> 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 (EPP/NIBBLE) in COMPATIBLE mode
> ppbus0: IEEE1284 device found /NIBBLE/ECP
> Probing for PnP devices on ppbus0:
> ppbus0: <HEWLETT-PACKARD DESKJET 955C> MLC,PCL,PML
> plip0: <PLIP network interface> on ppbus0
> lpt0: <Printer> on ppbus0
> lpt0: Interrupt-driven port
> ppi0: <Parallel I/O> on ppbus0
> ad0: 6149MB <QUANTUM FIREBALL EX6.4A> [13328/15/63] at ata0-master UDMA33
> ad1: 1549MB <WDC AC21600H> [3148/16/63] at ata0-slave WDMA2
> ata1-master: Aladdin: two atapi devices on this channel, no DMA
> acd0: CDROM <CD-ROM 36X/AKU> at ata1-master using PIO4
> ata1-slave: Aladdin: two atapi devices on this channel, no DMA
> afd0: 96MB <IOMEGA ZIP 100 ATAPI> [96/64/32] at ata1-slave using PIO0
> Mounting root from ufs:/dev/ad0s2a
> ad0: READ command timeout tag=0 serv=0 - resetting
> ata0: resetting devices .. done
> ad0: READ command timeout tag=0 serv=0 - resetting
> ata0: resetting devices .. done
> ad0: READ command timeout tag=0 serv=0 - resetting
> ata0: resetting devices .. done
> ad0: READ command timeout tag=0 serv=0 - resetting
> ad0: trying fallback to PIO mode
> ata0: resetting devices .. done
> %
> >Description:
> When DMA enabled ,my machine fails to read ata disk with dma mode on
> startup, and fallback to PIO mode.
> After falling back to PIO mode, the machine works fine .
> 
> >How-To-Repeat:
> Boot with ATA-DMA enabled KERNEL.
> 
> >Fix:
> 
> 
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-bugs" in the body of the message
> 


-Søren
Comment 2 Søren Schmidt freebsd_committer freebsd_triage 2001-05-30 10:40:03 UTC
State Changed
From-To: open->closed

This is fixed in 4.3