public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Sandisk Compact Flash
       [not found] <OFF2465F02.D3F1F2D8-ON6525703D.0049BB41-6525703D.004A8B94@in.abb.com>
@ 2005-07-15  5:21 ` David Hinds
  2005-07-16  7:04   ` Michael Krufky
  0 siblings, 1 reply; 7+ messages in thread
From: David Hinds @ 2005-07-15  5:21 UTC (permalink / raw)
  To: somshekar.c.kadam; +Cc: linux-kernel

On Wed, Jul 13, 2005 at 07:04:38PM +0530, somshekar.c.kadam@in.abb.com wrote:
> 
> I ma newbie to compactflash driver , I am using mpc862 PPC processor
> on my custom board having 64mb ram running linuxppc-2.4.18 kernel .
> i am using Sandisk Extreme CF 1GB which is 133x high speed, but
> found the performance with other kingston 1GB CF with slower speed ,
> is both same , CF is implemented on pcmcia port , i am not sure what
> is the mode set for transfer , Feature set command is used in which
> it sets the PIO mode or Multiword DMA transfer mode by specifying
> its value in Sector count register , i am not able to understand in
> linux kernel ide driver where this is set , is it by default set ,
> this mode is set or we need to set it , i think we should assign
> this value , right now i am not able to trace this in my code.  ,

All Compact Flash cards, in 16-bit PCMCIA card readers, operate in PIO
mode 1 (polled IO, no DMA), which means you will get only about 1
MB/sec regardless of the card's claimed tranfer speed.  Some cameras
also only support this mode; others will run CF cars in "TrueIDE"
mode, which is required to use the DMA transfer modes.

There are high performance CF card readers that can use TrueIDE mode:
both CardBus ones and Firewire ones.  For example:

http://www.dpreview.com/news/0310/03102103delkincardbustest.asp

It sounds like your card reader is one of the slow 16-bit ones.

-- Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sandisk Compact Flash
  2005-07-15  5:21 ` David Hinds
@ 2005-07-16  7:04   ` Michael Krufky
  2005-07-16 18:31     ` David Hinds
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Krufky @ 2005-07-16  7:04 UTC (permalink / raw)
  To: David Hinds; +Cc: somshekar.c.kadam, linux-kernel

David Hinds wrote:

>On Wed, Jul 13, 2005 at 07:04:38PM +0530, somshekar.c.kadam@in.abb.com wrote:
>  
>
>>I ma newbie to compactflash driver , I am using mpc862 PPC processor
>>on my custom board having 64mb ram running linuxppc-2.4.18 kernel .
>>i am using Sandisk Extreme CF 1GB which is 133x high speed, but
>>found the performance with other kingston 1GB CF with slower speed ,
>>is both same , CF is implemented on pcmcia port , i am not sure what
>>is the mode set for transfer , Feature set command is used in which
>>it sets the PIO mode or Multiword DMA transfer mode by specifying
>>its value in Sector count register , i am not able to understand in
>>linux kernel ide driver where this is set , is it by default set ,
>>this mode is set or we need to set it , i think we should assign
>>this value , right now i am not able to trace this in my code.  ,
>>    
>>
>It sounds like your card reader is one of the slow 16-bit ones.
>
I recommend picking up a CF-to-IDE adapter, such as this:

http://www.acscontrol.com/Index_ACS.asp?Page=/Pages/Products/CompactFlash/IDE_To_CF_Adapter.htm

...It works great for me!

There are a bunch of companies selling these... Google "cf ide adapter".

-- 
Michael Krufky


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sandisk Compact Flash
  2005-07-16  7:04   ` Michael Krufky
@ 2005-07-16 18:31     ` David Hinds
  2005-07-16 22:03       ` Norbert van Nobelen
  0 siblings, 1 reply; 7+ messages in thread
From: David Hinds @ 2005-07-16 18:31 UTC (permalink / raw)
  To: Michael Krufky; +Cc: somshekar.c.kadam, linux-kernel

On Sat, Jul 16, 2005 at 03:04:54AM -0400, Michael Krufky wrote:

> I recommend picking up a CF-to-IDE adapter, such as this:
> 
> http://www.acscontrol.com/Index_ACS.asp?Page=/Pages/Products/CompactFlash/IDE_To_CF_Adapter.htm

That's fine if you have a spare IDE port, but unlikely if you're
using a laptop.  Also these do not support hot swapping.

-- Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sandisk Compact Flash
  2005-07-16 18:31     ` David Hinds
@ 2005-07-16 22:03       ` Norbert van Nobelen
  0 siblings, 0 replies; 7+ messages in thread
From: Norbert van Nobelen @ 2005-07-16 22:03 UTC (permalink / raw)
  To: linux-kernel

So then you will have to reboot sometimes. BTW, IDE can be hot swapped if you 
are carefull:
Umount the device,
unplug it.
Plug in the same device (same model)
Remount.
A bit risky to your hardware, but I have used this way for harddisks several 
time when a system has to keep running. Never used it for compact flash 
though.

Another option: Buy an USB card controller or a pcmcia controller for in your 
pc. Costs about $10,-

Op zaterdag 16 juli 2005 18:31, schreef u:
> On Sat, Jul 16, 2005 at 03:04:54AM -0400, Michael Krufky wrote:
> > I recommend picking up a CF-to-IDE adapter, such as this:
> >
> > http://www.acscontrol.com/Index_ACS.asp?Page=/Pages/Products/CompactFlash
> >/IDE_To_CF_Adapter.htm
>
> That's fine if you have a spare IDE port, but unlikely if you're
> using a laptop.  Also these do not support hot swapping.
>
> -- Dave
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sandisk Compact Flash
@ 2005-07-20  7:18 somshekar.c.kadam
  0 siblings, 0 replies; 7+ messages in thread
From: somshekar.c.kadam @ 2005-07-20  7:18 UTC (permalink / raw)
  To: dhinds; +Cc: somshekar.c.kadam, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2636 bytes --]



Hi David ,

    On my controller CF INPACK pin is connected to 3.3v.  so Comapct flash
with DMA capabilty will not be supported , i understood this .
but i did not undesrtand why only PIO mode 1 is supported is it , why not
PIO mode 4 , is it a limitation of pcmcia driver , correct me if i am wrong

Thanks In Advance
Somshekar



                                                                                                     
 (Embedded     David Hinds <dhinds@sonic.net>                                                        
 image moved   07/15/2005 10:51 AM                                                                   
 to file:                                                                                            
 pic05705.pcx)                                                                                       
                                                                                                     
                                                                                                     



To:    somshekar.c.kadam@in.abb.com
cc:    linux-kernel@vger.kernel.org
Subject:    Re: Sandisk Compact Flash

Security Level:?              Internal

On Wed, Jul 13, 2005 at 07:04:38PM +0530, somshekar.c.kadam@in.abb.com
wrote:
>
> I ma newbie to compactflash driver , I am using mpc862 PPC processor
> on my custom board having 64mb ram running linuxppc-2.4.18 kernel .
> i am using Sandisk Extreme CF 1GB which is 133x high speed, but
> found the performance with other kingston 1GB CF with slower speed ,
> is both same , CF is implemented on pcmcia port , i am not sure what
> is the mode set for transfer , Feature set command is used in which
> it sets the PIO mode or Multiword DMA transfer mode by specifying
> its value in Sector count register , i am not able to understand in
> linux kernel ide driver where this is set , is it by default set ,
> this mode is set or we need to set it , i think we should assign
> this value , right now i am not able to trace this in my code.  ,

All Compact Flash cards, in 16-bit PCMCIA card readers, operate in PIO
mode 1 (polled IO, no DMA), which means you will get only about 1
MB/sec regardless of the card's claimed tranfer speed.  Some cameras
also only support this mode; others will run CF cars in "TrueIDE"
mode, which is required to use the DMA transfer modes.

There are high performance CF card readers that can use TrueIDE mode:
both CardBus ones and Firewire ones.  For example:

http://www.dpreview.com/news/0310/03102103delkincardbustest.asp

It sounds like your card reader is one of the slow 16-bit ones.

-- Dave





[-- Attachment #2: pic05705.pcx --]
[-- Type: application/octet-stream, Size: 128 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sandisk Compact Flash
       [not found] <OF56551899.13BEFC21-ON65257044.00280854-65257044.00282876@abbasiapacific.com.sg>
@ 2005-07-20 16:26 ` David Hinds
  0 siblings, 0 replies; 7+ messages in thread
From: David Hinds @ 2005-07-20 16:26 UTC (permalink / raw)
  To: somshekar.c.kadam; +Cc: linux-kernel

On Wed, Jul 20, 2005 at 12:49:00PM +0530, somshekar.c.kadam@in.abb.com wrote:
> 
> Hi David ,
> 
> On my controller CF INPACK pin is connected to 3.3v.  so Comapct
> flash with DMA capabilty will not be supported , i understood this .
> but i did not undesrtand why only PIO mode 1 is supported is it ,
> why not PIO mode 4 , is it a limitation of pcmcia driver , correct
> me if i am wrong

The 16-bit PCMCIA bus is maxed out at about 1 MB/sec; that's all the
bandwidth there is.  What your card supports is irrelevant.

I'm not sure whether the PCMCIA mode actually corresponds to any of
the official PIO modes 0, 1, etc.  It is just "slow".

-- Dave

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Sandisk Compact Flash
@ 2005-08-03  5:37 somshekar.c.kadam
  0 siblings, 0 replies; 7+ messages in thread
From: somshekar.c.kadam @ 2005-08-03  5:37 UTC (permalink / raw)
  To: dhinds; +Cc: somshekar.c.kadam, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2041 bytes --]





HI David ,

Thanks a Lot for clearing all the doubts , yes its the drawback of my
hardware which i cant use high speed compact flash as DMA is not supported
,

Is there anyway with the help of software to message that , this compact
flash cant be used anymore , first of all is this a good idea to have such
a functinality on embedded system of saying compact flash is going to die
please replace it , or just by the number of years of compact flash we say
replace the compact flash

Thanks In Advance
Somshekar


                                                                                                     
 (Embedded     David Hinds <dhinds@sonic.net>                                                        
 image moved   07/20/2005 09:56 PM                                                                   
 to file:                                                                                            
 pic18875.pcx)                                                                                       
                                                                                                     
                                                                                                     



To:    somshekar.c.kadam@in.abb.com
cc:    linux-kernel@vger.kernel.org
Subject:    Re: Sandisk Compact Flash

Security Level:?              Internal

On Wed, Jul 20, 2005 at 12:49:00PM +0530, somshekar.c.kadam@in.abb.com
wrote:
>
> Hi David ,
>
> On my controller CF INPACK pin is connected to 3.3v.  so Comapct
> flash with DMA capabilty will not be supported , i understood this .
> but i did not undesrtand why only PIO mode 1 is supported is it ,
> why not PIO mode 4 , is it a limitation of pcmcia driver , correct
> me if i am wrong

The 16-bit PCMCIA bus is maxed out at about 1 MB/sec; that's all the
bandwidth there is.  What your card supports is irrelevant.

I'm not sure whether the PCMCIA mode actually corresponds to any of
the official PIO modes 0, 1, etc.  It is just "slow".

-- Dave





[-- Attachment #2: pic18875.pcx --]
[-- Type: application/octet-stream, Size: 128 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-03  5:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <OF56551899.13BEFC21-ON65257044.00280854-65257044.00282876@abbasiapacific.com.sg>
2005-07-20 16:26 ` Sandisk Compact Flash David Hinds
2005-08-03  5:37 somshekar.c.kadam
  -- strict thread matches above, loose matches on Subject: below --
2005-07-20  7:18 somshekar.c.kadam
     [not found] <OFF2465F02.D3F1F2D8-ON6525703D.0049BB41-6525703D.004A8B94@in.abb.com>
2005-07-15  5:21 ` David Hinds
2005-07-16  7:04   ` Michael Krufky
2005-07-16 18:31     ` David Hinds
2005-07-16 22:03       ` Norbert van Nobelen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox