ATAPI DVD writer wont operate in DMA mode

From: Tom Evans <tevans.uk_at_googlemail.com>
Date: Fri, 08 Jun 2007 17:21:46 +0100
Hi was hoping someone could help me get my DVD writer operating in DMA.
Trying to set the mode with atacontrol succeeds, but only sets the mode
to WDMA, which is hardly better than PIO.

I tried tracing through the DMA initialisation in sys/dev/ata/ata-pci.c,
but I got lost I'm afraid.

Here is pertinent information:

uname -a:
  FreeBSD zoot.mintel.co.uk 7.0-CURRENT FreeBSD 7.0-CURRENT #1: 
  Tue Jun  5 14:39:27 BST 2007 (sources synched ~5 hrs prior to this)
  root_at_zoot.mintel.co.uk:/usr/obj/usr/src/sys/ZOOT  i386

dvd device:
  acd0: DVDR <MATSHITADVD-RAM UJ-840S/1.11> at ata0-master

ata controller:
  atapci0_at_pci0:31:1:      class=0x01018a card=0x30aa103c chip=0x27df8086
rev=0x01 hdr=0x00
  device     = '82801G (ICH7 Family) Ultra ATA Storage Controller'

dmesg.boot: attached (sorry, not verbose, can get verbose if reqd)

pciconf -lv: attached

sysctl hw.ata:
  hw.ata.wc: 1
  hw.ata.atapi_dma: 1
  hw.ata.ata_dma: 1
  (Set via /boot/loader.conf)

atacontrol cap acd0:

  Protocol              ATA/ATAPI revision 6
  device model          MATSHITADVD-RAM UJ-840S
  serial number         
  firmware revision     1.11
  cylinders             0
  heads                 0
  sectors/track         0
  lba supported         
  lba48 not supported       
  dma supported
  overlap not supported

  Feature                      Support  Enable    Value     Vendor
  write cache                    no       no
  read ahead                     no       no
  Tagged Command Queuing (TCQ)   no       no      0/0x00
  SMART                          no       no
  microcode download             no       no
  security                       no       no
  power management               no       no
  advanced power management      no       no      0/0x00
  automatic acoustic management  no       no      0/0x00  0/0x00

TIA

Tom

hostb0_at_pci0:0:0:	class=0x060000 card=0x30aa103c chip=0x27a08086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '955XM/945GM/PM/GMS/940GML Express Processor to DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
vgapci0_at_pci0:2:0:	class=0x030000 card=0x30aa103c chip=0x27a28086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile Integrated Graphics Controller'
    class      = display
    subclass   = VGA
vgapci1_at_pci0:2:1:	class=0x038000 card=0x30aa103c chip=0x27a68086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Mobile Integrated Graphics Controller'
    class      = display
pcm0_at_pci0:27:0:	class=0x040300 card=0x30aa103c chip=0x27d88086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) High Definition Audio'
    class      = multimedia
pcib1_at_pci0:28:0:	class=0x060400 card=0x00000000 chip=0x27d08086 rev=0x01 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib2_at_pci0:28:2:	class=0x060400 card=0x00000000 chip=0x27d48086 rev=0x01 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
pcib3_at_pci0:28:3:	class=0x060400 card=0x00000000 chip=0x27d68086 rev=0x01 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) PCI Express Root Port'
    class      = bridge
    subclass   = PCI-PCI
uhci0_at_pci0:29:0:	class=0x0c0300 card=0x30aa103c chip=0x27c88086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci1_at_pci0:29:1:	class=0x0c0300 card=0x30aa103c chip=0x27c98086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci2_at_pci0:29:2:	class=0x0c0300 card=0x30aa103c chip=0x27ca8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
uhci3_at_pci0:29:3:	class=0x0c0300 card=0x30aa103c chip=0x27cb8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB Universal Host Controller'
    class      = serial bus
    subclass   = USB
ehci0_at_pci0:29:7:	class=0x0c0320 card=0x30aa103c chip=0x27cc8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) USB 2.0 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
pcib4_at_pci0:30:0:	class=0x060401 card=0x30aa103c chip=0x24488086 rev=0xe1 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0_at_pci0:31:0:	class=0x060100 card=0x30aa103c chip=0x27b98086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801GBM (ICH7-M) LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
atapci0_at_pci0:31:1:	class=0x01018a card=0x30aa103c chip=0x27df8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801G (ICH7 Family) Ultra ATA Storage Controller'
    class      = mass storage
    subclass   = ATA
atapci1_at_pci0:31:2:	class=0x010601 card=0x30aa103c chip=0x27c58086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801GB Mobile I/O Controller Hub SATA cc=AHCI'
    class      = mass storage
none0_at_pci8:0:0:	class=0x028000 card=0x135c103c chip=0x42228086 rev=0x02 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '3945ABG Intel 3945ABG Wireless LAN controller'
    class      = network
cbb0_at_pci2:6:0:	class=0x060700 card=0x30aa103c chip=0x8039104c rev=0x00 hdr=0x02
    vendor     = 'Texas Instruments (TI)'
    device     = 'PCIxx12 Cardbus Controller'
    class      = bridge
    subclass   = PCI-CardBus
fwohci0_at_pci2:6:1:	class=0x0c0010 card=0x30aa103c chip=0x803a104c rev=0x00 hdr=0x00
    vendor     = 'Texas Instruments (TI)'
    device     = 'PCIxx12 OHCI IEEE 1394 Host Controller'
    class      = serial bus
    subclass   = FireWire
none1_at_pci2:6:2:	class=0x018000 card=0x30aa103c chip=0x803b104c rev=0x00 hdr=0x00
    vendor     = 'Texas Instruments (TI)'
    device     = 'PCIxx12 Integrated Flash Media Controller'
    class      = mass storage
none2_at_pci2:6:3:	class=0x080500 card=0x30aa103c chip=0x803c104c rev=0x00 hdr=0x00
    vendor     = 'Texas Instruments (TI)'
    device     = 'PCIxx12 SDA Host Controller'
    class      = base peripheral
bge0_at_pci2:14:0:	class=0x020000 card=0x30aa103c chip=0x169c14e4 rev=0x03 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = 'fhjfhjghj Broadcom Gigabit Ethernet BCM570x NetXtreme'
    class      = network
    subclass   = ethernet
Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-CURRENT #1: Tue Jun  5 14:39:27 BST 2007
    root_at_zoot.mintel.co.uk:/usr/obj/usr/src/sys/ZOOT
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Genuine Intel(R) CPU           T2500  _at_ 2.00GHz (1995.02-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x6e8  Stepping = 8
  Features=0xbfe9fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xc1a9<SSE3,MON,VMX,EST,TM2,xTPR,PDCM>
  AMD Features=0x100000<NX>
  Cores per package: 2
real memory  = 1065156608 (1015 MB)
avail memory = 1032916992 (985 MB)
ACPI APIC Table: <HP     30AA    >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0: Changing APIC ID to 1
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <HP 30AA> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 3f700000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
acpi_ec0: <Embedded Controller: GPE 0x16> port 0x62,0x66 on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
cpu1: <ACPI CPU> on acpi0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0x6000-0x6007 mem 0xe8400000-0xe847ffff,0xd0000000-0xdfffffff,0xe8480000-0xe84bffff irq 16 at device 2.0 on pci0
agp0: <Intel 82945GM (945GM GMCH) SVGA controller> on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
drm0: <Intel i945GM> on vgapci0
info: [drm] AGP at 0xe8400000 0MB
info: [drm] Initialized i915 1.5.0 20060119
vgapci1: <VGA-compatible display> mem 0xe8500000-0xe857ffff at device 2.1 on pci0
pci0: <multimedia> at device 27.0 (no driver attached)
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci8: <ACPI PCI bus> on pcib1
pci8: <network> at device 0.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 18 at device 28.2 on pci0
pci24: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 19 at device 28.3 on pci0
pci32: <ACPI PCI bus> on pcib3
uhci0: <UHCI (generic) USB controller> port 0x6020-0x603f irq 20 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: <UHCI (generic) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: <UHCI (generic) USB controller> port 0x6040-0x605f irq 21 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: <UHCI (generic) USB controller> on uhci1
usb1: USB revision 1.0
uhub1: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: <UHCI (generic) USB controller> port 0x6060-0x607f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: <UHCI (generic) USB controller> on uhci2
usb2: USB revision 1.0
uhub2: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: <UHCI (generic) USB controller> port 0x6080-0x609f irq 19 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: <UHCI (generic) USB controller> on uhci3
usb3: USB revision 1.0
uhub3: <Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xe8584000-0xe85843ff irq 20 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <Intel 82801GB/R (ICH7) USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: <Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb4
uhub4: 8 ports with 8 removable, self powered
uhub5: <vendor 0x0424 product 0x2503, class 9/0, rev 2.00/0.01, addr 2> on uhub4
uhub5: multiple transaction translators
uhub5: 3 ports with 0 removable, self powered
ugen0: <vendor 0x08ff Fingerprint Sensor, class 255/255, rev 1.10/6.21, addr 3> on uhub5
pcib4: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci2: <ACPI PCI bus> on pcib4
cbb0: <PCI-CardBus Bridge> mem 0xe8100000-0xe8100fff irq 18 at device 6.0 on pci2
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb0: [ITHREAD]
fwohci0: <1394 Open Host Controller Interface> mem 0xe8101000-0xe81017ff,0xe8104000-0xe8107fff irq 19 at device 6.1 on pci2
fwohci0: [ITHREAD]
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 00:02:3f:99:29:f9:2b:0c
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0: <IEEE1394(FireWire) bus> on fwohci0
sbp0: <SBP-2/SCSI over FireWire> on firewire0
fwohci0: Initiate bus reset
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
firewire0: bus manager 0 (me)
pci2: <mass storage> at device 6.2 (no driver attached)
pci2: <base peripheral> at device 6.3 (no driver attached)
pci2:14:0: bad VPD cksum, remain 14
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x3003> mem 0xe8110000-0xe811ffff irq 16 at device 14.0 on pci2
miibus0: <MII bus> on bge0
brgphy0: <BCM5705 10/100/1000baseTX PHY> PHY 1 on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:15:60:c7:fa:6e
bge0: [ITHREAD]
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 UDMA100 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x60a0-0x60af irq 16 at device 31.1 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <Intel ICH7M SATA300 controller> port 0x13f0-0x13f7,0x15f4-0x15f7,0x1370-0x1377,0x1574-0x1577,0x60d0-0x60df mem 0xe8585000-0xe85853ff irq 17 at device 31.2 on pci0
atapci1: [ITHREAD]
atapci1: AHCI Version 01.10 controller with 4 ports detected
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: port not implemented
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci1
ata4: port not implemented
ata4: [ITHREAD]
ata5: <ATA channel 3> on atapci1
ata5: port not implemented
ata5: [ITHREAD]
battery0: <ACPI Control Method Battery> on acpi0
battery1: <ACPI Control Method Battery> on acpi0
acpi_acad0: <AC Adapter> on acpi0
acpi_button0: <Sleep Button> on acpi0
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_tz1: <Thermal Zone> on acpi0
acpi_tz2: <Thermal Zone> on acpi0
acpi_tz3: <Thermal Zone> on acpi0
acpi_tz4: <Thermal Zone> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse, device ID 3
sio0: <Standard PC COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
cryptosoft0: <software crypto> on motherboard
pmtimer0 on isa0
orm0: <ISA Option ROM> at iomem 0xc0000-0xcffff pnpid ORM0000 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
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 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
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ukbd0: <vendor 0x0d3d USBPS2, class 0/0, rev 1.10/0.01, addr 2> on uhub2
kbd2 at ukbd0
ums0: <vendor 0x0d3d USBPS2, class 0/0, rev 1.10/0.01, addr 2> on uhub2
ums0: 5 buttons and Z dir.
ums1: <Logitech USB-PS/2 Optical Mouse, class 0/0, rev 2.00/22.00, addr 3> on uhub2
ums1: 8 buttons and Z dir.
Timecounters tick every 1.000 msec
acd0: DVDR <MATSHITADVD-RAM UJ-840S/1.11> at ata0-master PIO4
ad4: 95396MB <FUJITSU MHV2100BH 892C> at ata2-master SATA150
acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 
cd0 at ata0 bus 0 target 0 lun 0
cd0: <MATSHITA DVD-RAM UJ-840S 1.11> Removable CD-ROM SCSI-0 device 
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/ad4s3a
bge0: link state changed to UP
drm0: [ITHREAD]
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
Warning: pid 47969 used static ldt allocation.
See the i386_set_ldt man page for more info
pcm0: <Intel 82801G High Definition Audio Controller> mem 0xe8580000-0xe8583fff irq 21 at device 27.0 on pci0
pcm0: [ITHREAD]
pcm0: <HDA Codec: Analog Devices AD1981HD>
pcm0: <HDA Driver Revision: 20070505_0044>
Received on Fri Jun 08 2007 - 14:21:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:12 UTC