> >I'm not sure if there's a solution to this problem (after looking for
> >a while on the kernel mailing list), but here is my problem.
> >When I do heavy IO operations across two hard drives on the HPT366,
> >each on their own channel and set to primary, I get a lockup.
> >hdg: timeout waiting for dma
> >ide_dmaproc: chipset supported ide_dma_timeout func only
> Are you using any hdparm parameters that may cause the problem? Not all
> drives are really comfortable with certain combinations of optimizations.
> It may help locate the error if you could post the output from "hdparm -i
> /dev/hdx" and "hdparm /dev/hdx" for the drives in question. The relevant
> lines from "dmesg" would also be a good idea.
> --
> Kenneth R?rvik 91841353/22950312
> 0875 OSLO home.no.net/stasis
Here is the relevant portions (at least in my mind) upon bootup....
HPT366: onboard version of chipset, pin1=1 pin2=2
HPT366: IDE controller on PCI bus 00 dev 98
HPT366: chipset revision 1
HPT366: not 100% native mode: will probe irqs later
ide2: BM-DMA at 0xe000-0xe007, BIOS settings: hde:pio, hdf:pio
HPT366: IDE controller on PCI bus 00 dev 99
HPT366: chipset revision 1
HPT366: not 100% native mode: will probe irqs later
ide3: BM-DMA at 0xec00-0xec07, BIOS settings: hdg:pio, hdh:pio
hda: BCD-48SB CD-ROM, ATAPI CDROM drive
hde: WDC AC418000D, ATA DISK drive
hdg: IBM-DTLA-307030, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide2 at 0xd800-0xd807,0xdc02 on irq 18
ide3 at 0xe400-0xe407,0xe802 on irq 18
hde: 35239680 sectors (18043 MB) w/1966KiB Cache, CHS=34960/16/63,
UDMA(66)
hdg: 60036480 sectors (30739 MB) w/1916KiB Cache, CHS=59560/16/63,
UDMA(66)
Partition check:
hde: [PTBL] [2330/240/63] hde1 hde2 hde3 hde4 < hde5 >
hdg: hdg1 hdg2 hdg3 hdg4
(The hde line is slightly different in the 2.2 series.... it reports
UDMA(33) as opposed to UDMA 66. The drive really is a WD 20G 7200RPM
drive with UDMA66. So there is a slight difference between 2.2 and 2.4. )
I obviously can't show the above two lines, which are a part of my
complaint, because it is dumped to the screen plus the machine has
locked up, resulting in the data not being committed to disk...
At first I used the following parameters:
hdparm -d1 -c1 -u1 -m8 -X68 /dev/hde /dev/hdg
When I noticed the problem (as stated above), I forgoed any optimization
with hdparm. By default, it sets up my drive as so:
/dev/hde:
multcount = 0 (off)
I/O support = 0 (off)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 2330/240/63, sectors = 35239680, start = 0
/dev/hdg:
multcount = 0 (off)
I/O support = 0 (off)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
nowerr = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 59560/16/63, sectors = 60036480, start = 0
The problem still occurs even when I leave the hdparm optimizations out.
I've looked at the abit site and found a note about a problem with
the IBM-DTLA drives, so I decided to use their BIOS... and the problems
show up, regardless of what BIOS I use (whether it's their latest
"stable" RU or their beta RU). Switching to PIO isn't really an option
either as a "workaround" because it slows down the throughput
tremendously... from 17 MB/s to about 3.6 MB/s.... plus it uses even
more CPU time as well.
Johnny Luong