2006-03-10 23:42:12

by Parag Warudkar

[permalink] [raw]
Subject: IDE CDROM - No DMA

I have a "TSSTCorp" CD-RW/DVD Drive in my laptop
which is IDE1. ?DMA is not enabled on this drive. (Copying from CDROM stalls
the machine - conforming that DMA is not really in use.)

penguin ~ # hdparm -d /dev/hdc

/dev/hdc:
?using_dma ? ?= ?0 (off)

penguin ~ # hdparm -d1 /dev/hdc

/dev/hdc:
?setting using_dma to 1 (on)
?HDIO_SET_DMA failed: Operation not permitted
?using_dma ? ?= ?0 (off)

hdparm -i /dev/hdc
/dev/hdc:

?Model=TSSTcorpCD-RW/DVD-ROM TSL462C, FwRev=DE01, SerialNo=
?Config={ Fixed Removeable DTR<=5Mbs DTR>10Mbs nonMagnetic }
?RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
?BuffType=unknown, BuffSize=0kB, MaxMultSect=0
?(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=0
?IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
?PIO modes: ?pio0 pio1 pio2 pio3 pio4
?DMA modes: ?sdma0 sdma1 sdma2 mdma0 mdma1 mdma2
?UDMA modes: udma0 udma1 *udma2
?AdvancedPM=no
?Drive conforms to: device does not report version:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Perhaps due to this?

?* signifies the current active mode

dmesg
=========================================================
Linux version 2.6.15-gentoo-r1 (root@penguin) (gcc version 3.4.4 (Gentoo
3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #8 SMP PREEMPT Fri Mar 10 18:07:06 EST
2006
BIOS-provided physical RAM map:
?BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
?BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
?BIOS-e820: 0000000000100000 - 000000007f6d3400 (usable)
?BIOS-e820: 000000007f6d3400 - 0000000080000000 (reserved)
?BIOS-e820: 00000000e0000000 - 00000000f0007000 (reserved)
?BIOS-e820: 00000000f0008000 - 00000000f000c000 (reserved)
?BIOS-e820: 00000000fec00000 - 00000000fec10000 (reserved)
?BIOS-e820: 00000000fed20000 - 00000000feda0000 (reserved)
?BIOS-e820: 00000000fee00000 - 00000000fee10000 (reserved)
?BIOS-e820: 00000000ffb00000 - 0000000100000000 (reserved)
1142MB HIGHMEM available.
896MB LOWMEM available.
On node 0 totalpages: 521939
? DMA zone: 4096 pages, LIFO batch:0
? DMA32 zone: 0 pages, LIFO batch:0
? Normal zone: 225280 pages, LIFO batch:31
? HighMem zone: 292563 pages, LIFO batch:31
DMI 2.4 present.
ACPI: RSDP (v000 DELL ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?) @ 0x000fc370
ACPI: RSDT (v001 DELL ? ?M07 ? ? 0x27d50c11 ASL ?0x00000061) @ 0x7f6d3a96
ACPI: FADT (v001 DELL ? ?M07 ? ? 0x27d50c11 ASL ?0x00000061) @ 0x7f6d4800
ACPI: MADT (v001 DELL ? ?M07 ? ? 0x27d50c11 ASL ?0x00000047) @ 0x7f6d5000
ACPI: MCFG (v016 DELL ? ?M07 ? ? 0x27d50c11 ASL ?0x00000061) @ 0x7f6d4fc0
ACPI: BOOT (v001 DELL ? ?M07 ? ? 0x27d50c11 ASL ?0x00000061) @ 0x7f6d4bc0
ACPI: SSDT (v001 ?PmRef ? ?CpuPm 0x00003000 INTL 0x20050624) @ 0x7f6d3ace
ACPI: DSDT (v001 INT430 SYSFexxx 0x00001001 INTL 0x20050624) @ 0x00000000
ACPI: PM-Timer IO Port: 0x1008
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:14 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 6:14 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode: ?Flat. ?Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 88000000 (gap: 80000000:60000000)
Built 1 zonelists
Kernel command line: real_root=/dev/sda3 ide=autodma
ide_setup: ide=autodma -- BAD OPTION
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Detected 1831.119 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 2065536k/2087756k available (2641k kernel code, 21132k reserved, 748k
data, 232k init, 1170252k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 3667.61 BogoMIPS
(lpj=7335231)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: bfe9fbff 00100000 00000000 00000000
0000c1a9 00000000 00000000
CPU: After vendor identify, caps: bfe9fbff 00100000 00000000 00000000 0000c1a9
00000000 00000000
monitor/mwait feature present.
using mwait in idle threads.
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 2048K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 0
CPU: After all inits, caps: bfe9fbff 00100000 00000000 00000040 0000c1a9
00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
mtrr: v2.0 (20020519)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
CPU0: Intel Genuine Intel(R) CPU ? ? ? ? ? T2400 ?@ 1.83GHz stepping 08
Booting processor 1/1 eip 2000
Initializing CPU#1
Calibrating delay using timer specific routine.. 3662.09 BogoMIPS
(lpj=7324196)
CPU: After generic identify, caps: bfe9fbff 00100000 00000000 00000000
0000c1a9 00000000 00000000
CPU: After vendor identify, caps: bfe9fbff 00100000 00000000 00000000 0000c1a9
00000000 00000000
monitor/mwait feature present.
CPU: L1 I cache: 32K, L1 D cache: 32K
CPU: L2 cache: 2048K
CPU: Physical Processor ID: 0
CPU: Processor Core ID: 1
CPU: After all inits, caps: bfe9fbff 00100000 00000000 00000040 0000c1a9
00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#1.
CPU1: Intel Genuine Intel(R) CPU ? ? ? ? ? T2400 ?@ 1.83GHz stepping 08
Total of 2 processors activated (7329.71 BogoMIPS).
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
checking TSC synchronization across 2 CPUs:
CPU#0 had 0 usecs TSC skew, fixed it up.
CPU#1 had 0 usecs TSC skew, fixed it up.
Brought up 2 CPUs
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfb4d6, last bus=14
PCI: Using MMCONFIG
ACPI: Subsystem revision 20050902
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
ACPI: Assume root bridge [\_SB_.PCI0] bus is 0
Boot video device is 0000:00:02.0
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.2
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 9 10 *11)
ACPI: PCI Interrupt Link [LNKB] (IRQs 5 7) *4
ACPI: PCI Interrupt Link [LNKC] (IRQs 9 10 *11)
ACPI: PCI Interrupt Link [LNKD] (IRQs 5 7 9 10 11) *3
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 *7 9 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCIE._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP01._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PXP1._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.RP04._PRT]
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 10 devices
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq". ?If it helps, post a report
pnp: 00:01: ioport range 0x4d0-0x4d1 has been reserved
pnp: 00:01: ioport range 0x1000-0x1005 could not be reserved
pnp: 00:01: ioport range 0x1008-0x100f could not be reserved
pnp: 00:02: ioport range 0xf400-0xf4fe has been reserved
pnp: 00:02: ioport range 0x1006-0x1007 has been reserved
pnp: 00:02: ioport range 0x100a-0x1059 could not be reserved
pnp: 00:02: ioport range 0x1060-0x107f has been reserved
pnp: 00:02: ioport range 0x1080-0x10bf has been reserved
pnp: 00:02: ioport range 0x10c0-0x10df has been reserved
pnp: 00:07: ioport range 0xc80-0xcff has been reserved
pnp: 00:07: ioport range 0x910-0x91f has been reserved
pnp: 00:07: ioport range 0x920-0x92f has been reserved
pnp: 00:07: ioport range 0xcb0-0xcbf has been reserved
pnp: 00:07: ioport range 0x940-0x97f has been reserved
PCI: Ignore bogus resource 6 [0:0] of 0000:00:02.0
PCI: Bridge: 0000:00:1c.0
? IO window: disabled.
? MEM window: disabled.
? PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.1
? IO window: disabled.
? MEM window: dfd00000-dfdfffff
? PREFETCH window: disabled.
PCI: Bridge: 0000:00:1c.3
? IO window: d000-dfff
? MEM window: dfa00000-dfcfffff
? PREFETCH window: d0000000-d01fffff
PCI: Bridge: 0000:00:1e.0
? IO window: disabled.
? MEM window: df900000-df9fffff
? PREFETCH window: disabled.
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1c.0 to 64
ACPI: PCI Interrupt 0000:00:1c.1[B] -> GSI 17 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:00:1c.1 to 64
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 185
PCI: Setting latency timer of device 0000:00:1c.3 to 64
PCI: Setting latency timer of device 0000:00:1e.0 to 64
Simple Boot Flag at 0x79 set to 0x1
Machine check exception polling timer started.
audit: initializing netlink socket (disabled)
audit(1142014773.660:1): initialized
highmem bounce pool size: 64 pages
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered
ACPI: PCI Interrupt 0000:00:1c.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:1c.0 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[pcie00]
Allocate Port Service[pcie02]
Allocate Port Service[pcie03]
ACPI: PCI Interrupt 0000:00:1c.1[B] -> GSI 17 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:00:1c.1 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[pcie00]
Allocate Port Service[pcie02]
Allocate Port Service[pcie03]
ACPI: PCI Interrupt 0000:00:1c.3[D] -> GSI 19 (level, low) -> IRQ 185
PCI: Setting latency timer of device 0000:00:1c.3 to 64
assign_interrupt_mode Found MSI capability
Allocate Port Service[pcie00]
Allocate Port Service[pcie02]
Allocate Port Service[pcie03]
vesafb: Intel Corporation, Intel(r) 82945GM Chipset Family Graphics
Controller, Hardware Version 0.0 (OEM: Intel(r) 82945GM Chipset Family
Graphics Chip Accelerated VGA BIOS)
vesafb: VBE version: 3.0
vesafb: VBIOS/hardware supports DDC2 transfers
vesafb: monitor limits: vf = 60 Hz, hf = 75 kHz, clk = 161 MHz
vesafb: using default BIOS refresh rate
vesafb: scrolling: redraw
Console: switching to colour frame buffer device 200x75
vesafb: framebuffer at 0xc0000000, mapped to 0xf8880000, using 7872k, total
7872k
fb0: VESA VGA frame buffer device
ACPI: AC Adapter [AC] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Lid Switch [LID]
ACPI: Power Button (CM) [PBTN]
ACPI: Sleep Button (CM) [SBTN]
ACPI: Video Device [VID] (multi-head: yes ?rom: no ?post: no)
ACPI: Video Device [VID] (multi-head: yes ?rom: no ?post: no)
ACPI: Video Device [VID2] (multi-head: yes ?rom: no ?post: no)
Using specific hotkey driver
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU0] (supports 8 throttling states)
ACPI: CPU1 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU1] (supports 8 throttling states)
ACPI: Thermal Zone [THM] (44 C)
lp: driver loaded but no devices found
Real Time Clock Driver v1.12
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected an Intel 945GM Chipset.
agpgart: Detected 7932K stolen memory.
agpgart: AGP aperture is 256M @ 0xc0000000
intelfb: Framebuffer driver for Intel(R) 830M/845G/852GM/855GM/865G/915G/915GM
chipsets
intelfb: Version 0.9.2
PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
mice: PS/2 mouse device common for all mice
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
Probing IDE interface ide1...
input: AT Translated Set 2 keyboard as /class/input/input0
Synaptics Touchpad, model: 1, fw: 6.2, id: 0xfa0b1, caps: 0xa04713/0x200000
input: SynPS/2 Synaptics TouchPad as /class/input/input1
hdc: TSSTcorpCD-RW/DVD-ROM TSL462C, ATAPI CD/DVD-ROM drive
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 1536kB Cache
Uniform CD-ROM driver Revision: 3.20
libata version 1.20 loaded.
ata_piix 0000:00:1f.2: version 1.05
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 17 (level, low) -> IRQ 177
ata: 0x170 IDE port busy
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xBFA0 irq 14
ata1: dev 0 cfg 49:2f00 82:746b 83:7f09 84:6023 85:7469 86:3e09 87:6023
88:203f
ata1: dev 0 ATA-6, max UDMA/100, 153356490 sectors: LBA48
ata1: dev 0 configured for UDMA/100
scsi0 : ata_piix
? Vendor: ATA ? ? ? Model: TOSHIBA MK8032GS ?Rev: AS11
? Type: ? Direct-Access ? ? ? ? ? ? ? ? ? ? ?ANSI SCSI revision: 05
SCSI device sda: 153356490 512-byte hdwr sectors (78519 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 153356490 512-byte hdwr sectors (78519 MB)
SCSI device sda: drive cache: write back
?sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
ieee1394: Initialized config rom entry `ip1394'
ohci1394: $Rev: 1313 $ Ben Collins <[email protected]>
ACPI: PCI Interrupt 0000:03:01.0[A] -> GSI 19 (level, low) -> IRQ 185
ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[185] ?MMIO=[df9fd800-df9fdfff] ?
Max Packet=[2048]
ieee1394: raw1394: /dev/raw1394 device initialized
usbmon: debugfs is not available
ACPI: PCI Interrupt 0000:00:1d.7[A] -> GSI 20 (level, low) -> IRQ 225
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: debug port 1
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:1d.7: irq 225, io mem 0xffa80000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v2.3
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 20 (level, low) -> IRQ 225
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.0: irq 225, io base 0x0000bf80
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 21 (level, low) -> IRQ 233
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:1d.1: irq 233, io base 0x0000bf60
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 22 (level, low) -> IRQ 50
PCI: Setting latency timer of device 0000:00:1d.2 to 64
uhci_hcd 0000:00:1d.2: UHCI Host Controller
uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:1d.2: irq 50, io base 0x0000bf40
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
usb 1-1: new high speed USB device using ehci_hcd and address 2
ACPI: PCI Interrupt 0000:00:1d.3[D] -> GSI 23 (level, low) -> IRQ 58
PCI: Setting latency timer of device 0000:00:1d.3 to 64
uhci_hcd 0000:00:1d.3: UHCI Host Controller
uhci_hcd 0000:00:1d.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:1d.3: irq 58, io base 0x0000bf20
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
ieee1394: Host added: ID:BUS[0-00:1023] ?GUID[334fc000345c4521]
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-5: new high speed USB device using ehci_hcd and address 3
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb 4-2: new low speed USB device using uhci_hcd and address 2
input: Microsoft Microsoft Wireless Optical Mouse? 1.0A as /class/input/input2
input: USB HID v1.11 Mouse [Microsoft Microsoft Wireless Optical Mouse? 1.0A]
on usb-0000:00:1d.2-2
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
NET: Registered protocol family 2
IP route cache hash table entries: 65536 (order: 6, 262144 bytes)
TCP established hash table entries: 262144 (order: 9, 3145728 bytes)
TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
ip_conntrack version 2.4 (8192 buckets, 65536 max) - 212 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_recent v0.3.1: Stephen Frost <[email protected]>. ?
http://snowman.net/projects/ipt_recent/
arp_tables: (C) 2002 David S. Miller
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Starting balanced_irq
Using IPI Shortcut mode
BIOS EDD facility v0.16 2004-Jun-25, 1 devices found
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 232k freed
kjournald starting. ?Commit interval 5 seconds
eth1394: $Rev: 1312 $ Ben Collins <[email protected]>
eth1394: eth0: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
Adding 2008116k swap on /dev/sda2. ?Priority:-1 extents:1 across:2008116k
EXT3 FS on sda3, internal journal
? Vendor: Maxtor ? ?Model: OneTouch ? ? ? ? ?Rev: 0201
? Type: ? Direct-Access ? ? ? ? ? ? ? ? ? ? ?ANSI SCSI revision: 00
SCSI device sdb: 398295040 512-byte hdwr sectors (203927 MB)
sdb: assuming drive cache: write through
SCSI device sdb: 398295040 512-byte hdwr sectors (203927 MB)
sdb: assuming drive cache: write through
?sdb: sdb1 sdb2
sd 1:0:0:0: Attached scsi disk sdb
sd 1:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
b44.c:v0.97 (Nov 30, 2005)
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 177
eth1: Broadcom 4400 10/100BaseT Ethernet 00:14:22:f2:31:89
[drm] Initialized drm 1.0.1 20051102
PCI: Unable to reserve mem region #3:10000000@c0000000 for device 0000:00:02.0
ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 169
PCI: Setting latency timer of device 0000:00:02.0 to 64
[drm] Initialized i915 1.4.0 20060119 on minor 0:
[drm] Used old pci detect: framebuffer loaded
ACPI: PCI Interrupt 0000:00:1b.0[A] -> GSI 21 (level, low) -> IRQ 233
PCI: Setting latency timer of device 0000:00:1b.0 to 64
ieee80211_crypt: registered algorithm 'NULL'
ieee80211: 802.11 data/management/control stack, 1.1.12
ieee80211: Copyright (C) 2004-2005 Intel Corporation
<[email protected]>
ipw3945: Intel(R) PRO/Wireless 3945 Network Connection driver for Linux,
0.0.70
ipw3945: Copyright(c) 2003-2006 Intel Corporation
ACPI: PCI Interrupt 0000:0c:00.0[A] -> GSI 17 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:0c:00.0 to 64
ipw3945: Detected Intel PRO/Wireless 3945ABG Network Connection
kjournald starting. ?Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
hw_random hardware driver 1.0.0 loaded
ipw3945: Detected geography ABG (11 802.11bg channels, 9 802.11a channels)
ieee80211_crypt: registered algorithm 'TKIP'


2006-03-12 06:28:45

by Parag Warudkar

[permalink] [raw]
Subject: Re: IDE CDROM - No DMA

On Friday 10 March 2006 18:42, Parag Warudkar wrote:
> I have a "TSSTCorp" CD-RW/DVD Drive in my laptop
> which is IDE1. ?DMA is not enabled on this drive. (Copying from CDROM
> stalls the machine - conforming that DMA is not really in use.)
>
Hmm.. Interestingly this seems to be a IDE layer problem not specific to the
drive in question. No matter what CD / DVD drive I put into my lapatop DMA is
not enabled. (I tried replacing this TSSTCorp drive with a Pioneer drive
which was doing DMA fine with Linux on another machine, but with this laptop,
I can't set DMA on it.)

Any clues, workarounds, hint of a place to start debugging this?
Some relevant snippets from dmesg -
------------------------------------------------------------------------
PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.2
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
Probing IDE interface ide1...
ide1 at 0x170-0x177,0x376 on irq 15
ata: 0x170 IDE port busy
hdc: PIONEER DVD-RW DVR-K05, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache
Uniform CD-ROM driver Revision: 3.20
libata version 1.20 loaded.
ata_piix 0000:00:1f.2: version 1.05
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 17 (level, low) -> IRQ 177
ata: 0x170 IDE port busy
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xBFA0 irq 14
ata1: dev 0 cfg 49:2f00 82:746b 83:7f09 84:6023 85:7469 86:3e09 87:6023
88:203f
ata1: dev 0 ATA-6, max UDMA/100, 153356490 sectors: LBA48
ata1: dev 0 configured for UDMA/100
scsi0 : ata_piix
Vendor: ATA Model: TOSHIBA MK8032GS Rev: AS11
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 153356490 512-byte hdwr sectors (78519 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 153356490 512-byte hdwr sectors (78519 MB)
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0
ieee1394: Initialized config rom entry `ip1394'

Thanks
Parag

2006-03-12 15:53:30

by Chris Boot

[permalink] [raw]
Subject: Re: IDE CDROM - No DMA

Parag Warudkar wrote:
> On Friday 10 March 2006 18:42, Parag Warudkar wrote:
>> I have a "TSSTCorp" CD-RW/DVD Drive in my laptop
>> which is IDE1. DMA is not enabled on this drive. (Copying from CDROM
>> stalls the machine - conforming that DMA is not really in use.)
>>
> Hmm.. Interestingly this seems to be a IDE layer problem not specific to the
> drive in question. No matter what CD / DVD drive I put into my lapatop DMA is
> not enabled. (I tried replacing this TSSTCorp drive with a Pioneer drive
> which was doing DMA fine with Linux on another machine, but with this laptop,
> I can't set DMA on it.)
>
> Any clues, workarounds, hint of a place to start debugging this?
> Some relevant snippets from dmesg -
> ------------------------------------------------------------------------
> PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.2
> Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
> ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
> ide0: I/O resource 0x1F0-0x1F7 not free.
> ide0: ports already in use, skipping probe
> Probing IDE interface ide1...
> ide1 at 0x170-0x177,0x376 on irq 15
> ata: 0x170 IDE port busy
> hdc: PIONEER DVD-RW DVR-K05, ATAPI CD/DVD-ROM drive
> ide1 at 0x170-0x177,0x376 on irq 15
> hdc: ATAPI 24X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache
> Uniform CD-ROM driver Revision: 3.20
> libata version 1.20 loaded.
> ata_piix 0000:00:1f.2: version 1.05
> ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 17 (level, low) -> IRQ 177
> ata: 0x170 IDE port busy
> PCI: Setting latency timer of device 0000:00:1f.2 to 64
> ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xBFA0 irq 14
> ata1: dev 0 cfg 49:2f00 82:746b 83:7f09 84:6023 85:7469 86:3e09 87:6023
> 88:203f
> ata1: dev 0 ATA-6, max UDMA/100, 153356490 sectors: LBA48
> ata1: dev 0 configured for UDMA/100
> scsi0 : ata_piix
> Vendor: ATA Model: TOSHIBA MK8032GS Rev: AS11
> Type: Direct-Access ANSI SCSI revision: 05
> SCSI device sda: 153356490 512-byte hdwr sectors (78519 MB)
> SCSI device sda: drive cache: write back
> SCSI device sda: 153356490 512-byte hdwr sectors (78519 MB)
> SCSI device sda: drive cache: write back
> sda: sda1 sda2 sda3 sda4
> sd 0:0:0:0: Attached scsi disk sda
> sd 0:0:0:0: Attached scsi generic sg0 type 0
> ieee1394: Initialized config rom entry `ip1394'
>
> Thanks
> Parag

You're using the generic ATA driver, not the one specific for your chipset, thus
it's unlikely you'll get DMA on it at all. Judging by the fact you're using
ata_piix for your SATA hard disk, try using the piix ATA driver for your
on-board IDE. I assume you built your own kernel and forgot to enable this driver.

HTH,
Chris

--
Chris Boot
[email protected]
http://www.bootc.net/

2006-03-12 17:09:34

by Parag Warudkar

[permalink] [raw]
Subject: Re: IDE CDROM - No DMA

On Sunday 12 March 2006 10:53, Chris Boot wrote:
>
> You're using the generic ATA driver, not the one specific for your chipset,
> thus it's unlikely you'll get DMA on it at all. Judging by the fact you're
> using ata_piix for your SATA hard disk, try using the piix ATA driver for
> your on-board IDE. I assume you built your own kernel and forgot to enable
> this driver.
>
Some one pointed out offline -
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=163418

Looks like it's a SATA combined mode problem as outlined in the above bug
report. NONE of the options provided in the bug report worked for me though -
:(

Parag

2006-03-12 17:57:10

by Alan

[permalink] [raw]
Subject: Re: IDE CDROM - No DMA

On Sul, 2006-03-12 at 12:09 -0500, Parag Warudkar wrote:
> Some one pointed out offline -
> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=163418
>
> Looks like it's a SATA combined mode problem as outlined in the above bug
> report. NONE of the options provided in the bug report worked for me though -
> :(

If you feel adventurous then apply the libata PATA patch from my web
page and compile a kernel with CONFIG_IDE=n and most stuff should work.
Folks are still reporting some problems with libata and CD burning
however.

2006-03-12 19:29:07

by Parag Warudkar

[permalink] [raw]
Subject: Re: IDE CDROM - No DMA

On Sunday 12 March 2006 13:03, Alan Cox wrote:

> If you feel adventurous then apply the libata PATA patch from my web
> page and compile a kernel with CONFIG_IDE=n and most stuff should work.
> Folks are still reporting some problems with libata and CD burning
> however.

Ok, I tried the ide2 patch on your website against -rc5 - Disabled CONFIG_IDE
and kept rest of the configuration same as earlier.

Funny situation - I cannot figure what my root device is. Earlier without the
patch it was /dev/sda3 and now I try everything (hda3, hdb3, hdc3, hdd3,
sda3, sdb3...) but it panics - not able to mount rootfs.
I have -
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7 Family) Serial ATA
Storage Controller IDE (rev 01) (prog-if 80 [Master])

It prints some ata_piix message while booting but I cannot read that since it
scrolls fast and post panic obviously I can't scroll up!

Any default for the only one HDD and CDROM that I can try?
Thanks
Parag

2006-03-12 19:47:26

by Parag Warudkar

[permalink] [raw]
Subject: Re: IDE CDROM - No DMA

On Sunday 12 March 2006 14:29, Parag Warudkar wrote:
> Funny situation - I cannot figure what my root device is. Earlier without
> the patch it was /dev/sda3 and now I try everything (hda3, hdb3, hdc3,
> hdd3, sda3, sdb3...) but it panics - not able to mount rootfs.
Never mind - I am dumb enough to not realize I needed SCSI Disk in built or as
modules copied over to proper place :)

It boots but I don't think DMA is in effect on the CDROM drive though - (I get
3Mb/s transfer speeds from it. LS of a 1500 file directory is too slow).
dmesg says ata2 configured for UDMA/33 but doesn't seem like it has
actually.

Memory: 2065588k/2087756k available (2495k kernel code, 21676k reserved, 722k
data, 216k init, 0k highmem)
libata version 1.20 loaded.
ata_piix 0000:00:1f.2: version 1.05-ac7
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xBFA0 irq 14
ata1: dev 0 cfg 49:2f00 82:746b 83:7f09 84:6023 85:7469 86:3e09 87:6023
88:203f
ata1: dev 0 ATA-6, max UDMA/100, 153356490 sectors: LBA48
ata1: dev 0 configured for UDMA/100
scsi0 : ata_piix
ata2: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xBFA8 irq 15
ata2: dev 0 cfg 49:0f00 82:0210 83:4011 84:4000 85:0000 86:0001 87:4000
88:0407
ata2: dev 0 ATAPI, max UDMA/33
ata2(0): applying bridge limits
ata2: dev 0 configured for UDMA/33
scsi1 : ata_piix
EXT3-fs: mounted filesystem with ordered data mode.

Hard disk is fine - gives around 31 Mb/S.

Parag