Some CD-ROM drives break when enabling DMA

Bug #16170 reported by Daniel Trimble
12
Affects Status Importance Assigned to Milestone
linux-source-2.6.15 (Ubuntu)
Invalid
High
Martin Pitt

Bug Description

root@foshizzle:/home/dstrimble # lspci -v
0000:00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host
Bridge
        Subsystem: Asustek Computer, Inc. A7V8X motherboard
        Flags: bus master, 66MHz, medium devsel, latency 0
        Memory at f8000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [80] AGP version 3.5
        Capabilities: [c0] Power Management version 2

0000:00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge (prog-if 00
[Normal decode])
        Flags: bus master, 66MHz, medium devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        Memory behind bridge: ed000000-ee7fffff
        Prefetchable memory behind bridge: eff00000-f7ffffff
        Capabilities: [80] Power Management version 2

0000:00:07.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host
Controller (rev 46) (prog-if 10 [OHCI])
        Subsystem: VIA Technologies, Inc. IEEE 1394 Host Controller
        Flags: bus master, stepping, medium devsel, latency 32, IRQ 17
        Memory at ec800000 (32-bit, non-prefetchable) [size=2K]
        I/O ports at d800 [size=128]
        Capabilities: [50] Power Management version 2

0000:00:08.0 RAID bus controller: Promise Technology, Inc. PDC20376 (FastTrak
376) (rev 02)
        Subsystem: Asustek Computer, Inc. A7V8X motherboard
        Flags: bus master, 66MHz, medium devsel, latency 96, IRQ 17
        I/O ports at d400 [size=64]
        I/O ports at d000 [size=16]
        I/O ports at b800 [size=128]
        Memory at ec000000 (32-bit, non-prefetchable) [size=4K]
        Memory at eb800000 (32-bit, non-prefetchable) [size=128K]
        Capabilities: [60] Power Management version 2

0000:00:09.0 Ethernet controller: Broadcom Corporation BCM4401 100Base-T (rev 01)
        Subsystem: Asustek Computer, Inc. A7V8X motherboard
        Flags: bus master, fast devsel, latency 32, IRQ 18
        Memory at eb000000 (32-bit, non-prefetchable) [size=8K]
        Expansion ROM at efef0000 [disabled] [size=16K]
        Capabilities: [40] Power Management version 2

0000:00:0b.0 Multimedia video controller: Brooktree Corporation Bt878 Video
Capture (rev 11)
        Subsystem: ATI Technologies Inc: Unknown device 0003
        Flags: bus master, medium devsel, latency 32, IRQ 19
        Memory at ef000000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

0000:00:0b.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture
(rev 11)
        Subsystem: ATI Technologies Inc TV-Wonder/VE
        Flags: bus master, medium devsel, latency 32, IRQ 19
        Memory at ee800000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

0000:00:0e.0 Multimedia audio controller: Creative Labs SB Live! EMU10k1 (rev 07)
        Subsystem: Creative Labs SBLive! Player 5.1
        Flags: bus master, medium devsel, latency 32, IRQ 17
        I/O ports at b400 [size=32]
        Capabilities: [dc] Power Management version 1

0000:00:0e.1 Input device controller: Creative Labs SB Live! MIDI/Game Port (rev 07)
        Subsystem: Creative Labs Gameport Joystick
        Flags: bus master, medium devsel, latency 32
        I/O ports at b000 [size=8]
        Capabilities: [dc] Power Management version 1

0000:00:0f.0 Ethernet controller: D-Link System Inc RTL8139 Ethernet (rev 10)
        Subsystem: D-Link System Inc DFE-530TX+ 10/100 Ethernet Adapter
        Flags: bus master, medium devsel, latency 32, IRQ 18
        I/O ports at a800 [size=256]
        Memory at ea800000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2

0000:00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80) (prog-if 00 [UHCI])
        Subsystem: Asustek Computer, Inc. VT6202 USB2.0 4 port controller
        Flags: bus master, medium devsel, latency 32, IRQ 21
        I/O ports at a400 [size=32]
        Capabilities: [80] Power Management version 2

0000:00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80) (prog-if 00 [UHCI])
        Subsystem: Asustek Computer, Inc. VT6202 USB2.0 4 port controller
        Flags: bus master, medium devsel, latency 32, IRQ 21
        I/O ports at a000 [size=32]
        Capabilities: [80] Power Management version 2

0000:00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1
Controller (rev 80) (prog-if 00 [UHCI])
        Subsystem: Asustek Computer, Inc. VT6202 USB2.0 4 port controller
        Flags: bus master, medium devsel, latency 32, IRQ 21
        I/O ports at 9800 [size=32]
        Capabilities: [80] Power Management version 2

0000:00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82) (prog-if 20
[EHCI])
        Subsystem: Asustek Computer, Inc. A7V8X motherboard
        Flags: bus master, medium devsel, latency 32, IRQ 21
        Memory at ea000000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2

0000:00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
        Subsystem: Asustek Computer, Inc. A7V8X motherboard
        Flags: bus master, stepping, medium devsel, latency 0
        Capabilities: [c0] Power Management version 2

0000:00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) (prog-if 8a
[Master SecP PriP])
        Subsystem: Asustek Computer, Inc. A7V8X motherboard
        Flags: bus master, medium devsel, latency 32, IRQ 255
        I/O ports at 9400 [size=16]
        Capabilities: [c0] Power Management version 2

0000:00:11.5 Multimedia audio controller: VIA Technologies, Inc.
VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
        Subsystem: Asustek Computer, Inc. A7V8X Motherboard (Realtek ALC650 codec)
        Flags: medium devsel, IRQ 22
        I/O ports at e000 [size=256]
        Capabilities: [c0] Power Management version 2

0000:01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti
4200 AGP 8x] (rev a1) (prog-if 00 [VGA])
        Flags: bus master, 66MHz, medium devsel, latency 248, IRQ 16
        Memory at ed000000 (32-bit, non-prefetchable) [size=16M]
        Memory at f0000000 (32-bit, prefetchable) [size=128M]
        Expansion ROM at effe0000 [disabled] [size=128K]
        Capabilities: [60] Power Management version 2
        Capabilities: [44] AGP version 3

----------------------------------------------------------------------------------------------------

root@foshizzle:/home/dstrimble # dmesg
el)
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
Built 1 zonelists
Kernel command line: root=/dev/sda1 ro quiet splash
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 65536 bytes)
Detected 2001.026 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: 902032k/917504k available (1436k kernel code, 14928k reserved, 754k
data, 224k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 3964.92 BogoMIPS (lpj=1982464)
Security Framework v1.0.0 initialized
SELinux: Disabled at boot.
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: After generic identify, caps: 0383fbff c1c3fbff 00000000 00000000 00000000
00000000
CPU: After vendor identify, caps: 0383fbff c1c3fbff 00000000 00000000 00000000
00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0383fbff c1c3fbff 00000000 00000020 00000000 00000000
CPU: AMD Athlon(TM) XP 2400+ stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
Checking for popad bug... OK.
ACPI: Looking for DSDT in initrd... not found!
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 pin1=2 pin2=-1
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like
an initrd
Freeing initrd memory: 4248k freed
NET: Registered protocol family 16
EISA bus registered
PCI: PCI BIOS revision 2.10 entry at 0xf1ad0, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20050211
ACPI: Interpreter enabled
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 10 11 12 14) *9
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 10 11 12 14 15) *9
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
PCI: Via IRQ fixup
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 14 devices
PnPBIOS: Disabled by ACPI PNP
PCI: Using ACPI for IRQ routing
** PCI interrupts are no longer routed automatically. If this
** causes a device to stop working, it is probably because the
** driver failed to call pci_enable_device(). As a temporary
** workaround, the "pci=routeirq" argument restores the old
** behavior. If this argument makes the device work again,
** please email the output of "lspci" to <email address hidden>
** so I can fix the driver.
pnp: 00:01: ioport range 0xe400-0xe47f could not be reserved
pnp: 00:01: ioport range 0xe800-0xe81f has been reserved
pnp: 00:0d: ioport range 0x290-0x291 has been reserved
pnp: 00:0d: ioport range 0x370-0x372 has been reserved
Simple Boot Flag at 0x3a set to 0x1
audit: initializing netlink socket (disabled)
audit(1113745708.370:0): initialized
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
devfs: 2004-01-31 Richard Gooch (<email address hidden>)
devfs: boot_options: 0x0
Initializing Cryptographic API
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
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 $ 54 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
input: AT Translated Set 2 keyboard on isa0060/serio0
EISA: Probing bus 0 at eisa0
EISA: Detected 0 cards.
NET: Registered protocol family 2
IP: routing cache hash table of 8192 buckets, 64Kbytes
TCP: Hash tables configured (established 262144 bind 65536)
NET: Registered protocol family 8
NET: Registered protocol family 20
Restarting tasks...<6> Strange, kswapd0 not stopped
 Strange, kseriod not stopped
 done
ACPI wakeup devices:
PCI0 PCI1 USB0 USB1 USB2 SU20 LAN
ACPI: (supports S0 S1 S4 S5)
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 4248KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 224k freed
NET: Registered protocol family 1
SCSI subsystem initialized
libata version 1.10 loaded.
sata_promise version 1.01
ACPI: PCI interrupt 0000:00:08.0[A] -> GSI 17 (level, low) -> IRQ 17
sata_promise PATA port found
ata1: SATA max UDMA/133 cmd 0xF882C200 ctl 0xF882C238 bmdma 0x0 irq 17
ata2: SATA max UDMA/133 cmd 0xF882C280 ctl 0xF882C2B8 bmdma 0x0 irq 17
ata3: PATA max UDMA/133 cmd 0xF882C300 ctl 0xF882C338 bmdma 0x0 irq 17
ata1: no device found (phy stat 00000000)
scsi0 : sata_promise
ata2: dev 0 cfg 49:2f00 82:74eb 83:7f63 84:4003 85:74e9 86:3c43 87:4003 88:207f
ata2: dev 0 ATA, max UDMA/133, 72303840 sectors: lba48
ata2: dev 0 configured for UDMA/133
scsi1 : sata_promise
ATA: abnormal status 0x8 on port 0xF882C31C
ata3: disabling port
scsi2 : sata_promise
elevator: using anticipatory as default io scheduler
  Vendor: ATA Model: WDC WD360GD-00FL Rev: 31.0
  Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 72303840 512-byte hdwr sectors (37020 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 72303840 512-byte hdwr sectors (37020 MB)
SCSI device sda: drive cache: write back
 /dev/scsi/host1/bus0/target0/lun0: p1 p2 < p5 >
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
Stopping tasks: ==|
Freeing memory... done (405 pages freed)
Restarting tasks... done
EXT3-fs: mounted filesystem with ordered data mode.
kjournald starting. Commit interval 5 seconds
Adding 1494004k swap on /dev/sda5. Priority:-1 extents:1
EXT3 FS on sda1, internal journal
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Probing IDE interface ide0...
hda: Maxtor 6E040L0, ATA DISK drive
Probing IDE interface ide1...
hdc: ASUS CRW-5224A, ATAPI CD/DVD-ROM drive
hdd: Pioneer DVD-ROM ATAPIModel DVD-120S, ATAPI CD/DVD-ROM drive
Probing IDE interface ide2...
Probing IDE interface ide3...
Probing IDE interface ide4...
Probing IDE interface ide5...
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 80293248 sectors (41110 MB) w/2048KiB Cache, CHS=65535/16/63
hda: cache flushes supported
 /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 >
hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
hdd: ATAPI 40X DVD-ROM drive, 256kB Cache
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
lp0: using parport0 (interrupt-driven).
mice: PS/2 mouse device common for all mice
input: ImPS/2 Generic Wheel Mouse on isa0060/serio1
ts: Compaq touchscreen protocol output
ieee1394: Initialized config rom entry `ip1394'
sbp2: $Rev: 1219 $ Ben Collins <email address hidden>
Linux agpgart interface v0.100 (c) Dave Jones
nvidia: module license 'NVIDIA' taints kernel.
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module 1.0-7174 Tue Mar 22
06:44:39 PST 2005
Capability LSM initialized
device-mapper: 4.3.0-ioctl (2004-09-30) initialised: <email address hidden>
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
cdrom: open failed.
cdrom: open failed.
Real Time Clock Driver v1.12
input: PC Speaker
inserting floppy driver for 2.6.10-5-386
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
agpgart: Detected VIA KT400/KT400A/KT600 chipset
agpgart: Maximum main memory to use for agp memory: 816M
agpgart: AGP aperture is 64M @ 0xf8000000
cpci_hotplug: CompactPCI Hot Plug Core version: 0.2
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
shpchp: acpi_shpchprm:\_SB_.PCI0 evaluate _BBN fail=0x5
shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x5
pciehp: acpi_pciehprm:\_SB_.PCI0 evaluate _BBN fail=0x5
pciehp: acpi_pciehprm:get_device PCI ROOT HID fail=0x5
ohci1394: $Rev: 1223 $ Ben Collins <email address hidden>
ACPI: PCI interrupt 0000:00:07.0[A] -> GSI 17 (level, low) -> IRQ 17
ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[17] MMIO=[ec800000-ec8007ff] Max
Packet=[2048]
b44.c:v0.95 (Aug 3, 2004)
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 18 (level, low) -> IRQ 18
eth0: Broadcom 4400 10/100BaseT Ethernet 00:e0:18:ae:c5:f6
Linux video capture interface: v1.00
bttv: driver version 0.9.15 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
ACPI: PCI interrupt 0000:00:0b.0[A] -> GSI 19 (level, low) -> IRQ 19
bttv0: Bt878 (rev 17) at 0000:00:0b.0, irq: 19, latency: 32, mmio: 0xef000000
bttv0: detected: ATI TV Wonder/VE [card=64], PCI subsystem ID is 1002:0003
bttv0: using: ATI TV-Wonder VE [card=64,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=19
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
tuner: chip found at addr 0xc0 i2c-bus bt878 #0 [sw]
tuner: type set to 19 (Temic PAL* auto (4006 FN5)) by bt878 #0 [sw]
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
ieee1394: Host added: ID:BUS[0-00:1023] GUID[00e0180000099b97]
b44: eth0: Link is down.
ACPI: PCI interrupt 0000:00:0b.1[A] -> GSI 19 (level, low) -> IRQ 19
NET: Registered protocol family 17
ACPI: PCI interrupt 0000:00:0e.0[A] -> GSI 17 (level, low) -> IRQ 17
gameport: pci0000:00:0e.1 speed 1242 kHz
8139too Fast Ethernet driver 0.9.27
ACPI: PCI interrupt 0000:00:0f.0[A] -> GSI 18 (level, low) -> IRQ 18
eth1: RealTek RTL8139 at 0xa800, 00:50:ba:b0:7b:8c, IRQ 18
eth1: Identified 8139 chip type 'RTL-8139C'
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.2
ACPI: PCI interrupt 0000:00:10.0[A] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.0: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller
uhci_hcd 0000:00:10.0: irq 21, io base 0xa400
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:10.1[B] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.1: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#2)
uhci_hcd 0000:00:10.1: irq 21, io base 0xa000
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI interrupt 0000:00:10.2[C] -> GSI 21 (level, low) -> IRQ 21
uhci_hcd 0000:00:10.2: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (#3)
uhci_hcd 0000:00:10.2: irq 21, io base 0x9800
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
b44: eth0: Link is up at 100 Mbps, full duplex.
b44: eth0: Flow control is on for TX and on for RX.
usb 2-1: new low speed USB device using uhci_hcd and address 2
ACPI: PCI interrupt 0000:00:10.3[D] -> GSI 21 (level, low) -> IRQ 21
ehci_hcd 0000:00:10.3: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.3: irq 21, pci mem 0xea000000
ehci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
ehci_hcd 0000:00:10.3: USB 2.0 initialized, EHCI 1.00, driver 26 Oct 2004
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 6 ports detected
irda_init()
NET: Registered protocol family 23
VP_IDE: IDE controller at PCI slot 0000:00:11.1
ACPI: PCI interrupt 0000:00:11.1[A]: no GSI
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
VP_IDE: port 0x01f0 already claimed by ide0
VP_IDE: port 0x0170 already claimed by ide1
VP_IDE: neither IDE port enabled (BIOS)
ACPI: PCI interrupt 0000:00:11.5[C] -> GSI 22 (level, low) -> IRQ 22
PCI: Setting latency timer of device 0000:00:11.5 to 64
usb 2-1: new low speed USB device using uhci_hcd and address 3
usbcore: registered new driver hiddev
input: USB HID v1.10 Keyboard [Logitech USB Receiver] on usb-0000:00:10.1-1
input: USB HID v1.10 Mouse [Logitech USB Receiver] on usb-0000:00:10.1-1
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
eth1: link down
NET: Registered protocol family 10
Disabled Privacy Extensions on device c02f0500(lo)
IPv6 over IPv4 tunneling driver
ACPI: Power Button (FF) [PWRF]
ibm_acpi: ec object not found
apm: BIOS version 1.2 Flags 0x0b (Driver version 1.16ac)
apm: overridden by ACPI.
agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
drivers/usb/input/hid-input.c: event field not found
drivers/usb/input/hid-input.c: event field not found
ip_tables: (C) 2000-2002 Netfilter core team
ip_conntrack version 2.1 (7168 buckets, 57344 max) - 336 bytes per conntrack
eth1: no IPv6 routers present
eth0: no IPv6 routers present
hdd: status error: status=0xd8 { Busy }
hdd: status error: error=0x04Aborted Command
hdd: ATAPI reset complete
NVRM: Xid: 6, PE0000 0304 00000000 0000fb88 0005e304 7fff7fff
eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
agpgart: Found an AGP 3.5 compliant device at 0000:00:00.0.
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
hdd: status error: status=0xd8 { Busy }
hdd: status error: error=0x04Aborted Command
hdd: ATAPI reset complete
hdd: request sense failure: status=0x51 { DriveReady SeekComplete Error }
hdd: request sense failure: error=0x04Aborted Command

Revision history for this message
Matt Galvin (mgalvin) wrote :

I have also seen this happen on both of my Hoary machines. This seems to happen
sometimes when the machine boots up with a CD in the CD-ROM drive. (A
non-bootable CD that is)

Revision history for this message
Daniel Trimble (dstrimble) wrote :

(In reply to comment #1)
> I have also seen this happen on both of my Hoary machines. This seems to happen
> sometimes when the machine boots up with a CD in the CD-ROM drive. (A
> non-bootable CD that is)

It happens to me no matter what is in the drives. You have a fix for the problem?

Revision history for this message
Daniel Trimble (dstrimble) wrote :

The CDROM and DVDROM work fine in Windows xp, and occasionaly in ubuntu hoary.
Just occasionally when logging into gnome get an error failed to initialize hal.
It then basically locks up the gnome login. I usually have to reboot to get back
into gnome. I have the CDROM and DVDROM on the same IDE cable, a hard drive on
another IDE cable with winxp, and a SATA hard drive with ubuntu. Occasionally
also, gdm will simply lockup and I will have to ssh in to restart gdm.

Revision history for this message
Matt Galvin (mgalvin) wrote :

(In reply to comment #2)
> It happens to me no matter what is in the drives. You have a fix for the problem?
>
>

Yea, take the CD out of the drive ;) Sorry, sadly I have no real fix for this
problem. I have just gotten into the habit of taking any CD's out of my internal
drive before I shutdown/reboot so it never bothered me much. I usually use my
extrnal drive that is on top of my desk, and it doesn't happen with that drive.

Revision history for this message
Daniel Trimble (dstrimble) wrote :

(In reply to comment #4)
> (In reply to comment #2)
> > It happens to me no matter what is in the drives. You have a fix for the
problem?
> >
> >
>
> Yea, take the CD out of the drive ;) Sorry, sadly I have no real fix for this
> problem. I have just gotten into the habit of taking any CD's out of my internal
> drive before I shutdown/reboot so it never bothered me much. I usually use my
> extrnal drive that is on top of my desk, and it doesn't happen with that drive.

Well, it happens to me regardless, keep an eye for me on any possible solutions
though. Thanks.

I just also realized that when I am logging into gnome, if I kill dbus-daemon-1,
gnome will at least come right up. Without hal support though of course.

Daniel

Revision history for this message
Marc Simpson (mls001) wrote :

I just installed Hoary 5.04 and am having the same problems with gnome freezing
when I log in (intermittent) and the "failure to initiate HAL" error message. I
also can get gnome running again by 'kill dbus-daemon-1' or rebooting. I am new
to Ubuntu and like what I see so far except for this annoyance.

I would be grateful for any help you can provide.

Revision history for this message
David Sinton (matrix15) wrote :

Created an attachment (id=2199)
Addtional HAL error info form another user

I'm getting the same error message with or without a CD in the drive after
Ubuntu auto login. My system is up to date as of 05:00PM MDT, 04/30/2005.
Disk icons no longer auto appear on desktop when inserted into drives. My
configuration is included in the attached file.

Revision history for this message
Ben Stanley (ben-stanley) wrote :

Hi,

I have this problem as well. My symptoms are as follows:

1) boot up the system.
1.1) switch to text console by CTRL+ALT+F1, log in, do ps -ale.
     note that I see lots of 10-hal.dev and 20-hal.hotplug and udev processes.
These last for about 2 minutes.
2) on graphical login screen (gdm) CTRL-ALT-F7, log in
3) Gnome starts, gives me brown background with panels top + bottom, and after a
little while presents "failed to initialize HAL" message.
4) if I wait until the 10-hal.dev and 20-hal.hotplug processes have stopped,
Gnome comes up normally (without logging out)
5) If I wait for a few minutes before logging in to gdm, then Gnome comes up OK
the first time.

I have two CDROM drives installed on the same cable, problem happens without
having a CD in the drive...

I'm looking forward to having this fixed, as I installed Ubuntu for a friend who
is a computer newbie, and its driving him nuts... leaving him unimpressed.

Revision history for this message
Ben Stanley (ben-stanley) wrote :

Further Info:
1) time for hal processes to stop seems to be random. Sometimes quick, sometimes >20min (not
tested further). Perhaps a race condition?
2) I don't get this error when booting the same machine from the 5.04 live CD.
3) when logging in and receiving the "error initializing HAL" message, acknowledging the
dialogue, and then waiting for the hal processes to stop, I do not get a normal session. I get
the desktop background and any windows, but no top & bottom panels. Only way to exit session is
by CTRL-ALT-BS.
4) I have now tried to downgrade/remove all updated/installed software to match the CD
installation set as closely as possible, and I am still experiencing the "error initializing HAL"
problem.

Revision history for this message
Ben Stanley (ben-stanley) wrote :

I did some more work on tracking this down, as the Ubuntu Live CD does not
display the HAL initialization error. In fact, I completely re-installed the
whole system from scratch, and made notes as I went, and tested continuously to
determine the cause of the problem.

It turns out that I can make the error come and go by editing /etc/hdparm.conf
and enabling/disabling, respectively, the DMA setting on the second DVD drive
(/dev/hdd).

I have not tested whether this can cause the problem on a clean installation of
Hoary. It does cause the problem on Hoary + extra packages.

The drives in my system are as follows:
/dev/hda:
        ATA device, with non-removable media
        Model Number: Maxtor 6Y080L0
        Serial Number: Y2151XLC
        Firmware Revision: YAR41BW0
(there is no /dev/hdb)
/dev/hdc:
        ATAPI CD-ROM, with removable media
        Model Number: HP DVD Writer 630
        Serial Number: CNK503160C
        Firmware Revision: 9H11
/dev/hdd:
        ATAPI CD-ROM, with removable media
        Model Number: LITE-ON DVD SOHD-16P9S
        Serial Number:
        Firmware Revision: FS07

If you need any further information about the configuration of this system in
order to diagnose the problem, don't hesitate to ask. I'm just happy that it is
no longer giving HAL initialization errors.

Ben Stanley.

Revision history for this message
Martin Pitt (pitti) wrote :

Does that mean that hal crashes on gnome login or freezes?

Can you please get a "hal debugging output" as described in the second half of
http://www.ubuntulinux.org/wiki/DebuggingRemovableDevices ? Of course hal cannot
fix the low-level problem of non-working DMA on your CD-ROM drives, but it
should behave sanely at least.

Thanks in advance!

Revision history for this message
koppor (olly) wrote :

(In reply to comment #10)

> It turns out that I can make the error come and go by editing /etc/hdparm.conf
> and enabling/disabling, respectively, the DMA setting on the second DVD drive
> (/dev/hdd).

Same thing here:

When not initializing the DMA of the CDROM, HAL fails to start if Windows has
been booted before. After a cold-start, it worked.

Now, with disabling DMA it works in both cases.

Revision history for this message
Martin Pitt (pitti) wrote :

Please note that for reasons like this DMA is disabled by default in a standard
installation.

Revision history for this message
Michael Groszek (mig-82) wrote :

(In reply to comment #13)
> Please note that for reasons like this DMA is disabled by default in a standard
> installation.

So does this mean that expecting to have DMA on two disc drives is unreasonable
or is there a bug somewhere?

I am having the same problem and I also have two disc drives with DMA enabled on
the same channel. However the error is not as repeatable for me. It only occurs
every third boot or so. I guess I can turn dma off on the DVD-ROM as I'm only
using it for extra packages.
DMA works in Windows so I don't know whether the hardware should take the blame.
But then again, so much pc hardware is crappy at implementing standards which
leads to interesting phenomenon. They seem to just bang out new devices rather
than making them properly.

Also, how do I apply that debugging procedure to a non removable device?

Revision history for this message
Zach (uid000) wrote :

Experiencing similar problems to those mentioned above.
In order to put DVD/CD drives in dma I added piix & ide-core to /etc/modules
above other ide modules. Also edited hdparm.conf

For me The problem seems most consistent on the 686-smp kernel (1xHT P4 cpu)
It happens less consistently on the 686, non-smp kernel.
On the 386 kernel, I've yet to see it happen.

Abit IS7, Intel 865/ICH5 w/onboard SATA
Additional details:
DVD-ROM on hda (pioneer 120s)
CD-RW on hdc (lite-on something or other)
Windows on sda (sata 1)
Ubuntu on sdb (sata 2)

I've since upgraded to breezy (colony 1). The HAL problem seemed to go away,
though there were still erratic problems regarding the hda DVD-ROM drive & dma.
 I swapped out that drive with another and DMA-related issues have *mostly*
cleared up.

Revision history for this message
Ross Cawston-Grant (phzi) wrote :

I recently started having the same problem, and realized it was related to a
change I made in my /etc/hdparm.conf file to enable DMA.

I had added the following lines, and found that removing them solves the problem
(after a reboot):

  /dev/cdrom {
       dma = on
  }
  /dev/cdrom1 {
       dma = on
  }

You might want to check if DMA is enabled in hdparm.conf, and try removing it.

-phzi

Revision history for this message
Martin Pitt (pitti) wrote :

That's a known bug, some drives just don't like DMA, which is the reason Ubuntu
doesn't enable DMA for CD-ROMs by default.

This bug has been marked as a duplicate of bug 36185.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.