Skip to contentSkip to conversation

IDE/ATAPI timeouts & lost interrupts on alpha with 2.6.20.2

DISCUSSION Russell Howe 2 participants 4 messages Mar 10, 2007 – Mar 12, 2007 libata

lore
Share & tools
lore
#0 lore raw

Evening all,

I just built a 2.6.20.2 kernel for my alpha (a digital personal workstation 500AU), and on bootup noticed the messages below, which took a long time to print. There was no media in the CDROM, and there's nothing else hanging off the IDE controller. The messages took several minutes to appear, stalling the boot process.

Unrelated, no doubt, but the output from the init scripts doesn't seem to have made it to the serial console, so I'm not sure what processes were running at the time.

The last kernel I ran on this thing was 2.6.17.11, which I appreciate is a long time ago, so if anyone could suggest a starting point for a binary search to determine the change which caused this regression, I'm all ears! Kernels take a while to build on this box, and I haven't got a crosscompiling toolchain setup...

What's the best way to go about debugging this?

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx [...]
CY82C693: IDE controller at PCI slot 0000:00:07.1
CY82C693: chipset revision 0
CY82C693: not 100% native mode: will probe irqs later
CY82C693U driver v0.34 99-13-12 Andreas S. Krebs ([email protected])

    ide0: BM-DMA at 0x9080-0x9087, BIOS settings: hda:pio, hdb:pio

PCI: Enabling device: (0000:00:07.2), cmd 47
CY82C693: port 0x01f0 already claimed by ide0
CY82C693: neither IDE port enabled (BIOS) Probing IDE interface ide0...
hda: TOSHIBA CD-ROM XM-6202B, ATAPI CD/DVD-ROM drive
hda: IRQ probe failed (0xfffffffff73bfeea) ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide-cd: cmd 0x5a timed out
hda: lost interrupt
ide-cd: cmd 0x5a timed out
hda: lost interrupt
ide-cd: cmd 0x5a timed out
hda: lost interrupt
hda: ATAPI 32X CD-ROM drive, 256kB Cache, DMA Uniform CD-ROM driver Revision: 3.20
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt

Signature · 2 lines
Russell Howe       | Why be just another cog in the machine,
[email protected] | when you can be the spanner in the works?
#1 lore raw

Hi,

Quoted 27 lines · Russell Howe

Evening all,

I just built a 2.6.20.2 kernel for my alpha (a digital personal workstation 500AU), and on bootup noticed the messages below, which took a long time to print. There was no media in the CDROM, and there's nothing else hanging off the IDE controller. The messages took several minutes to appear, stalling the boot process.

Unrelated, no doubt, but the output from the init scripts doesn't seem to have made it to the serial console, so I'm not sure what processes were running at the time.

The last kernel I ran on this thing was 2.6.17.11, which I appreciate is a long time ago, so if anyone could suggest a starting point for a binary search to determine the change which caused this regression, I'm all ears! Kernels take a while to build on this box, and I haven't got a crosscompiling toolchain setup...

What's the best way to go about debugging this?

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx [...]
CY82C693: IDE controller at PCI slot 0000:00:07.1
CY82C693: chipset revision 0
CY82C693: not 100% native mode: will probe irqs later
CY82C693U driver v0.34 99-13-12 Andreas S. Krebs ([email protected])

Quoted 4 lines
    ide0: BM-DMA at 0x9080-0x9087, BIOS settings: hda:pio, hdb:pio

PCI: Enabling device: (0000:00:07.2), cmd 47
CY82C693: port 0x01f0 already claimed by ide0
CY82C693: neither IDE port enabled (BIOS)

It seems that the generic IDE host driver is loaded first (CONFIG_IDE_GENERIC=y/m) and "steals" resources needed by cy82c693.

Please try again without the generic IDE host driver so the proper driver could be used.

If it doesn't help I think that the best way to chase it is git bisect.

Thanks,
Bart

Quoted 31 lines

Probing IDE interface ide0...
hda: TOSHIBA CD-ROM XTAPI CD/DVD-ROM drive
hda: IRQ probe failed (0xfffffffff73bfeea)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide-cd: cmd 0x5a timed out
hda: lost interrupt
ide-cd: cmd 0x5a timed out
hda: lost interrupt
ide-cd: cmd 0x5a timed out
hda: lost interrupt
hda: ATAPI 32X CD-ROM drive, 256kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt
ide-cd: cmd 0x3 timed out
hda: lost interrupt

Signature · 2 lines
Russell Howe       | Why be just another cog in the machine,
[email protected] | when you can be the spanner in the works?
#2 lore raw
Quoted 13 lines · Bartlomiej Zolnierkiewicz
Quoted 8 lines

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx [...]
CY82C693: IDE controller at PCI slot 0000:00:07.1
CY82C693: chipset revision 0
CY82C693: not 100% native mode: will probe irqs later
CY82C693U driver v0.34 99-13-12 Andreas S. Krebs ([email protected])

Quoted 4 lines
    ide0: BM-DMA at 0x9080-0x9087, BIOS settings: hda:pio, hdb:pio

PCI: Enabling device: (0000:00:07.2), cmd 47
CY82C693: port 0x01f0 already claimed by ide0
CY82C693: neither IDE port enabled (BIOS)

Quoted 5 lines

It seems that the generic IDE host driver is loaded first (CONFIG_IDE_GENERIC=y/m) and "steals" resources needed by cy82c693.

Please try again without the generic IDE host driver so the proper driver could be used.

OK thanks.. new kernel building as I send this.

Could that be why the cy82c693 driver reports both IDE ports as disabled by the BIOS, because the generic IDE layer 'stole' them?

... I suppose I'll find out soon enough :)

Signature · 2 lines
Russell Howe       | Why be just another cog in the machine,
[email protected] | when you can be the spanner in the works?
#3 lore raw
In reply to Bartlomiej Zolnierkiewicz
Quoted 8 lines · Bartlomiej Zolnierkiewicz

Hi,

It seems that the generic IDE host driver is loaded first (CONFIG_IDE_GENERIC=y/m) and "steals" resources needed by cy82c693.

Please try again without the generic IDE host driver so the proper driver could be used.

$ zgrep IDE_GENERIC /proc/config.gz
# CONFIG_IDE_GENERIC is not set

.. and I get the same behaviour

Quoted 1 line

If it doesn't help I think that the best way to chase it is git bisect

git-bisect, here I come..

Signature · 2 lines
Russell Howe       | Why be just another cog in the machine,
[email protected] | when you can be the spanner in the works?