public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Frantisek Dufka <dufkaf@seznam.cz>
To: Tony Lindgren <tony@atomide.com>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: clock divisor in mmc_omap_set_ios in drivers/mmc/omap.c wrong
Date: Thu, 16 Nov 2006 09:15:14 +0100	[thread overview]
Message-ID: <455C1E12.2010403@seznam.cz> (raw)
In-Reply-To: <20061116010527.GM21064@atomide.com>

Tony Lindgren wrote:
> 
> This seems like a bug to me (or else the TRMs have a typo). Let's patch
> it out and see if it still works.
> 

Yes, that's what I did on Nokia 770 and have mixed results. Most MMC 
cards around me work with this line removed (at 16Mhz) and there is some 
speedup (~1.8MB/s@16Mhz vs ~1.4MB/s@12Mhz) but the 64 MB one shipped 
with Nokia (plain MMC, 7 pins) give me I/O error when inserted. Even 
partition table is not read. Other cards that work are 128MB noname 
RS-MMC, 1GB Sandisk RS-MMC, 2GB Kingston MMCmobile (13 pins).

Also interesting is that after I posted my question to this list few 
days later Nokia released newer kernel source for newer N770 firmware 
and this dsor++ line is removed there, but there is board specific code 
that limits MMC speed on Nokia N770 to 12Mhz. So there seems to be 
something fishy with MMC speeds over 12Mhz (on N770). Either there are 
known cards on market which fail or Nokia shipped buggy cards with 
devices and limited MMC interface speed due to this. Or can this limit 
be matter of wiring/shielding of specific device? Their newer kernel 
have also support for newer device with miniSD slot with speed limited 
to 24Mhz in same omap driver.

I'm digging into in this because the MMC speed on N770 is pathetic and 
newer MMCmobile cards can operate up to 52Mhz. And it looks like with 
high speed MMC v4.1 patches MMC interface in OMAP1710 inside N770 can 
run at 48Mhz (divisor=1) giving me ~6MB/s@48Mhz when reading. Every 
MMCmobile/plus card can do at least 26Mhz so even 24Mhz is good speedup 
(over original 12Mhz).

See also http://fanoush.webpark.cz/maemo/#mmcplus
Some people tried it on their N770 and I got few successful reports and 
no unsuccesful ones. Such speed is quite useful when booting from MMC 
and having swap on MMC too. I'm running my N770 in this setup for more 
than month with Kingston 2GB card @ 48Mhz and had no problems so far 
(i/o error, data corruption).

So my next related question is whether OMAP 1710 MMC interface is 
designed to run with divisor set to 1 with 48Mhz clock. It seems to work 
fine and give nice speed boost with newer MMCmobile cards on market. 
There is no limit mentioned in spru765a.pdf so I don't know whether I'm 
in fact overclocking something or not.

Regards,
Frantisek

      reply	other threads:[~2006-11-16  8:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-10  9:54 clock divisor in mmc_omap_set_ios in drivers/mmc/omap.c wrong Frantisek Dufka
2006-11-16  1:05 ` Tony Lindgren
2006-11-16  8:15   ` Frantisek Dufka [this message]

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=455C1E12.2010403@seznam.cz \
    --to=dufkaf@seznam.cz \
    --cc=linux-omap-open-source@linux.omap.com \
    --cc=tony@atomide.com \
    /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