Re: IDE: PDC20275 turning on/off DMA dangerous?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/16/05, Clemens Koller <[email protected]> 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 [email protected] for IDE problems

Thanks,
Bartlomiej
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux