[Soekris] harddisk errors with a 4801 under linux

Nils Vogels bacardicoke at gmail.com
Thu Jul 20 12:30:56 UTC 2006


On 7/20/06, Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
>
> In message <20060720114044.GA5614 at localhost.localdomain>, Albert Dengg
> writes:
>
> >anyhow wenn doing some disk activity i always get the following error on
> >the serial console before the soekris locks up:
> > hda: dma_timer_expiry: dma status == 0x01
> > hda: DMA timeout error
> > ide_dma_end dma_stat=1 err=1 newerr=0
>
> Start by disabling DMA access to the disk in your kernel.
>
> I have no idea how that is done in Linux.


In userspace it can be done by hdparm(8):

       -d     Disable/enable the "using_dma" flag for this drive.  This
option
              now  works  with  most combinations of drives and PCI
interfaces
              which support DMA and which are known to the kernel IDE
driver.
              It  is also a good idea to use the appropriate -X option in
com-
              bination with -d1 to ensure that the drive itself is
programmed
              for the correct DMA mode, although most BIOSs should do this
for
              you at boot time.  Using DMA nearly always gives the  best
per-
              formance, with fast I/O throughput and low CPU usage.  But
there
              are at least a few configurations of  chipsets  and  drives
for
              which  DMA  does not make much of a difference, or may even
slow
              things down (on really messed up hardware!).  Your  mileage
may
              vary.

HTH,

Nils

-- 
Simple guidelines to happiness:
Work like you don't need the money,
Love like your heart has never been broken and
Dance like no one can see you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.soekris.com/pipermail/soekris-tech/attachments/20060720/42017922/attachment.html


More information about the Soekris-tech mailing list