Skip to contentSkip to conversation

VIA vt8235 headache

DISCUSSION Petr Sebor 3 participants 4 messages Feb 3, 2003 – Feb 4, 2003

lore
Share & tools
lore

Petr Sebor

author
#0 lore raw

Hello,

since after the hw update to VIA KT400 board (MSI KT4 Ultra) I am having a problem where I can't access any devices hanging on the secondary IDE1 channel (hdd & cdrom) The hardware does work ok on the 'other' OS though...

This is going on on 2.4.20, 2.4.21-pre4, 2.4.21-pre4-ac1 and 2.4.21-pre4 + the patch Andre is having on kernel.org:

Uniform Multi-Platform E-IDE driver Revision: 7.00beta-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:11.1
PCI: Hardcoded IRQ 14 for device 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:DMA
hda: ST340016A, ATA DISK drive
hdb: IOMEGA ZIP 100 ATAPI Floppy, ATAPI FLOPPY drive
blk: queue c02cce00, I/O limit 4095Mb (mask 0xffffffff)
hdc: QUANTUM FIREBALL CX13.0A, ATA DISK drive
hdd: 50X CD-ROM, ATAPI CD/DVD-ROM drive
blk: queue c02cd270, I/O limit 4095Mb (mask 0xffffffff)
hdd: set_drive_speed_status: status=0x00 { }
ide1: Drive 1 didn't accept speed setting. Oh, well.
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(100)
hdc: lost interrupt
hdc: lost interrupt
hdc: lost interrupt
hdc: host protected area => 1
hdc: 25429824 sectors (13020 MB) w/418KiB Cache, CHS=25228/16/63 Partition check:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
hdc:<3>hdc: lost interrupt
hdc: dma_timer_expiry: dma status == 0x60
hdc: DMA interrupt recovery
hdc: lost interrupt
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x00 { }
hdc: dma_timer_expiry: dma status == 0x60
hdc: DMA interrupt recovery
hdc: lost interrupt
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x00 { }
hdc: recal_intr: status=0xd0 { Busy }

hdc: DMA disabled
hdd: DMA disabled
ide1: reset: master: error (0x00?)
hdc: lost interrupt
hdc: lost interrupt
hdc: lost interrupt
hdc: lost interrupt
[PTBL] [1582/255/63] hdc1

The timeouts takes ages... but it will eventually boot. I can't however access anything on IDE1, this will result to another timeout round with no success at the end.

If I physically remove the /dev/hdc (Quantum Fireball disc), I am getting just this from the cdrom:

hdd: 50X CD-ROM, ATAPI CD/DVD-ROM drive
hdd: DMA disabled
hdd: set_drive_speed_status: status=0x7f { DriveReady DeviceFault SeekComplete DataRequest CorrectedError Index Error }
hdd: set_drive_speed_status: error=0x7f
ide1: Drive 1 didn't accept speed setting. Oh, well.
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(100)
Partition check:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
hdd: ATAPI 40X CD-ROM drive, 128kB Cache, (U)DMA
Uniform CD-ROM driver Revision: 3.12
hdd: irq timeout: status=0xd0 { Busy }
hdd: irq timeout: error=0x00
hdd: DMA disabled
hdd: ATAPI reset timed-out, status=0xd1
ide1: reset: master: error (0x7f?)

I'd be pleased if someone could enlighten me a little bit...

Thanks,
Petr

#1 lore raw

If you remove just the DVD drive what occurs ?

Also do you have ACPI support enabled, as that breaks a lot of systems

#2 lore raw
Quoted 1 line · Alan Cox

If you remove just the DVD drive what occurs ?

The more reports I get the more i think this is a vt8235 hw-bug. Or the vt8235 registers are different from all its predecessors.

I'll send a patch soonish to fix this. (it's the address setup timing - it must be set to 0xff on a vt8235 or problems happen with ATAPI devices).

Quoted 7 lines

Also do you have ACPI support enabled, as that breaks a lot of systems

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 2 lines
Vojtech Pavlik
SuSE Labs
author
#3 lore raw
Quoted 2 lines · Vojtech Pavlik
Quoted 1 line · Alan Cox

If you remove just the DVD drive what occurs ?

With the cdrom removed I am getting nice clean boot with no timeouts, errors or lost interrupts:

Uniform Multi-Platform E-IDE driver Revision: 7.00beta-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 00:11.1
PCI: Hardcoded IRQ 14 for device 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:pio
hda: ST340016A, ATA DISK drive
hdb: IOMEGA ZIP 100 ATAPI Floppy, ATAPI FLOPPY drive
blk: queue c02cce00, I/O limit 4095Mb (mask 0xffffffff)
hdc: QUANTUM FIREBALL CX13.0A, ATA DISK drive
blk: queue c02cd270, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 78165360 sectors (40021 MB) w/2048KiB Cache, CHS=4865/255/63, UDMA(100)
hdc: host protected area => 1
hdc: 25429824 sectors (13020 MB) w/418KiB Cache, CHS=25228/16/63 Partition check:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 >
hdc:<6> [PTBL] [1582/255/63] hdc1

...but when trying to actually mount the disk, I'll get this:

hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x00 { }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x00 { }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x00 { }
hdc: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: dma_intr: error=0x00 { }
hdc: DMA disabled
ide1: reset: master: error (0x00?)
hdc: lost interrupt
hdc: lost interrupt

... and the mount fails.

Quoted 1 line
Quoted 1 line

Also do you have ACPI support enabled, as that breaks a lot of systems

ACPI was enabled, but disabling it (recompiling with ACPI disabled) does not have any effect.

Quoted 6 lines

The more reports I get the more i think this is a vt8235 hw-bug. Or the vt8235 registers are different from all its predecessors.

I'll send a patch soonish to fix this. (it's the address setup timing - it must be set to 0xff on a vt8235 or problems happen with ATAPI devices).

I am still unable to access the disk on IDE1 even with the cdrom removed on that channel. (though from the dmesg it looks like the cdrom makes things even worse)

I have also tried Alan's new 2.4.21-pre4-ac2 (btw: extraversion is still -ac1), with no difference.

I am looking forward to try the patch!

Best regards,
Petr