Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-13 Thread Sergey Yanovich
On Sat, 2013-04-13 at 13:56 +0200, Ulf Hansson wrote: > > Den 13 apr 2013 12:49 skrev "Sergey Yanovich" : > > A possible solution is to make card a separate device (now only the > host > > is a device). In this case, the probing could be done asynchronously > &g

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-13 Thread Sergey Yanovich
On Wed, 2013-03-27 at 07:57 -0400, Chris Ball wrote: > If the delay's significant, I agree with you and will revert this patch. The patch was reverted. The problem is back. Filed bug: https://bugzilla.kernel.org/show_bug.cgi?id=56561 A possible solution is to make card a separate device (now only

Re: [PATCH 1/2] Revert "mmc: core: wait while adding MMC host to ensure root mounts successfully"

2013-04-04 Thread Sergey Yanovich
On Thu, 2013-04-04 at 16:41 +0300, Adrian Hunter wrote: > diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c > index ad7decc..3bf1c46 100644 > --- a/drivers/mmc/core/core.c > +++ b/drivers/mmc/core/core.c > @@ -2418,7 +2418,6 @@ void mmc_start_host(struct mmc_host *host) > host->r

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-04 Thread Sergey Yanovich
On Thu, 2013-04-04 at 14:35 +0300, Adrian Hunter wrote: > On 04/04/13 13:59, Sergey Yanovich wrote: > > On Thu, 2013-04-04 at 09:35 +0300, Adrian Hunter wrote: > >> No, I am booting from eMMC. > > > > Well, in this case you should be aware, that your system is no

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-04 Thread Sergey Yanovich
On Thu, 2013-04-04 at 09:35 +0300, Adrian Hunter wrote: > No, I am booting from eMMC. Well, in this case you should be aware, that your system is not concurrency-safe without the patch. It may or may not boot each time depending on the large number of factors. > > Maybe introduce mmc_is_hosting_

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-02 Thread Sergey Yanovich
On Tue, 2013-04-02 at 19:45 +0200, Ulf Hansson wrote: > On 2 April 2013 12:35, Sergey Yanovich wrote: > > If the system is booted using initrd and root is not on an mmc card, > > then mmc modules can be omitted from initrd. The probing will happen > > only after root is mo

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-02 Thread Sergey Yanovich
On Tue, 2013-04-02 at 16:36 +0300, Adrian Hunter wrote: > On my system it is significant: > > Before the patch: > > [1.625623] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. > > After the patch: > > [1.935851] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-04-02 Thread Sergey Yanovich
On Tue, 2013-04-02 at 12:13 +0200, Ulf Hansson wrote: > Consider a platform having two eMMCs and one SD-card. Each eMMC card > will take around 400 ms to initialize and the SD-card 700 ms. The card > initialization times are real examples from eMMCs and SD-cards, > moreover those are typical values

Re: [PATCH v2] wait while adding MMC host to ensure root mounts

2013-03-14 Thread Sergey Yanovich
On 14/03/13 08:08, Namjae Jeon wrote:> 2013/3/14, Sergey Yanovich : Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Have you ever tried to use rootwait or rootdelay on command line ? If no, You can use them. Those options work. However, they introduce a de

Re: [PATCH] wait while adding MMC host to ensure root mounts

2013-03-14 Thread Sergey Yanovich
On 14/03/13 06:47, Greg Kroah-Hartman wrote: On Thu, Mar 14, 2013 at 05:06:23AM +0400, Sergey Yanovich wrote: /* wait for the known devices to complete their probing */ - wait_event(probe_waitqueue, atomic_read(&probe_count) == 0); You didn't need to change this fil

[PATCH v2] wait while adding MMC host to ensure root mounts

2013-03-13 Thread Sergey Yanovich
16384 mtdblock4 mmcblk0: mmc0:b368 USD 3.72 GiB (driver?) mmcblk0: p1 b300 3910656 mmcblk0 driver: mmcblk b301 3906560 mmcblk0p1 -01 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ---8<--- Signed-off-by: Sergey Yanovich --- changes for

[PATCH] wait while adding MMC host to ensure root mounts

2013-03-13 Thread Sergey Yanovich
16384 mtdblock4 mmcblk0: mmc0:b368 USD 3.72 GiB (driver?) mmcblk0: p1 b300 3910656 mmcblk0 driver: mmcblk b301 3906560 mmcblk0p1 -01 Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ---8<--- Signed-off-by: Sergey Yanovich --- driv