From: "José María Fernández González" <josemariafg@gmail.com>
To: Pierre Ossman <drzeus-list@drzeus.cx>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] mmc: Some microSD cards are not recognized by PCIxx12 SDA controller
Date: Wed, 25 Mar 2009 09:00:56 +0100 [thread overview]
Message-ID: <49C9E4B8.3000708@gmail.com> (raw)
In-Reply-To: <20090324211748.30cd7429@mjolnir.ossman.eu>
Pierre Ossman wrote:
> On Tue, 10 Mar 2009 02:21:21 +0100
>> diff -Nrpu linux-2.6.28.5/drivers/mmc/core/core.c.orig linux-2.6.28.5/drivers/mmc/core/core.c
>> --- linux-2.6.28.5/drivers/mmc/core/core.c.orig 2009-03-10 01:30:19.000000000 +0100
>> +++ linux-2.6.28.5/drivers/mmc/core/core.c 2009-03-10 01:29:44.000000000 +0100
>> @@ -514,7 +514,7 @@ static void mmc_power_up(struct mmc_host
>> * This delay should be sufficient to allow the power supply
>> * to reach the minimum voltage.
>> */
>> - mmc_delay(2);
>> + mmc_delay(10);
>>
>
> A delay of 10 is just enough to trigger a sleep on most kernels
> (HZ=100). Have you determined the lower bound of these two values?
>
Well, I have been using the patch in a kernel with HZ=300, tickless (CONFIG_NO_HZ) and desktop preemption (CONFIG_PREEMPT_VOLUNTARY), but I didn't determine the lower bound. As I explained in the patch at -mm tree, I took as base the patch:
http://list.drzeus.cx/pipermail/sdhci-devel/2007-December/002089.html
and I only extrapolated the need for a higher delay just after MMC_POWER_UP to this one and after MMC_POWER_ON. When I was looking for a fix for the problem I was suffering with my microSD card and laptop, I remember I found some e-mails from two years ago pointing out to some change in the scheduler which uncovered the problem.
As I'm going to install 2.6.29 today, I can test the patch with it and HZ=100.
next prev parent reply other threads:[~2009-03-25 8:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-10 1:21 [PATCH 1/1] mmc: Some microSD cards are not recognized by PCIxx12 SDA controller José María Fernández González
2009-03-24 20:17 ` Pierre Ossman
2009-03-25 8:00 ` José María Fernández González [this message]
2009-03-25 16:17 ` Pierre Ossman
2009-03-26 16:37 ` José María Fernández González
2009-04-05 18:33 ` Pierre Ossman
2009-04-06 23:30 ` José María Fernández González
2009-04-10 21:35 ` Pierre Ossman
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=49C9E4B8.3000708@gmail.com \
--to=josemariafg@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.