* [PATCH] ide: disable dma for transcend CF
@ 2006-06-20 10:52 Kirill Smelkov
2006-06-20 11:29 ` Matthew Garrett
2006-06-20 13:43 ` Alan Cox
0 siblings, 2 replies; 5+ messages in thread
From: Kirill Smelkov @ 2006-06-20 10:52 UTC (permalink / raw)
To: Andrew Morton, B.Zolnierkiewicz; +Cc: linux-kernel, linux-ide
NB: bart/ide-2.6.git seems to be unmaintained, so I'm sending this directly to -mm
I have a CF card which identifies itself as model=TRANSCEND rev=200508011
The card id labeled as TS512MCF80
hdparm -i /dev/hdci reports:
...
DMA modes: mdma0 mdma1 *mdma2
IDE controller:
IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
but if dma is turned on i get a lot of errors::
hdc: dma_timer_epiry: dma_status == 0x21
hdc: DMA timeout error
hdc: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
ide: failed opcode was: unknown
...
So blacklist this CF model.
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Index: linux-2.6.17/drivers/ide/ide-dma.c
===================================================================
--- linux-2.6.17.orig/drivers/ide/ide-dma.c 2006-06-18 05:49:35.000000000 +0400
+++ linux-2.6.17/drivers/ide/ide-dma.c 2006-06-20 11:37:30.000000000 +0400
@@ -129,6 +129,7 @@
{ "SanDisk SDP3B-64" , "ALL" },
{ "ATAPI CD-ROM DRIVE 40X MAXIMUM", "ALL" },
{ "_NEC DV5800A", "ALL" },
+ { "TRANSCEND" , "20050811" },
{ NULL , NULL }
};
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] ide: disable dma for transcend CF
2006-06-20 10:52 [PATCH] ide: disable dma for transcend CF Kirill Smelkov
@ 2006-06-20 11:29 ` Matthew Garrett
2006-06-20 14:56 ` Kirill Smelkov
2006-06-20 13:43 ` Alan Cox
1 sibling, 1 reply; 5+ messages in thread
From: Matthew Garrett @ 2006-06-20 11:29 UTC (permalink / raw)
To: Kirill Smelkov; +Cc: Andrew Morton, B.Zolnierkiewicz, linux-kernel, linux-ide
Kirill Smelkov <kirr@mns.spb.ru> wrote:
> but if dma is turned on i get a lot of errors::
>
> hdc: dma_timer_epiry: dma_status == 0x21
> hdc: DMA timeout error
> hdc: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
> ide: failed opcode was: unknown
Are you sure that your CF adapter has the DMA lines hooked up? See
http://lkml.org/lkml/2006/5/23/198 for instance - IIRC, the kernel has
no way of telling whether the failure is because the card supports DMA
and the adapter doesn't, or whether the card is lying. If it's the
former, the card shouldn't be blacklisted.
--
Matthew Garrett | mjg59-chiark.mail.linux-rutgers.kernel@srcf.ucam.org
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] ide: disable dma for transcend CF
2006-06-20 11:29 ` Matthew Garrett
@ 2006-06-20 14:56 ` Kirill Smelkov
0 siblings, 0 replies; 5+ messages in thread
From: Kirill Smelkov @ 2006-06-20 14:56 UTC (permalink / raw)
To: Matthew Garrett; +Cc: Andrew Morton, B.Zolnierkiewicz, linux-kernel, linux-ide
<Sorry, Cyrillic letters were blocked on linux-ide>
Matthew Garrett wrote:
> > but if dma is turned on i get a lot of errors::
> >
> > hdc: dma_timer_epiry: dma_status == 0x21
> > hdc: DMA timeout error
> > hdc: dma timeout error: status=0x58 { DriveReady SeekComplete DataRequest }
> > ide: failed opcode was: unknown
>
> Are you sure that your CF adapter has the DMA lines hooked up? See
> http://lkml.org/lkml/2006/5/23/198 for instance - IIRC, the kernel has
> no way of telling whether the failure is because the card supports DMA
> and the adapter doesn't, or whether the card is lying. If it's the
> former, the card shouldn't be blacklisted.
No, I'm not sure.
My HW is PCISA-C800EVN-1G industrial MB (VT82C686B chipset) with integrated CF adapter.
The adapter seems to have all pins soldered.
I don't have another CF with DMA capability, so I can't check who creates the problem --
the card or the adapter.
Let's see if someone have similar motherboard & CF with dma capabilities.
--
Kirill
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ide: disable dma for transcend CF
2006-06-20 10:52 [PATCH] ide: disable dma for transcend CF Kirill Smelkov
2006-06-20 11:29 ` Matthew Garrett
@ 2006-06-20 13:43 ` Alan Cox
2006-06-20 15:18 ` Kirill Smelkov
1 sibling, 1 reply; 5+ messages in thread
From: Alan Cox @ 2006-06-20 13:43 UTC (permalink / raw)
To: Kirill Smelkov; +Cc: Andrew Morton, B.Zolnierkiewicz, linux-kernel, linux-ide
Ar Maw, 2006-06-20 am 14:52 +0400, ysgrifennodd Kirill Smelkov:
> I have a CF card which identifies itself as model=TRANSCEND rev=200508011
> The card id labeled as TS512MCF80
>
> hdparm -i /dev/hdci reports:
> ...
> DMA modes: mdma0 mdma1 *mdma2
>
> IDE controller:
> IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
>
>
> but if dma is turned on i get a lot of errors::
>
> hdc: dma_timer_epiry: dma_status == 0x21
Almost certainly a problem with the CF adapter. Please verify the card
in a modern CF adapter and also do tests with DMA capable cards of other
types on the adapter you are using.
Back when CF adapters first appeared the idea that you might run DMA on
one was so ludicrously silly that nobody wired the neccessary pins on
the adapters. Time has moved on, but hardware alas has sometimes not.
Alan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] ide: disable dma for transcend CF
2006-06-20 13:43 ` Alan Cox
@ 2006-06-20 15:18 ` Kirill Smelkov
0 siblings, 0 replies; 5+ messages in thread
From: Kirill Smelkov @ 2006-06-20 15:18 UTC (permalink / raw)
To: Alan Cox; +Cc: Andrew Morton, B.Zolnierkiewicz, linux-kernel, linux-ide
Alan Cox wrote:
[...]
> > hdc: dma_timer_epiry: dma_status == 0x21
>
> Almost certainly a problem with the CF adapter. Please verify the card
> in a modern CF adapter and also do tests with DMA capable cards of other
> types on the adapter you are using.
Thanks for the info.
I'll try this if, and when necceessary hardware is available.
At the time being i have to stick to these two.
--
Kirill
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-06-20 15:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-20 10:52 [PATCH] ide: disable dma for transcend CF Kirill Smelkov
2006-06-20 11:29 ` Matthew Garrett
2006-06-20 14:56 ` Kirill Smelkov
2006-06-20 13:43 ` Alan Cox
2006-06-20 15:18 ` Kirill Smelkov
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®