Subject: DMA IDE Access Problems
To: 'port-arm32@netbsd.org' <port-arm32@netbsd.org>
From: Bruce Martin <BruceM@cat.co.za>
List: port-arm32
Date: 06/11/1999 10:24:25
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------ =_NextPart_001_01BEB3E3.D576A480
Content-Type: text/plain

Hi All,

I am currently using a Promise Ultra DMA PCI IDE Controller on an ebsa
StrongARM110 / NetBSD system. The controller works fine in non-DMA mode,
and fine in DMA mode, except in one case: when I run fsck, or the system
runs fsck at startup. Then it does the disk clean for a while, but stops
after a while, giving:

/dev/rwd0b: 1337 files, 25740 used, 51603 free (155 frags, 6431 blocks,
0.2% fra
gmentation)
/dev/rwd0b: MARKING FILE SYSTEM CLEAN
pciide0:0:0: lost interrupt
        type: ata
        c_bcount: 2048
        c_skip: 0
pciide0:0:0: Bus-Master DMA error: status=0x22
wd0e: DMA error reading fsbn 48 of 48-51 (wd0 bn 200048; cn 198 tn 7 sn
23), ret
rying
pciide0:0:0: not ready, st=0x00, err=0x00
wd0e: device timeout reading fsbn 48 of 48-51 (wd0 bn 200048; cn 198 tn
7 sn 23)
, retrying
pciide0:0:0: not ready, st=0x00, err=0x00
wd0e: device timeout reading fsbn 48 of 48-51 (wd0 bn 200048; cn 198 tn
7 sn 23)
, retrying
pciide0:0:0: not ready, st=0x00, err=0x00
wd0e: device timeout reading fsbn 48 of 48-51 (wd0 bn 200048; cn 198 tn
7 sn 23)
, retrying
pciide0:0:0: not ready, st=0x00, err=0x00
wd0e: device timeout reading fsbn 48 of 48-51 (wd0 bn 200048; cn 198 tn
7 sn 23)
, retrying
pciide0:0:0: not ready, st=0x00, err=0x00
wd0e: device timeout reading fsbn 48 of 48-51 (wd0 bn 200048; cn 198 tn
7 sn 23

ad infinitum. Has anyone else had this problem, or do they know what a
possible cause would be. Something like dd if=/dev/zero of=/test
count=65536 works fine - it just seems to be the fsck that does this.

Thanks
  Bruce

------ =_NextPart_001_01BEB3E3.D576A480
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DUS-ASCII">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.1960.3">
<TITLE>DMA IDE Access Problems</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hi All,</FONT>
</P>

<P><FONT SIZE=3D2>I am currently using a Promise Ultra DMA PCI IDE =
Controller on an ebsa StrongARM110 / NetBSD system. The controller =
works fine in non-DMA mode, and fine in DMA mode, except in one case: =
when I run fsck, or the system runs fsck at startup. Then it does the =
disk clean for a while, but stops after a while, giving:</FONT></P>

<P><FONT SIZE=3D2>/dev/rwd0b: 1337 files, 25740 used, 51603 free (155 =
frags, 6431 blocks, 0.2% fra</FONT>
<BR><FONT SIZE=3D2>gmentation)</FONT>
<BR><FONT SIZE=3D2>/dev/rwd0b: MARKING FILE SYSTEM CLEAN</FONT>
<BR><FONT SIZE=3D2>pciide0:0:0: lost interrupt</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; type: =
ata</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c_bcount: =
2048</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c_skip: =
0</FONT>
<BR><FONT SIZE=3D2>pciide0:0:0: Bus-Master DMA error: =
status=3D0x22</FONT>
<BR><FONT SIZE=3D2>wd0e: DMA error reading fsbn 48 of 48-51 (wd0 bn =
200048; cn 198 tn 7 sn 23), ret</FONT>
<BR><FONT SIZE=3D2>rying</FONT>
<BR><FONT SIZE=3D2>pciide0:0:0: not ready, st=3D0x00, err=3D0x00</FONT>
<BR><FONT SIZE=3D2>wd0e: device timeout reading fsbn 48 of 48-51 (wd0 =
bn 200048; cn 198 tn 7 sn 23)</FONT>
<BR><FONT SIZE=3D2>, retrying</FONT>
<BR><FONT SIZE=3D2>pciide0:0:0: not ready, st=3D0x00, err=3D0x00</FONT>
<BR><FONT SIZE=3D2>wd0e: device timeout reading fsbn 48 of 48-51 (wd0 =
bn 200048; cn 198 tn 7 sn 23)</FONT>
<BR><FONT SIZE=3D2>, retrying</FONT>
<BR><FONT SIZE=3D2>pciide0:0:0: not ready, st=3D0x00, err=3D0x00</FONT>
<BR><FONT SIZE=3D2>wd0e: device timeout reading fsbn 48 of 48-51 (wd0 =
bn 200048; cn 198 tn 7 sn 23)</FONT>
<BR><FONT SIZE=3D2>, retrying</FONT>
<BR><FONT SIZE=3D2>pciide0:0:0: not ready, st=3D0x00, err=3D0x00</FONT>
<BR><FONT SIZE=3D2>wd0e: device timeout reading fsbn 48 of 48-51 (wd0 =
bn 200048; cn 198 tn 7 sn 23)</FONT>
<BR><FONT SIZE=3D2>, retrying</FONT>
<BR><FONT SIZE=3D2>pciide0:0:0: not ready, st=3D0x00, err=3D0x00</FONT>
<BR><FONT SIZE=3D2>wd0e: device timeout reading fsbn 48 of 48-51 (wd0 =
bn 200048; cn 198 tn 7 sn 23</FONT>
</P>

<P><FONT SIZE=3D2>ad infinitum. Has anyone else had this problem, or do =
they know what a possible cause would be. Something like dd =
if=3D/dev/zero of=3D/test count=3D65536 works fine - it just seems to =
be the fsck that does this.</FONT></P>

<P><FONT SIZE=3D2>Thanks</FONT>
<BR><FONT SIZE=3D2>&nbsp; Bruce</FONT>
</P>

</BODY>
</HTML>
------ =_NextPart_001_01BEB3E3.D576A480--