Re: Scheduler broken? sdhci issues with scheduling

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Simon Huggins <huggie@...>
Cc: Ingo Molnar <mingo@...>, <linux-kernel@...>, Thomas Gleixner <tglx@...>
Date: Saturday, March 1, 2008 - 10:08 am

On Sat, 1 Mar 2008 12:42:04 +0000
Simon Huggins <huggie@earth.li> wrote:


I'm afraid I can't add that much...

Ingo, the basic problem is this:

The sdhci controllers are not supposed to signal "card insertion" before they have a stable connection with the card. But most (all?) hardware ignores this and signals immediately. This means we need a delay to handle bouncing connectors. This delay is supposed to be 500 ms, but on Simon's system it is in the order of tens of milliseconds.

The mechanism is not msleep(), nor mdelay(), but a delayed work queue. That's why I told Simon to talk to you as that seems like scheduler territory.

The call chain is:

1. sdhci_irq()
2. sdhci_tasklet_card() <- delay is calculated here
3. mmc_detect_change()
4. mmc_schedule_delayed_work()
5. queue_delayed_work()

msleep() and mdelay() are also affected, but this is the major symptom.

Rgds

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  PulseAudio, core developer          http://pulseaudio.org
  rdesktop, core developer          http://www.rdesktop.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Scheduler broken? sdhci issues with scheduling, Simon Huggins, (Fri Feb 29, 7:52 am)
Re: Scheduler broken? sdhci issues with scheduling, Pavel Machek, (Sun Mar 2, 6:40 am)
Re: Scheduler broken? sdhci issues with scheduling, Pierre Ossman, (Mon Mar 3, 3:43 pm)
Re: Scheduler broken? sdhci issues with scheduling, Pavel Machek, (Mon Mar 3, 4:38 pm)
Re: Scheduler broken? sdhci issues with scheduling, Pierre Ossman, (Mon Mar 3, 5:05 pm)
Re: Scheduler broken? sdhci issues with scheduling, Simon Huggins, (Thu Mar 13, 5:17 pm)
Re: Scheduler broken? sdhci issues with scheduling, Pierre Ossman, (Sat Mar 15, 11:04 am)
Re: Scheduler broken? sdhci issues with scheduling, Simon Huggins, (Sun Apr 20, 5:07 pm)
Re: Scheduler broken? sdhci issues with scheduling, Simon Huggins, (Sun Mar 2, 2:04 pm)
Re: Scheduler broken? sdhci issues with scheduling, Ingo Molnar, (Fri Feb 29, 9:34 am)
Re: Scheduler broken? sdhci issues with scheduling, Simon Huggins, (Fri Feb 29, 3:39 pm)
Re: Scheduler broken? sdhci issues with scheduling, Ingo Molnar, (Fri Feb 29, 4:39 pm)
Re: Scheduler broken? sdhci issues with scheduling, Simon Huggins, (Sat Mar 1, 8:42 am)
Re: Scheduler broken? sdhci issues with scheduling, Pierre Ossman, (Sat Mar 1, 10:08 am)
Re: Scheduler broken? sdhci issues with scheduling, Ingo Molnar, (Fri Feb 29, 9:51 am)
Re: Scheduler broken? sdhci issues with scheduling, Ingo Molnar, (Fri Feb 29, 10:00 am)