VIA IDE - dma_timer_expiry - 2.4.28
Hi there,
I'm having all kinds of odd issues IDE on these VIA chipsets (VIA C3
mini-itx machines). After a certain amount of time (goes from one
hour to a month) the harddrive (or the whole ide subsystem?) will go nuts with the following messages, which I've finally managed to capture through a serial console. The machine doesn't hardlock but it's impossible to launch any command or reboot the machine remotely. I've even tried with "ide0=serialize ide1=serialize",
since I read on this list that these options would cure most of the obscure IDE setups, but the problem still persists.
I've reproduced this problem with all of the 2.4.2[4-8] series and also with 2.6.3 (which is the only one I tried some time ago). I attach the error messages, lspci and lsmod (kernel is compiled with CONFIG_BLK_DEV_VIA82CXXX=y).
- Error messages:
hdc: dma_timer_expiry: dma status == 0x20
hdc: timeout waiting for DMA
hdc: timeout waiting for DMA
hdc: (__ide_dma_test_irq) called while not waiting
hdc: status timeout: status=0xd0 { Busy }
hdc: drive not ready for command
ide1: reset timed-out, status=0xd0
hdc: status timeout: status=0xd0 { Busy }
hdc: drive not ready for command
ide1: reset timed-out, status=0xd0end_request: I/O error, dev 16:07 (hdc), sector 12845088end_request: I/O error, dev 16:07 (hdc), sector 13369384end_request: I/O error, dev 16:07 (hdc), sector 14155808end_request: I/O error, dev 16:07 (hdc), sector 14417960end_request: I/O error, dev 16:07 (hdc), sector 14942240end_request: I/O error, dev 16:07 (hdc), sector 14942248end_request: I/O error, dev 16:07 (hdc), sector 15204392end_request: I/O error, dev 16:07 (hdc), sector 15466536end_request: I/O error, dev 16:07 (hdc), sector 16252968
<snip similar lines>
end_request: I/O error, dev 16:07 (hdc), sector 19472end_request: I/O error, dev 16:07 (hdc), sector 19480end_request: I/O error, dev 16:07 (hdc), sector 14942240 EXT3-fs error (device ide1(22,7)): ext3_get_inode_loc: unable to read inode block - inode=928422, block=1867780end_request: I/O error, dev 16:07 (hdc), sector 0end_request: I/O error, dev 16:07 (hdc), sector 19488
EXT3-fs error (device ide1(22,7)) in ext3_reserve_inode_write: IO failureend_request: I/O error, dev 16:07 (hdc), sector 0end_request: I/O error, dev 16:07 (hdc), sector 14155808 EXT3-fs error (device ide1(22,7)): ext3_get_inode_loc: unable to read inode block - inode=879555, block=1769476end_request: I/O error, dev 16:07 (hdc), sector 0
EXT3-fs error (device ide1(22,7)) in ext3_reserve_inode_write: IO failure
<snip similar pattern>
end_request: I/O error, dev 16:07 (hdc), sector 0end_request: I/O error, dev 16:07 (hdc), sector 270256end_request: I/O error, dev 16:07 (hdc), sector 20616end_request: I/O error, dev 16:07 (hdc), sector 20624end_request: I/O error, dev 16:07 (hdc), sector 20632end_request: I/O error, dev 16:07 (hdc), sector 20640end_request: I/O error, dev 16:07 (hdc), sector 20648journal_bmap_R65dbd63b: journal block not found at offset 2060 on ide1(22,7) Aborting journal on device ide1(22,7).end_request: I/O error, dev 16:07 (hdc), sector 4144end_request: I/O error, dev 16:07 (hdc), sector 0end_request: I/O error, dev 16:07 (hdc), sector 8end_request: I/O error, dev 16:07 (hdc), sector 262168 ext3_abort called.
EXT3-fs abort (device ide1(22,7)): ext3_journal_start: Detected aborted journal
- Relevant IDE dmesg:
Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xxVP_IDE: IDE controller at PCI slot 00:07.1VP_IDE: chipset revision 6VP_IDE: not 100% native mode: will probe irqs laterVP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci00:07.1
ide0: BM-DMA at 0xc000-0xc007, BIOS settings: hda:pio, hdb:pio
ide1: BM-DMA at 0xc008-0xc00f, BIOS settings: hdc:DMA, hdd:piohdc: IC25N020ATCS04-0, ATA DISK drive
blk: queue c032ad4c, I/O limit 4095Mb (mask 0xffffffff)
ide1 at 0x170-0x177,0x376 on irq 15
hdc: attached ide-disk driver.
hdc: host protected area => 1
hdc: 39070080 sectors (20004 MB) w/1768KiB Cache, CHS=38760/16/63, UDMA(33) Partition check:
hdc: hdc1 hdc2 hdc3 < hdc5 hdc6 hdc7 >
ide: late registration of driver.
- Lsmod:
Module Size Used by Not tainted
8139too 12928 1 mii 2368 0 [8139too] ext3 64320 4 jbd 46684 4 [ext3]
Since I have about half a dozen of machines that fail this way, I was wondering if it is a H/W problem or something else.
Thanks for any hints on how to debug further this problem. John
ps. I'm not subscribed please CC: me
Signature · 2 lines
+++ Sparen Sie mit GMX DSL +++ http://www.gmx.net/de/go/dsl AKTION für Wechsler: DSL-Tarife ab 3,99 EUR/Monat + Startguthaben
00:00.0 Host bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia] (rev 05)
Subsystem: VIA Technologies, Inc. VT8601 [Apollo ProMedia]
Flags: bus master, medium devsel, latency 8
Memory at e0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 2.0
00:01.0 PCI bridge: VIA Technologies, Inc. VT8601 [Apollo ProMedia AGP] (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: e4000000-e57fffff Capabilities: [80] Power Management version 2
00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev 40)
Subsystem: VIA Technologies, Inc. VT82C686/A PCI to ISA Bridge
Flags: bus master, stepping, medium devsel, latency 0
Capabilities: [c0] Power Management version 2
00:07.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
Subsystem: VIA Technologies, Inc. Bus Master IDE
Flags: bus master, medium devsel, latency 32
I/O ports at c000 [size=16]
Capabilities: [c0] Power Management version 2
00:07.2 USB Controller: VIA Technologies, Inc. UHCI USB (rev 1a) (prog-if 00 [UHCI])
Subsystem: Unknown device 0925:1234 Flags: bus master, medium devsel, latency 32, IRQ 12 I/O ports at c400 [size=32] Capabilities: [80] Power Management version 2
00:07.3 USB Controller: VIA Technologies, Inc. UHCI USB (rev 1a) (prog-if 00 [UHCI])
Subsystem: Unknown device 0925:1234 Flags: bus master, medium devsel, latency 32, IRQ 12 I/O ports at c800 [size=32] Capabilities: [80] Power Management version 2
00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
Subsystem: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI]
Flags: medium devsel
Capabilities: [68] Power Management version 2
00:07.5 Multimedia audio controller: VIA Technologies, Inc. AC97 Audio Controller (rev 50)
Subsystem: VIA Technologies, Inc. AC97 Audio Controller Flags: medium devsel, IRQ 5 I/O ports at cc00 [size=256] I/O ports at d000 [size=4] I/O ports at d400 [size=4] Capabilities: [c0] Power Management version 2
00:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 12
I/O ports at d800 [size=256]
Memory at e5810000 (32-bit, non-prefetchable) [size=256] Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [50] Power Management version 2
00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 10
I/O ports at dc00 [size=256]
Memory at e5811000 (32-bit, non-prefetchable) [size=256] Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [50] Power Management version 2
00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139 (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RT8139
Flags: bus master, medium devsel, latency 32, IRQ 11
I/O ports at e000 [size=256]
Memory at e5812000 (32-bit, non-prefetchable) [size=256] Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [50] Power Management version 2
01:00.0 VGA compatible controller: Trident Microsystems CyberBlade/i1 (rev 6a) (prog-if 00 [VGA])
Subsystem: Trident Microsystems CyberBlade/i1
Flags: bus master, 66Mhz, medium devsel, latency 32, IRQ 12
Memory at e4000000 (32-bit, non-prefetchable) [size=8M]
Memory at e5000000 (32-bit, non-prefetchable) [size=128K]
Memory at e4800000 (32-bit, non-prefetchable) [size=8M]
Expansion ROM at <unassigned> [disabled] [size=64K]
Capabilities: [80] AGP version 2.0
Capabilities: [90] Power Management version 1
Quoted 10 lines · John Moretti
hdc:
dma_timer_expiry: dma status ==0x20
hdc: timeout waiting for DMA
hdc: timeout waiting for DMA
hdc: (__ide_dma_test_irq) called while not waiting
hdc: status timeout: status=0xd0 { Busy }
hdc: drive not ready for command
ide1: reset timed-out, status=0xd0
hdc: status timeout: status=0xd0 { Busy }
hdc: drive not ready for command
ide1: reset timed-out, status=0xd0
The drive went for a walk and didn't come back
That could be a whole pile of things (for reference I get 100+ day uptimes on VIA mini-itx boxes)
1. Overheating
2. Lack of power
3. Some glitch that then triggers the kernel error recovery into upsetting the drive.
If it reboots back happily then all 3 are quite plausible