All of lore.kernel.org
 help / color / mirror / Atom feed
* IDE Timeout problem on Intel PIIX3 (Triton 2) chipset
@ 2004-06-28 12:48 Patrick Dreker
  2004-06-28 20:21 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Dreker @ 2004-06-28 12:48 UTC (permalink / raw)
  To: linux-kernel

Hello...

Any kernel above and including 2.4.21 (including 2.6.5 and 2.6.7, others not 
tested) produces the following errors quite often (once or twice per minute, 
with the corresponding delay) and the harddisk drops out of DMA.

-------------------------------------------------
hda: dma_timer_expiry: dma status == 0x20
hda: timeout waiting for DMA
hda: timeout waiting for DMA
hda: (__ide_dma_test_irq) called while not waiting
hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }

hda: drive not ready for command
-----------------------------------------------

I have checked that the drive and cable are OK (tested in another machine) and 
no matter what drive I connect to the IDE controller, they *all* produce the 
above error and drop DMA after some seconds.

Currently I am stuck at kernel version 2.4.20, as any later kernel severely 
degrades the performance of the machine (Pentium Pro 200).

At http://www.uwsg.iu.edu/hypermail/linux/kernel/0304.1/0332.html I found a 
thread which hints that IRQ sharing maybe the culprit, but /proc/interrupts 
shows that the ide interrupt is not shared...

lspci and /proc/interrupts are included at the end of this mail.

What can I do to debug this problem?

Thanks,
Patrick

lspci:
-----------------------
0000:00:00.0 Host bridge: Intel Corp. 440FX - 82441FX PMC [Natoma] (rev 02)
0000:00:07.0 ISA bridge: Intel Corp. 82371SB PIIX3 ISA [Natoma/Triton II] (rev 
01)
0000:00:07.1 IDE interface: Intel Corp. 82371SB PIIX3 IDE [Natoma/Triton II]
0000:00:0a.0 VGA compatible controller: Texas Instruments TVP4020 [Permedia 2] 
(rev 01)
0000:00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)
0000:00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
--------------------------

/proc/interrupts:
-------------------------
           CPU0
  0:   55623224    IO-APIC-edge  timer
  1:          2    IO-APIC-edge  keyboard
  2:          0          XT-PIC  cascade
  8:          4    IO-APIC-edge  rtc
 10:   59404185   IO-APIC-level  eth1
 11:   64467911   IO-APIC-level  eth0
 14:    9031698    IO-APIC-edge  ide0
NMI:          0
LOC:   55623074
ERR:          0
MIS:      13142
----------------------------

-- 
Patrick Dreker

GPG KeyID  : 0xFCC2F7A7 (Patrick Dreker)
Fingerprint: 7A21 FC7F 707A C498 F370  1008 7044 66DA FCC2 F7A7
Key available from keyservers

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: IDE Timeout problem on Intel PIIX3 (Triton 2) chipset
       [not found] <E1Bevgk-0007jR-4F@rhn.tartu-labor>
@ 2004-06-28 18:47 ` Meelis Roos
  0 siblings, 0 replies; 7+ messages in thread
From: Meelis Roos @ 2004-06-28 18:47 UTC (permalink / raw)
  To: Patrick Dreker, Linux Kernel list

> Any kernel above and including 2.4.21 (including 2.6.5 and 2.6.7, others not
> tested) produces the following errors quite often (once or twice per minute,
> with the corresponding delay) and the harddisk drops out of DMA.

Same here. 3 computers with PIIX4, 2 (or maybe even 3, need to check the
850M Conner too) different disks (all pre-udma but mwdma, 2.5G Seagate
Medalist and 850M WD Caviar). The common denominator seems to be PIIX
chip (PIIX3 and PIIX4 reported so far) and multiword DMA.

It came with 2.4.19 for me - 2.4.18 (and thus also Debian Woody) is fine
but anything with a newer kernel (incl. 2.6.*) is broken - DMA timeouts.

So maybe it is a little different (since your 2.4.20 works) but still
very similar.

-- 
Meelis Roos (mroos@linux.ee)



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: IDE Timeout problem on Intel PIIX3 (Triton 2) chipset
  2004-06-28 12:48 Patrick Dreker
@ 2004-06-28 20:21 ` Bartlomiej Zolnierkiewicz
  2004-06-28 23:25   ` Patrick Dreker
  2004-06-29 14:48   ` Patrick Dreker
  0 siblings, 2 replies; 7+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2004-06-28 20:21 UTC (permalink / raw)
  To: Patrick Dreker; +Cc: linux-kernel

On Monday 28 of June 2004 14:48, Patrick Dreker wrote:
> Hello...

Hi,

> Any kernel above and including 2.4.21 (including 2.6.5 and 2.6.7, others
> not tested) produces the following errors quite often (once or twice per
> minute, with the corresponding delay) and the harddisk drops out of DMA.
>
> -------------------------------------------------
> hda: dma_timer_expiry: dma status == 0x20
> hda: timeout waiting for DMA
> hda: timeout waiting for DMA
> hda: (__ide_dma_test_irq) called while not waiting
> hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
>
> hda: drive not ready for command
> -----------------------------------------------
>
> I have checked that the drive and cable are OK (tested in another machine)
> and no matter what drive I connect to the IDE controller, they *all*
> produce the above error and drop DMA after some seconds.
>
> Currently I am stuck at kernel version 2.4.20, as any later kernel severely
> degrades the performance of the machine (Pentium Pro 200).
>
> At http://www.uwsg.iu.edu/hypermail/linux/kernel/0304.1/0332.html I found a
> thread which hints that IRQ sharing maybe the culprit, but /proc/interrupts
> shows that the ide interrupt is not shared...

This was HPT specific problem.

> lspci and /proc/interrupts are included at the end of this mail.
>
> What can I do to debug this problem?

"diff -u" on "lspci -s 07.1 -xxx" outputs for 2.4.20 and 2.4.21 kernels.

Doing bisection search on 2.4.21-pre kernels would also help.

> Thanks,
> Patrick
>
> lspci:
> -----------------------
> 0000:00:00.0 Host bridge: Intel Corp. 440FX - 82441FX PMC [Natoma] (rev 02)
> 0000:00:07.0 ISA bridge: Intel Corp. 82371SB PIIX3 ISA [Natoma/Triton II]
> (rev 01)
> 0000:00:07.1 IDE interface: Intel Corp. 82371SB PIIX3 IDE [Natoma/Triton
> II] 0000:00:0a.0 VGA compatible controller: Texas Instruments TVP4020
> [Permedia 2] (rev 01)
> 0000:00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
> RTL-8139/8139C/8139C+ (rev 10)
> 0000:00:0d.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
> RTL-8029(AS) --------------------------
>
> /proc/interrupts:
> -------------------------
>            CPU0
>   0:   55623224    IO-APIC-edge  timer
>   1:          2    IO-APIC-edge  keyboard
>   2:          0          XT-PIC  cascade
>   8:          4    IO-APIC-edge  rtc
>  10:   59404185   IO-APIC-level  eth1
>  11:   64467911   IO-APIC-level  eth0
>  14:    9031698    IO-APIC-edge  ide0
> NMI:          0
> LOC:   55623074
> ERR:          0
> MIS:      13142
> ----------------------------


^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: IDE Timeout problem on Intel PIIX3 (Triton 2) chipset
@ 2004-06-28 20:27 Chris Rankin
  2004-06-29  1:21 ` Patrick Dreker
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Rankin @ 2004-06-28 20:27 UTC (permalink / raw)
  To: linux-ide; +Cc: meelis.roos, patrick

> Any kernel above and including 2.4.21 (including
> 2.6.5 and 2.6.7, others not tested) produces the
> following errors quite often (once or twice per
> minute, with the corresponding delay) and the
> harddisk drops out of DMA.

Linux 2.4.26-UP is fine for me here, for both hda and
hdb. This box has 64 MB RAM, amd the kernel is
compiled with gcc-3.2.3.

# lspci
00:00.0 Host bridge: Intel Corp. 430VX - 82437VX TVX
[Triton VX] (rev 02)
00:07.0 ISA bridge: Intel Corp. 82371SB PIIX3 ISA
[Natoma/Triton II] (rev 01)
00:07.1 IDE interface: Intel Corp. 82371SB PIIX3 IDE
[Natoma/Triton II]
00:07.2 USB Controller: Intel Corp. 82371SB PIIX3 USB
[Natoma/Triton II] (rev 01)
00:08.0 VGA compatible controller: ATI Technologies
Inc 3D Rage I/II 215GT [Mach64 GT] (rev 41)
00:0d.0 VGA compatible controller: Matrox Graphics,
Inc. MGA 2164W [Millennium II]
00:0e.0 PCI bridge: Digital Equipment Corporation
DECchip 21152 (rev 03)
00:0f.0 Ethernet controller: Intel Corp. 82557/8/9
[Ethernet Pro 100] (rev 08)
01:04.0 Ethernet controller: Intel Corp. 82557/8/9
[Ethernet Pro 100] (rev 05)
01:05.0 Ethernet controller: Intel Corp. 82557/8/9
[Ethernet Pro 100] (rev 05)

# cat /proc/ide/hda/settings
name                    value           min           
 max             mode
----                    -----           ---           
 ---             ----
acoustic                0               0             
 254             rw
address                 0               0             
 2               rw
bios_cyl                787             0             
 65535           rw
bios_head               128             0             
 255             rw
bios_sect               63              0             
 63              rw
breada_readahead        8               0             
 255             rw
bswap                   0               0             
 1               r
current_speed           34              0             
 70              rw
failures                0               0             
 65535           rw
file_readahead          124             0             
 16384           rw
init_speed              34              0             
 70              rw
io_32bit                3               0             
 3               rw
keepsettings            0               0             
 1               rw
lun                     0               0             
 7               rw
max_failures            1               0             
 65535           rw
max_kb_per_request      128             1             
 255             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
slow                    0               0             
 1               rw
unmaskirq               1               0             
 1               rw
using_dma               1               0             
 1               rw
wcache                  0               0             
 1               rw

# cat /proc/ide/hdb/settings
name                    value           min           
 max             mode
----                    -----           ---           
 ---             ----
acoustic                0               0             
 254             rw
address                 0               0             
 2               rw
bios_cyl                667             0             
 65535           rw
bios_head               240             0             
 255             rw
bios_sect               63              0             
 63              rw
breada_readahead        8               0             
 255             rw
bswap                   0               0             
 1               r
current_speed           0               0             
 70              rw
failures                0               0             
 65535           rw
file_readahead          124             0             
 16384           rw
init_speed              0               0             
 70              rw
io_32bit                3               0             
 3               rw
keepsettings            0               0             
 1               rw
lun                     0               0             
 7               rw
max_failures            1               0             
 65535           rw
max_kb_per_request      128             1             
 255             rw
multcount               16              0             
 16              rw
nice1                   1               0             
 1               rw
nowerr                  0               0             
 1               rw
number                  1               0             
 3               rw
pio_mode                write-only      0             
 255             w
slow                    0               0             
 1               rw
unmaskirq               1               0             
 1               rw
using_dma               1               0             
 1               rw
wcache                  0               0             
 1               rw

# uptime
 21:21:38 up 75 days, 1 min,  5 users,  load average:
0.00, 0.00, 0.00

Uniform Multi-Platform E-IDE driver Revision:
7.00beta4-2.4
ide: Assuming 33MHz system bus speed for PIO modes;
override with idebus=xx
PIIX3: IDE controller at PCI slot 00:07.1
PIIX3: chipset revision 0
PIIX3: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xefa0-0xefa7, BIOS settings:
hda:pio, hdb:pio
    ide1: BM-DMA at 0xefa8-0xefaf, BIOS settings:
hdc:pio, hdd:pio
hda: WDC AC33200L, ATA DISK drive
hdb: WDC AC35100L, ATA DISK drive
blk: queue c02b5080, I/O limit 4095Mb (mask
0xffffffff)
blk: queue c02b51bc, I/O limit 4095Mb (mask
0xffffffff)
hdc: TOSHIBA CD-ROM XM-6002B, ATAPI CD/DVD-ROM drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady
SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError
}
hda: 6346368 sectors (3249 MB) w/256KiB Cache,
CHS=787/128/63, DMA
hdb: attached ide-disk driver.
hdb: task_no_data_intr: status=0x51 { DriveReady
SeekComplete Error }
hdb: task_no_data_intr: error=0x04 { DriveStatusError
}
hdb: host protected area => 1
hdb: 10085040 sectors (5164 MB) w/256KiB Cache,
CHS=667/240/63, (U)DMA
Partition check:
 hda: hda1 hda2 hda3
 hdb: hdb1 hdb2 hdb3 hdb4

# cat /proc/interrupts
           CPU0
  0:  648044291          XT-PIC  timer
  1:       6916          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  4:      27998          XT-PIC  serial
  9:        385          XT-PIC  usb-uhci
 10:   13465208          XT-PIC  eth2, eth0
 11:     604729          XT-PIC  eth1
 14:    4091193          XT-PIC  ide0
 15:         36          XT-PIC  ide1
NMI:          0
LOC:          0
ERR:          0
MIS:          0

Cheers,
Chris



	
	
		
___________________________________________________________ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself http://uk.messenger.yahoo.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: IDE Timeout problem on Intel PIIX3 (Triton 2) chipset
  2004-06-28 20:21 ` Bartlomiej Zolnierkiewicz
@ 2004-06-28 23:25   ` Patrick Dreker
  2004-06-29 14:48   ` Patrick Dreker
  1 sibling, 0 replies; 7+ messages in thread
From: Patrick Dreker @ 2004-06-28 23:25 UTC (permalink / raw)
  To: linux-kernel; +Cc: Bartlomiej Zolnierkiewicz

Am Montag, 28. Juni 2004 22:21 schrieb Bartlomiej Zolnierkiewicz:
> On Monday 28 of June 2004 14:48, Patrick Dreker wrote:

> > What can I do to debug this problem?
> "diff -u" on "lspci -s 07.1 -xxx" outputs for 2.4.20 and 2.4.21 kernels.
>
> Doing bisection search on 2.4.21-pre kernels would also help.
I will do the bisection search first and then post the lspci diff between the 
last working revision and the first non-working version as I have to 
recompile everything anyways.

Thanks,
Patrick
-- 
Patrick Dreker

GPG KeyID  : 0xFCC2F7A7 (Patrick Dreker)
Fingerprint: 7A21 FC7F 707A C498 F370  1008 7044 66DA FCC2 F7A7
Key available from keyservers

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: IDE Timeout problem on Intel PIIX3 (Triton 2) chipset
  2004-06-28 20:27 IDE Timeout problem on Intel PIIX3 (Triton 2) chipset Chris Rankin
@ 2004-06-29  1:21 ` Patrick Dreker
  0 siblings, 0 replies; 7+ messages in thread
From: Patrick Dreker @ 2004-06-29  1:21 UTC (permalink / raw)
  To: Chris Rankin; +Cc: linux-ide, meelis.roos

Am Montag, 28. Juni 2004 22:27 schrieb Chris Rankin:
> > Any kernel above and including 2.4.21 (including
> > 2.6.5 and 2.6.7, others not tested) produces the
> > following errors quite often (once or twice per
> > minute, with the corresponding delay) and the
> > harddisk drops out of DMA.
>
> Linux 2.4.26-UP is fine for me here, for both hda and
> hdb. This box has 64 MB RAM, amd the kernel is
> compiled with gcc-3.2.3.
Actually I tested 2.4.19, 20, 21, 22, 24, 26 and 2.6.5 and 7 and all from 
2.4.21 on fail. All kernels compiled for SMP, but the system only has one CPU 
(second CPU is waiting for the IDE problem to tracked down...)

I have triggered a compile of all pre and rc version between 2.4.20 and 2.4.21 
and will do narrow it down tomorrow. (I know I'll probably need only 3 or 4 
of those kernels, but having them all available will make testing easier...

Patrick
-- 
Patrick Dreker

GPG KeyID  : 0xFCC2F7A7 (Patrick Dreker)
Fingerprint: 7A21 FC7F 707A C498 F370  1008 7044 66DA FCC2 F7A7
Key available from keyservers

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: IDE Timeout problem on Intel PIIX3 (Triton 2) chipset
  2004-06-28 20:21 ` Bartlomiej Zolnierkiewicz
  2004-06-28 23:25   ` Patrick Dreker
@ 2004-06-29 14:48   ` Patrick Dreker
  1 sibling, 0 replies; 7+ messages in thread
From: Patrick Dreker @ 2004-06-29 14:48 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-kernel

Am Montag, 28. Juni 2004 22:21 schrieb Bartlomiej Zolnierkiewicz:
> > What can I do to debug this problem?
> "diff -u" on "lspci -s 07.1 -xxx" outputs for 2.4.20 and 2.4.21 kernels.
>
> Doing bisection search on 2.4.21-pre kernels would also help.
2.4.21-pre1 is the first non-working kernel, 2.4.20 works. When generating the 
configs for 2.4.21-pre1 (make oldconfig based on the working 2.4.20 config) I 
was asked "Use IDE Taskfile I/O" which defaulted to no and I kept that 
default (i.e. "Don't use Taskfile I/O").

lspci -s 07.1 -xxx shows no difference between a working (2.4.20) kernel and a 
non-working (2.4.21-pre1) kernel.

This caught my eye, but was probably obvious to you:
2.4.21-pre1 reports IDE Version 7.00beta-2.4 while 2.4.20 reports version 6.31

Patrick
-- 
Patrick Dreker

GPG KeyID  : 0xFCC2F7A7 (Patrick Dreker)
Fingerprint: 7A21 FC7F 707A C498 F370  1008 7044 66DA FCC2 F7A7
Key available from keyservers

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-06-29 14:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-28 20:27 IDE Timeout problem on Intel PIIX3 (Triton 2) chipset Chris Rankin
2004-06-29  1:21 ` Patrick Dreker
     [not found] <E1Bevgk-0007jR-4F@rhn.tartu-labor>
2004-06-28 18:47 ` Meelis Roos
  -- strict thread matches above, loose matches on Subject: below --
2004-06-28 12:48 Patrick Dreker
2004-06-28 20:21 ` Bartlomiej Zolnierkiewicz
2004-06-28 23:25   ` Patrick Dreker
2004-06-29 14:48   ` Patrick Dreker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.