Hi:<br>I also tested with kernel 2.6.23.13(with related 2.6.23.x s3cmci patch), and the SD card works well. But when tested with 2.6.24-rc5 and 2.6.24-rc7, if failed. The problem seems to be relative to gpio_detect function.<br><br><br><br>在2008-01-12,"Harald Welte" &lt;laforge@openmoko.org&gt; 写道:<br><br>On Wed, Jan 09, 2008 at 10:16:01PM +0800, Lonsn wrote:<br>&gt; Hi:<br>&gt; I'm now using s3cmci patch(http://svnweb.openmoko.org/branches/src/target/kernel/2.6.21.x/patches/s3c_mci.patch?rev=2805&amp;view=auto) and it works well. The SD card write speed is about 26Mbits/s(S3C2440A 400MHz, Sandisk UltraIII 2GB sd card).<br>&gt; But the CPU load is too heavy(80%). So I want to let s3cmci driver work in DMA mode. I changed host-&gt;dodma = 1;<br><br><br>&gt; But it doesn't work and the driver cann't detect the sd card. Does<br>&gt; anyone use the s3cmci driver in DMA mode successfully?<br><br>I don't think anyone has used it with DMA in a long time (probably no<br>later than 2.6.14 or even 2.6.10).  There have been DMA API changes that<br>might not be reflected in the driver.<br><br>I strongly recommend you use the driver that is present in the 2.6.24.x<br>branch of the openmoko svn (which is also what has been submitted to<br>linux-arm-kernel some weeks back).<br><br>&gt; Another question: Can sd card work speed be more than 25MHz? As I<br>&gt; know, the maximum sdi clock of S3C2440A is 33MHz(APB clock=67MHz,<br>&gt; prescaler value=1) and UltraIII sd card can support 40MHz<br>&gt; frequency(20MBytes/s). If we can let s3cmci driver works in 33MHz<br>&gt; modes, maybe the sd card IO performance could be increased a lot. But<br>&gt; the sdi clock works only 22.5MHz(prescaler value=2) mode now.<br><br>I don't think anyone has tried this yet.<br><br>-- <br>- Harald Welte &lt;laforge@openmoko.org&gt;                          http://openmoko.org/<br>============================================================================<br>Software for the world's first truly open Free Software mobile phone<br><br><!-- footer --><br><hr>
<a style="font-size:14px;line-height:15px; color:#000; text-decoration:none" href="http://event.mail.163.com/chanel/click.htm?from=NO_25&domain=163" target="_blank"><span style="text-decoration:underline; color:blue">网 易 有 道 词 典 -- 全 球 最 强 大 的 免 费 英 汉 互 译 词 典 ( 只 有 2 兆 )</span> </a>