mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
To: Clemens Koller <clemens.koller@anagramm.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: IDE: PDC20275 turning on/off DMA dangerous?
Date: Mon, 19 Dec 2005 13:40:00 +0100	[thread overview]
Message-ID: <58cb370e0512190440p3889a489sbc82f0c482fd9db9@mail.gmail.com> (raw)
In-Reply-To: <43A2DE5F.7060108@anagramm.de>

On 12/16/05, Clemens Koller <clemens.koller@anagramm.de> wrote:
> Hello!

Hi,

> I am working on an embedded ppc (mpc8540) using a pretty common Promise IDE
> PCI controller w/ a PDC20275 on it (it's called Ultra TX2).
> I have an otherwise good Maxtor 6B120P0 (160GB) connected to it.
>
> But sometimes (expecially with more than zero disk-i/o-load), when I
> turn on DMA by
>
> $hdparm -X69 -d1 /dev/hda
> I get
>
> hda: task_out_intr: status=0x58 { DriveReady SeekComplete DataRequest }
> ide: failed opcode was: unknown
> hda: CHECK for good STATUS
>
> And when I turn off DMA with
> $hdparm -d0 /dev/hda
> I get sometimes a
>
> hda: DMA disabled
>
> which is fine but sometimes I also get:
>
> hda: status error: status=0x58 { DriveReady SeekComplete DataRequest }
> ide: failed opcode was: unknown
> hda: drive not ready for command
> hda: CHECK for good STATUS
>
> which is not so nice.
> Can you tell me if this is dangerous?

Is there any particular reason why you are using hdparm with '-d' and '-X'?

Your IDE host driver (pdc202xx_new in this case) should configure
best xfer mode and enable DMA so you shouldn't need to use hdparm.

Given that IDE driver code for changing xfer mode and DMA setting
is racy and actually quite hard to fix, it will probably be removed in
the future (after auditing IDE host drivers).

BTW please use linux-ide@vger.kernel.org for IDE problems

Thanks,
Bartlomiej

  reply	other threads:[~2005-12-19 12:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-16 15:33 Clemens Koller
2005-12-19 12:40 ` Bartlomiej Zolnierkiewicz [this message]
2005-12-19 14:45   ` Clemens Koller
2005-12-19 15:46     ` Bartlomiej Zolnierkiewicz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58cb370e0512190440p3889a489sbc82f0c482fd9db9@mail.gmail.com \
    --to=bzolnier@gmail.com \
    --cc=clemens.koller@anagramm.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®