PROBLEM: ide hdma dma_timer_expiry

From: Stian B. Barmen
Date: Tue May 16 2006 - 06:16:40 EST


[1.] One line summary of the problem:

Kernel Panic every 24-48 hours after upgrade from 2.6.15.4 -> 2.6.16.15

[2.] Full description of the problem/report:

After the upgrade the screen freezes, usually in the night with a kernel
panic,
but when I get there the screen is black so I never get to see the panic
itself. Anyways I
looked in the syslog and the last entry was:

May 16 04:22:39 [kernel] [234964.520730] hdi: dma_timer_expiry: dma status ==
0x61

When I downgrade to 2.6.16.4 the problems goes away. Have tried to read the
changelogs but
I am stumped as to what the problem is.

Hardware IDE wise is alot of disks, 9 IDE disks on 3 controllers, and the hdi
disk is on a Primise Tech 20269 controller. Smartctl does not report any
problems.

[3.] Keywords (i.e., modules, networking, kernel):

Kernel panic, dma_timer_expiry ide

[4.] Kernel version (from /proc/version):

kermit proc # cat /proc/version
Linux version 2.6.16.15 (root@kermit) (gcc version 3.3.6 (Gentoo 3.3.6,
ssp-3.3.6-1.0, pie-8.7.8)) #2 SMP Thu May 11 10:01:19 CEST 2006

[5.] Output of Oops.. message (if applicable) with symbolic information
resolved (see Documentation/oops-tracing.txt)*
[6.] A small shell script or example program which triggers the
problem (if possible) *
[7.] Envoironment *
[7.1.] Software (add the output of the ver_linux script here)

kermit scripts # ./ver_linux
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

Linux kermit 2.6.16.15 #2 SMP Thu May 11 10:01:19 CEST 2006 i686 Pentium III
(Coppermine) GNU/Linux

Gnu C 3.3.6
Gnu make 3.80
binutils 2.16.1
util-linux 2.12r
mount 2.12r
module-init-tools 3.2.1
e2fsprogs 1.38
reiserfsprogs line
reiser4progs line
PPP 2.4.2
nfs-utils 1.0.6
Linux C Library 2.3.6
Dynamic linker (ldd) 2.3.6
Procps 3.2.6
Net-tools 1.60
Kbd 1.12
Sh-utils 5.94
udev 087
Modules Loaded aic7xxx scsi_transport_spi parport_pc parport tun nfsd
exportfs nfs lockd nfs_acl sunrpc aes

[7.2.] Processor information (from /proc/cpuinfo):
kermit scripts # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 3
cpu MHz : 825.790
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 1654.45

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 8
model name : Pentium III (Coppermine)
stepping : 3
cpu MHz : 825.790
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 1651.45

[7.3.] Module information (from /proc/modules):
kermit scripts # cat /proc/modules
aic7xxx 154932 0 - Live 0xf092a000
scsi_transport_spi 17216 1 aic7xxx, Live 0xf08e2000
parport_pc 27876 0 - Live 0xf0922000
parport 30056 1 parport_pc, Live 0xf0919000
tun 8384 1 - Live 0xf08d7000
nfsd 199460 13 - Live 0xf0982000
exportfs 4384 1 nfsd, Live 0xf08c7000
nfs 189576 0 - Live 0xf0952000
lockd 53320 3 nfsd,nfs, Live 0xf08e9000
nfs_acl 2976 2 nfsd,nfs, Live 0xf0813000
sunrpc 124092 10 nfsd,nfs,lockd,nfs_acl, Live 0xf08f9000
aes 31264 0 - Live 0xf08ce000

[7.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem)

kermit scripts # cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
02f8-02ff : serial
0378-037a : parport0
037b-037f : parport0
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial
0cf8-0cff : PCI conf1
5000-500f : 0000:00:07.4
6000-607f : 0000:00:07.4
9000-900f : 0000:00:07.1
9000-9007 : ide0
9008-900f : ide1
9c00-9c07 : 0000:00:09.0
9c00-9c07 : ide2
a000-a003 : 0000:00:09.0
a002-a002 : ide2
a400-a407 : 0000:00:09.0
a400-a407 : ide3
a800-a803 : 0000:00:09.0
a802-a802 : ide3
ac00-ac0f : 0000:00:09.0
ac00-ac07 : ide2
ac08-ac0f : ide3
b000-b007 : 0000:00:0a.0
b000-b007 : ide4
b400-b403 : 0000:00:0a.0
b402-b402 : ide4
b800-b807 : 0000:00:0a.0
b800-b807 : ide5
bc00-bc03 : 0000:00:0a.0
bc02-bc02 : ide5
c000-c00f : 0000:00:0a.0
c000-c007 : ide4
c008-c00f : ide5
c400-c4ff : 0000:00:0b.0
c800-c83f : 0000:00:0c.0
c800-c83f : e100

kermit scripts # cat /proc/iomem
00000000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000c8000-000ca7ff : Adapter ROM
000cb000-000cb1ff : Adapter ROM
000cc000-000ccfff : Adapter ROM
000f0000-000fffff : System ROM
00100000-2ffeffff : System RAM
00100000-002af2b0 : Kernel code
002af2b1-0036d653 : Kernel data
2fff0000-2fff2fff : ACPI Non-volatile Storage
2fff3000-2fffffff : ACPI Tables
40000000-400fffff : 0000:00:0c.0
40100000-4011ffff : 0000:00:0b.0
40120000-40123fff : 0000:00:09.0
40124000-40127fff : 0000:00:0a.0
d0000000-d3ffffff : 0000:00:00.0
d4000000-d6ffffff : PCI Bus #01
d4000000-d4003fff : 0000:01:00.0
d4010000-d401ffff : 0000:01:00.0
d5000000-d57fffff : 0000:01:00.0
d7000000-d7ffffff : PCI Bus #01
d7000000-d7ffffff : 0000:01:00.0
d9000000-d90fffff : 0000:00:0c.0
d9000000-d90fffff : e100
d9100000-d9103fff : 0000:00:0a.0
d9104000-d9107fff : 0000:00:09.0
d9108000-d9108fff : 0000:00:0c.0
d9108000-d9108fff : e100
d9109000-d9109fff : 0000:00:0b.0
d9109000-d9109fff : aic7xxx
fec00000-fec00fff : reserved
fee00000-fee00fff : reserved
ffff0000-ffffffff : reserved


[7.5.] PCI information ('lspci -vvv' as root)

kermit scripts # lspci -vvv
00:00.0 Host bridge: VIA Technologies, Inc. VT82C693A/694x [Apollo PRO133x]
(rev c4)
Subsystem: ABIT Computer Corp. Unknown device a204
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR-
Latency: 8
Region 0: Memory at d0000000 (32-bit, prefetchable) [size=64M]
Capabilities: [a0] AGP version 2.0
Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans-
64bit- FW- AGP3- Rate=x1,x2
Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW-
Rate=<none>
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:01.0 PCI bridge: VIA Technologies, Inc. VT82C598/694x [Apollo MVP3/Pro133x
AGP] (prog-if 00 [Normal decode])
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort+ >SERR- <PERR-
Latency: 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: 0000f000-00000fff
Memory behind bridge: d4000000-d6ffffff
Prefetchable memory behind bridge: d7000000-d7ffffff
Secondary status: 66MHz- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- <SERR- <PERR-
BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B-
Capabilities: [80] Power Management version 2
Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:07.0 ISA bridge: VIA Technologies, Inc. VT82C686 [Apollo Super South] (rev
40)
Subsystem: ABIT Computer Corp. Unknown device 0000
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping+ SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 0
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:07.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: VIA Technologies, Inc.
VT82C586/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32
Region 4: I/O ports at 9000 [size=16]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:07.4 Bridge: VIA Technologies, Inc. VT82C686 [Apollo Super ACPI] (rev 40)
Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin ? routed to IRQ 9
Capabilities: [68] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:09.0 Mass storage controller: Promise Technology, Inc. 20269 (rev 02)
(prog-if 85)
Subsystem: Promise Technology, Inc. Ultra133TX2
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=slow >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (1000ns min, 4500ns max), Cache Line Size 08
Interrupt: pin A routed to IRQ 10
Region 0: I/O ports at 9c00 [size=8]
Region 1: I/O ports at a000 [size=4]
Region 2: I/O ports at a400 [size=8]
Region 3: I/O ports at a800 [size=4]
Region 4: I/O ports at ac00 [size=16]
Region 5: Memory at d9104000 (32-bit, non-prefetchable) [size=16K]
Expansion ROM at 40120000 [size=16K]
Capabilities: [60] Power Management version 1
Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0a.0 Mass storage controller: Promise Technology, Inc. 20269 (rev 02)
(prog-if 85)
Subsystem: Promise Technology, Inc. Ultra133TX2
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=slow >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (1000ns min, 4500ns max), Cache Line Size 08
Interrupt: pin A routed to IRQ 11
Region 0: I/O ports at b000 [size=8]
Region 1: I/O ports at b400 [size=4]
Region 2: I/O ports at b800 [size=8]
Region 3: I/O ports at bc00 [size=4]
Region 4: I/O ports at c000 [size=16]
Region 5: Memory at d9100000 (32-bit, non-prefetchable) [size=16K]
Expansion ROM at 40124000 [size=16K]
Capabilities: [60] Power Management version 1
Flags: PMEClk- DSI+ D1+ D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0b.0 SCSI storage controller: Adaptec AIC-7892B U160/m (rev 02)
Subsystem: Adaptec 19160 Ultra160 SCSI Controller
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (10000ns min, 6250ns max), Cache Line Size 08
Interrupt: pin A routed to IRQ 11
BIST result: 00
Region 0: I/O ports at c400 [disabled] [size=256]
Region 1: Memory at d9109000 (64-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 40100000 [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0c.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet Pro 100]
(rev 08)
Subsystem: Intel Corporation EtherExpress PRO/100+ Management Adapter
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32 (2000ns min, 14000ns max), Cache Line Size 08
Interrupt: pin A routed to IRQ 5
Region 0: Memory at d9108000 (32-bit, non-prefetchable) [size=4K]
Region 1: I/O ports at c800 [size=64]
Region 2: Memory at d9000000 (32-bit, non-prefetchable) [size=1M]
[virtual] Expansion ROM at 40000000 [disabled] [size=1M]
Capabilities: [dc] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-

01:00.0 VGA compatible controller: Matrox Graphics, Inc. MGA G100 [Productiva]
AGP (rev 02) (prog-if 00 [VGA])
Subsystem: Matrox Graphics, Inc. MGA-G100 AGP
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping+ SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort-
<TAbort- <MAbort- >SERR- <PERR-
Latency: 32
Interrupt: pin A routed to IRQ 10
Region 0: Memory at d7000000 (32-bit, prefetchable) [size=16M]
Region 1: Memory at d4000000 (32-bit, non-prefetchable) [size=16K]
Region 2: Memory at d5000000 (32-bit, non-prefetchable) [size=8M]
[virtual] Expansion ROM at d4010000 [disabled] [size=64K]
Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [f0] AGP version 1.0
Status: RQ=2 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans-
64bit- FW- AGP3- Rate=x1
Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP- GART64- 64bit- FW-
Rate=<none>

[7.6.] SCSI information (from /proc/scsi/scsi)

kermit scripts # cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 02 Lun: 00
Vendor: PIONEER Model: DVD-ROM DVD-303 Rev: 1.06
Type: CD-ROM ANSI SCSI revision: 02

[7.7.] Other information that might be relevant to the problem
(please look in /proc and include all information that you
think to be relevant):


kermit scripts # cat /proc/ide/drivers
ide-disk version 1.18
ide-cdrom version 4.61
ide-scsi version 0.92


kermit scripts # cat /proc/ide/hdi/settings
name value min max mode
---- ----- --- --- ----
acoustic 0 0 254 rw
address 1 0 2 rw
bios_cyl 30401 0 65535 rw
bios_head 255 0 255 rw
bios_sect 63 0 63 rw
bswap 0 0 1 r
current_speed 69 0 70 rw
failures 0 0 65535 rw
init_speed 69 0 70 rw
io_32bit 0 0 3 rw
keepsettings 0 0 1 rw
lun 0 0 7 rw
max_failures 1 0 65535 rw
multcount 16 0 16 rw
nice1 1 0 1 rw
nowerr 0 0 1 rw
number 0 0 3 rw
pio_mode write-only 0 255 w
unmaskirq 0 0 1 rw
using_dma 1 0 1 rw
wcache 1 0 1 rw

kermit proc # hdparm /dev/hdi

/dev/hdi:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 30401/255/63, sectors = 250059350016, start = 0

[X.] Other notes, patches, fixes, workarounds: none

Attachment: smime.p7s
Description: S/MIME cryptographic signature