ATAng no PIO fallback?

Mark Huizer freebsd at dohd.org
Thu Aug 28 09:43:29 PDT 2003


On Thu, Aug 28, 2003 at 04:47:56PM +0200, Soren Schmidt wrote:
> It seems Anish Mistry wrote:
> > > > > it DMA was fixed for my CD/DVD combo drive.  I changed the
> > > > > hw.ata.atapi_dma="0"
> > > > > to hw.ata.atapi_dma="1" in my /boot/loader.conf.  After a reboot I tried 
> > > There is no PIO fallback in ATAng (so far), if you know that your ATAPI 
> > > device doesn't do DMA why on earth do you enable it ?
> > > 
> > Because the drive does support DMA.  I've tested to see it DMA actually works 
> > in windows, PIO vs DMA while playing a DVD, and there is a big difference, 
> > and I can only assume that it works.
> 
> Hmm, I didn't hear the "works in windows" bit :)
> 
> Could you mail me a dmesg from the system, that might uncover some usefull
> info on if/how/why DMA can work on your HW..
 
For the kernel before ATAng:
   see dmesg.beforeATAng

For a small list of DMA according to Windows XP
   see dmesg.windows

I'm still looking how I can get it to boot with a kernel after ATAng.
It fails with "ad0: WARNING: READ_DMA ICRC warning" or something like
that.

Mark
-- 
Nice testing in little China...
-------------- next part --------------
Copyright (c) 1992-2003 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 5.1-CURRENT #2: Sat Aug 16 20:51:43 CEST 2003
    xaa at piglet.local.dohd.org:/usr/obj/sources/src/sys/piglet
Preloaded elf kernel "/boot/kernel.old/kernel" at 0xc080b000.
Preloaded elf module "/boot/kernel.old/acpi.ko" at 0xc080b220.
Timecounter "i8254" frequency 1193182 Hz
CPU: AMD Athlon(TM) XP1700+ (1477.36-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x662  Stepping = 2
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
  AMD Features=0xc0480000<MP,AMIE,DSP,3DNow!>
real memory  = 536788992 (511 MB)
avail memory = 512696320 (488 MB)
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <ASUS   A7V266-E> on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 10 entries at 0xc00f1480
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-fast" frequency 3579545 Hz
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0
acpi_cpu0: <CPU> port 0x530-0x537 on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 13 INTA is routed to irq 11
pcib0: slot 15 INTA is routed to irq 10
pcib0: slot 17 INTD is routed to irq 5
pcib0: slot 17 INTD is routed to irq 5
pcib0: slot 17 INTD is routed to irq 5
agp0: <VIA Generic host to PCI bridge> mem 0xfc000000-0xfdffffff at device 0.0 on pci0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pcib1: slot 0 INTA is routed to irq 11
pci1: <display, VGA> at device 0.0 (no driver attached)
fxp0: <Intel 82550 Pro/100 Ethernet> port 0xd800-0xd83f mem 0xed000000-0xed01ffff,0xed800000-0xed800fff irq 11 at device 13.0 on pci0
fxp0: Ethernet address 00:02:b3:48:51:43
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcm0: <CMedia CMI8738> port 0xd400-0xd4ff irq 10 at device 15.0 on pci0
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 8233 UDMA100 controller> port 0xd000-0xd00f at device 17.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 5 at device 17.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub0: port error, restarting port 1
uhub0: port error, giving up port 1
ulpt0: Hewlett-Packard DeskJet 3816, rev 1.10/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
uhub0: port error, restarting port 2
uhub0: port error, giving up port 2
ums0: Cypress Sem PS2/USB Browser Combo Mouse, rev 1.00/0.10, addr 3, iclass 3/1
ums0: 5 buttons and Z dir.
uhci1: <VIA 83C572 USB controller> port 0xb400-0xb41f irq 5 at device 17.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub1: port error, restarting port 1
uhub1: port error, giving up port 1
uhub2: Texas Instruments TUSB2046 hub, class 9/0, rev 1.10/1.25, addr 2
uhub2: 4 ports with 4 removable, self powered
ugen0: Hewlett-Packard HP Scanjet 5400C Series, rev 1.10/0.00, addr 3
uhub1: port error, restarting port 2
uhub1: port error, giving up port 2
uhci2: <VIA 83C572 USB controller> port 0xb000-0xb01f irq 5 at device 17.4 on pci0
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhub3: port error, restarting port 1
uhub3: port error, giving up port 1
uhub3: port error, restarting port 2
uhub3: port error, giving up port 2
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f2-0x3f5 irq 6 drq 2 on acpi0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio0: type 16550A
sio1 port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
orm0: <Option ROMs> at iomem 0xd4000-0xd57ff,0xd0000-0xd3fff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1477362825 Hz
Timecounters tick every 10.000 msec
IPsec: Initialized Security Association Processing.
acpi_cpu: throttling enabled, 16 steps (100% to 6.2%), currently 100.0%
ad0: 117246MB <Maxtor 6Y120L0> [238216/16/63] at ata0-master UDMA100
acd0: CD-RW <PHILIPS CDRW4012P> at ata1-master PIO4
acd1: DVD-ROM <TOSHIBA DVD-ROM SD-M1612> at ata1-slave PIO4
ad0: UDMA ICRC error cmd=read fsbn 0 retrying
ad0: UDMA ICRC error cmd=read fsbn 0 retrying
ad0: UDMA ICRC error cmd=read fsbn 0 retrying
ad0: UDMA ICRC error cmd=read fsbn 0 falling back to PIO mode
Mounting root from ufs:/dev/ad0s2a
-------------- next part --------------
ad0:
Ultra DMA mode 2

Philips CDRW4012P
Ultra DMA mode 2

Toshiba DVDROM SD M1612
Ultra DMA mode 2


More information about the freebsd-current mailing list