Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Aug 2003 22:27:27 -0400
From:      Anish Mistry <mistry.7@osu.edu>
To:        freebsd-current@freebsd.org
Subject:   ATAng no PIO fallback?
Message-ID:  <200308262227.46391.mistry.7@osu.edu>

next in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

After removing atapicam from my kernel, so no panics on boot I decided to s=
ee=20
it DMA was fixed for my CD/DVD combo drive.  I changed the=20
hw.ata.atapi_dma=3D"0"
to hw.ata.atapi_dma=3D"1" in my /boot/loader.conf.  After a reboot I tried =
to=20
access my cdrom drive, and got the following error messages, which is very=
=20
similar to the messages when trying to dma before ATAng:
Aug 26 22:09:34 littleguy kernel: acd0: WARNING - READ_CD recovered from=20
missing interrupt
Aug 26 22:09:34 littleguy kernel: acd0: WARNING - READ_CD UDMA ICRC error=20
(retrying request)

The problem is that before with DMA enabled it would try dma a few times fa=
il,=20
and then fall back to PIO, whcih though annoying still left the drive in a=
=20
useable condition.  Where as now the drive just stays stuck and unusable.

=2D --- dmesg ---
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.
=46reeBSD 5.1-CURRENT #9: Tue Aug 26 21:12:34 EDT 2003
    amistry@littleguy.am-productions.biz:/usr/obj/usr/src/sys/LITTLEGUY
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0415000.
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0415244.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Transmeta(tm) Crusoe(tm) Processor TM5800 (816.37-MHz 586-class CPU)
  Origin =3D "GenuineTMx86"  Id =3D 0x543
real memory  =3D 251527168 (239 MB)
avail memory =3D 239788032 (228 MB)
npx0: <math processor> on motherboard
npx0: INT 16 interface
acpi0: <FUJ    PAULING2> on motherboard
pcibios: BIOS version 2.10
Using $PIR table, 9 entries at 0xc00fdf30
acpi0: power button is handled as a fixed feature programming model.
Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xff08-0xff0b on acpi0
acpi_cpu0: <CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib0: slot 2 INTA is routed to irq 11
pcib0: slot 4 INTA is routed to irq 9
pcib0: slot 12 INTA is routed to irq 9
pcib0: slot 16 INTA is routed to irq 9
pcib0: slot 19 INTA is routed to irq 9
pcib0: slot 20 INTA is routed to irq 9
pci0: <memory, RAM> at device 0.1 (no driver attached)
pci0: <memory, RAM> at device 0.2 (no driver attached)
pci0: <serial bus, USB> at device 2.0 (no driver attached)
pci0: <multimedia, audio> at device 4.0 (no driver attached)
pci0: <bridge, PCI-unknown> at device 6.0 (no driver attached)
isab0: <PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
pci0: <bridge, PCI-CardBus> at device 12.0 (no driver attached)
atapci0: <AcerLabs Aladdin UDMA66 controller> port 0x1400-0x140f at device=
=20
15.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
rl0: <RealTek 8139 10/100BaseTX, rev. C> port 0x8000-0x80ff mem=20
0xfc102000-0xfc1020ff irq 9 at device 16.0 on pci0
rl0: Ethernet address: 00:e0:00:ae:45:08
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <serial bus, FireWire> at device 19.0 (no driver attached)
pci0: <display, VGA> at device 20.0 (no driver attached)
acpi_button0: <Power Button> on acpi0
acpi_acad0: <AC adapter> on acpi0
acpi_cmbat0: <Control method Battery> on acpi0
acpi_cmbat1: <Control method Battery> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
acpi_ec0: <embedded controller: GPE 0> port 0x66,0x62 on acpi0
orm0: <Option ROMs> at iomem 0xd0000-0xd0fff,0xc0000-0xcffff on isa0
pmtimer0 on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 816368614 Hz quality 800
Timecounters tick every 10.000 msec
acpi_cpu0: set speed to 100.0%
acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
acpi_acad0: acline initialization start
acpi_acad0: On Line
acpi_acad0: acline initialization done, tried 1 times
acpi_cmbat0: battery initialization start
acpi_cmbat0: battery initialization done, tried 1 times
acpi_cmbat1: battery initialization start
ad0: 19077MB <TOSHIBA MK2018GAP> [38760/16/63] at ata0-master UDMA66
acd0: CDRW <TOSHIBA DVD-ROM SD-R2212> at ata1-master UDMA33
Mounting root from ufs:/dev/ad0s2a
acpi_cmbat1: battery initialization failed, giving up
acd0: WARNING - READ_CD recovered from missing interrupt
acd0: WARNING - READ_CD UDMA ICRC error (retrying request)
=2D --- pciconfi -lv ---
hostb0@pci0:0:0:	class=3D0x060000 card=3D0x110e10cf chip=3D0x03951279 rev=
=3D0x02=20
hdr=3D0x00
    vendor   =3D 'Transmeta Corp.'
    device   =3D 'LongRun Northbridge'
    class    =3D bridge
    subclass =3D HOST-PCI
none0@pci0:0:1:	class=3D0x050000 card=3D0x110e10cf chip=3D0x03961279 rev=3D=
0x00=20
hdr=3D0x00
    vendor   =3D 'Transmeta Corp.'
    device   =3D 'SDRAM Controller'
    class    =3D memory
    subclass =3D RAM
none1@pci0:0:2:	class=3D0x050000 card=3D0x110e10cf chip=3D0x03971279 rev=3D=
0x00=20
hdr=3D0x00
    vendor   =3D 'Transmeta Corp.'
    device   =3D 'BIOS scratchpad'
    class    =3D memory
    subclass =3D RAM
none2@pci0:2:0:	class=3D0x0c0310 card=3D0x10a210cf chip=3D0x523710b9 rev=3D=
0x03=20
hdr=3D0x00
    vendor   =3D 'Acer Labs Incorporated (ALi)'
    device   =3D 'ALI M5237 USB Host Controller'
    class    =3D serial bus
    subclass =3D USB
none3@pci0:4:0:	class=3D0x040100 card=3D0x112f10cf chip=3D0x545110b9 rev=3D=
0x01=20
hdr=3D0x00
    vendor   =3D 'Acer Labs Incorporated (ALi)'
    device   =3D 'ALI M5451 PCI AC-Link Controller Audio Device'
    class    =3D multimedia
    subclass =3D audio
none4@pci0:6:0:	class=3D0x068000 card=3D0x10a310cf chip=3D0x710110b9 rev=3D=
0x00=20
hdr=3D0x00
    vendor   =3D 'Acer Labs Incorporated (ALi)'
    device   =3D 'ALI M7101 Power Management Controller'
    class    =3D bridge
    subclass =3D PCI-unknown
isab0@pci0:7:0:	class=3D0x060100 card=3D0x153310b9 chip=3D0x153310b9 rev=3D=
0x00=20
hdr=3D0x00
    vendor   =3D 'Acer Labs Incorporated (ALi)'
    device   =3D 'ALI M1533 Aladdin IV ISA Bridge'
    class    =3D bridge
    subclass =3D PCI-ISA
none5@pci0:12:0:	class=3D0x060700 card=3D0x10c610cf chip=3D0xac50104c rev=
=3D0x01=20
hdr=3D0x02
    vendor   =3D 'Texas Instruments (TI)'
    device   =3D 'PCI1410 PC card cardBus Controller'
    class    =3D bridge
    subclass =3D PCI-CardBus
atapci0@pci0:15:0:	class=3D0x0101fa card=3D0x10a410cf chip=3D0x522910b9 rev=
=3D0xc3=20
hdr=3D0x00
    vendor   =3D 'Acer Labs Incorporated (ALi)'
    device   =3D 'M1543 Southbridge EIDE Controller'
    class    =3D mass storage
    subclass =3D ATA
rl0@pci0:16:0:	class=3D0x020000 card=3D0x111c10cf chip=3D0x813910ec rev=3D0=
x10=20
hdr=3D0x00
    vendor   =3D 'Realtek Semiconductor'
    device   =3D 'RT8139 (A/B/C/8130) Fast Ethernet Adapter'
    class    =3D network
    subclass =3D ethernet
none6@pci0:19:0:	class=3D0x0c0010 card=3D0x116210cf chip=3D0x8026104c rev=
=3D0x00=20
hdr=3D0x00
    vendor   =3D 'Texas Instruments (TI)'
    device   =3D 'TSB43AB21 1394a-2000 OHCI PHY/link-layer Controller'
    class    =3D serial bus
    subclass =3D FireWire
none7@pci0:20:0:	class=3D0x030000 card=3D0x114f10cf chip=3D0x4c521002 rev=
=3D0x64=20
hdr=3D0x00
    vendor   =3D 'ATI Technologies'
    device   =3D 'Rage P/M Mobility PCI'
    class    =3D display
    subclass =3D VGA


=2D --=20
Anish Mistry
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/TBccxqA5ziudZT0RApGDAJ0fT/IrsH6kt11xsIebakKsxciQvgCgiiMA
4Cn6FIVuTKVkrUbrjnRrPZo=3D
=3D1Jb7
=2D----END PGP SIGNATURE-----



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