All of lore.kernel.org
 help / color / mirror / Atom feed
From: paul.gortmaker@windriver.com (Paul Gortmaker)
To: linux-arm-kernel@lists.infradead.org
Subject: 3.17-rc2: root=/dev/mmcblk0p2 command line parsing fails
Date: Wed, 17 Sep 2014 10:25:43 -0400	[thread overview]
Message-ID: <20140917142542.GA5225@windriver.com> (raw)
In-Reply-To: <20140917132002.GS12361@n2100.arm.linux.org.uk>

[Re: 3.17-rc2: root=/dev/mmcblk0p2 command line parsing fails] On 17/09/2014 (Wed 14:20) Russell King - ARM Linux wrote:

[...]

> I think the problem may be 4dfe694f616e00e6fd83e5bbcd7a3c4d7113493d
> ("init: make rootdelay=N consistent with rootwait behaviour") which
> was merged during the recent window.  This moved the delay after the
> saved_root_name[] handling.  As we can see in the SDP4430 case, the
> order was:

[...]

> 
> 
> If ROOT_DEV was still zero, and root_wait was set (it isn't) we'd then
> try to re-evaluate ROOT_DEV.  ROOT_DEV must be set to mount the rootfs,
> and we can see from the above failure messages that it was still zero.
> That works out, because this code would never be run with root_wait=false.
> 
> The reason it used to work is because the delay came _before_ the first
> "if" above, so causing the first ROOT_DEV lookup to succeed.
> 
> I think it may be better to move the root_delay handling either immediately
> after md_run_setup(), or we need to re-lookup ROOT_DEV after the delay.
> Paul, any thoughts?

After discussing it more on irc, it seems like moving the delay/wait
handling after md_run_setup [i.e. to the original location of delay vs.
the original location of wait] is probably best.

But, given as the original commit log indicated -- there may be a risk
of other corner cases subtly being broken by such a change, it is
probably best if we just revert the original now, and then try again in
the alternate location in the next dev cycle.  I'll send a revert
shortly.

Thanks for diagnosing this.
Paul.
--

> 
> -- 
> FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
> according to speedtest.net.

WARNING: multiple messages have this Message-ID (diff)
From: Paul Gortmaker <paul.gortmaker@windriver.com>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: Pavel Machek <pavel@denx.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Dinh Nguyen <dinh.linux@gmail.com>,
	Jaehoon Chung <jh80.chung@samsung.com>,
	Dinh Nguyen <dinguyen@altera.com>,
	Kevin Hilman <khilman@linaro.org>,
	Olof Johansson <olof@lixom.net>, Arnd Bergmann <arnd@arndb.de>,
	<arm@kernel.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>,
	kernel list <linux-kernel@vger.kernel.org>
Subject: Re: 3.17-rc2: root=/dev/mmcblk0p2 command line parsing fails
Date: Wed, 17 Sep 2014 10:25:43 -0400	[thread overview]
Message-ID: <20140917142542.GA5225@windriver.com> (raw)
In-Reply-To: <20140917132002.GS12361@n2100.arm.linux.org.uk>

[Re: 3.17-rc2: root=/dev/mmcblk0p2 command line parsing fails] On 17/09/2014 (Wed 14:20) Russell King - ARM Linux wrote:

[...]

> I think the problem may be 4dfe694f616e00e6fd83e5bbcd7a3c4d7113493d
> ("init: make rootdelay=N consistent with rootwait behaviour") which
> was merged during the recent window.  This moved the delay after the
> saved_root_name[] handling.  As we can see in the SDP4430 case, the
> order was:

[...]

> 
> 
> If ROOT_DEV was still zero, and root_wait was set (it isn't) we'd then
> try to re-evaluate ROOT_DEV.  ROOT_DEV must be set to mount the rootfs,
> and we can see from the above failure messages that it was still zero.
> That works out, because this code would never be run with root_wait=false.
> 
> The reason it used to work is because the delay came _before_ the first
> "if" above, so causing the first ROOT_DEV lookup to succeed.
> 
> I think it may be better to move the root_delay handling either immediately
> after md_run_setup(), or we need to re-lookup ROOT_DEV after the delay.
> Paul, any thoughts?

After discussing it more on irc, it seems like moving the delay/wait
handling after md_run_setup [i.e. to the original location of delay vs.
the original location of wait] is probably best.

But, given as the original commit log indicated -- there may be a risk
of other corner cases subtly being broken by such a change, it is
probably best if we just revert the original now, and then try again in
the alternate location in the next dev cycle.  I'll send a revert
shortly.

Thanks for diagnosing this.
Paul.
--

> 
> -- 
> FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
> according to speedtest.net.

  parent reply	other threads:[~2014-09-17 14:25 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15  4:06 [GIT PULL] SOCFPGA DTS updates for 3.17 dinguyen at altera.com
2014-07-15  4:41 ` Olof Johansson
2014-07-15  7:29 ` Jaehoon Chung
2014-07-15 15:01   ` Dinh Nguyen
2014-07-16  1:34     ` Jaehoon Chung
2014-07-16 21:05       ` Dinh Nguyen
2014-08-14 18:47   ` socfpga mmc (was Re: [GIT PULL] SOCFPGA DTS updates for 3.17) Pavel Machek
2014-08-14 20:56     ` Dinh Nguyen
2014-08-14 21:02       ` Pavel Machek
2014-08-14 21:25         ` Dinh Nguyen
2014-08-26 11:47         ` 3.17-rc2: root=/dev/mmcblk0p2 command line parsing fails Pavel Machek
2014-08-26 21:00           ` Dinh Nguyen
2014-08-26 21:00             ` Dinh Nguyen
2014-09-09 11:49             ` Pavel Machek
2014-09-09 11:49               ` Pavel Machek
2014-09-17 13:20               ` Russell King - ARM Linux
2014-09-17 13:20                 ` Russell King - ARM Linux
2014-09-17 13:47                 ` Russell King - ARM Linux
2014-09-17 13:47                   ` Russell King - ARM Linux
2014-09-17 14:25                 ` Paul Gortmaker [this message]
2014-09-17 14:25                   ` Paul Gortmaker
2014-09-17 14:57                   ` [PATCH] Revert "init: make rootdelay=N consistent with rootwait behaviour" Paul Gortmaker
2014-09-17 14:57                     ` Paul Gortmaker
2014-09-18 13:17                     ` Pavel Machek
2014-09-18 13:17                       ` Pavel Machek
2015-04-09  9:42                       ` rootdelay regression is back in 4.0? was " Pavel Machek
2015-04-09  9:42                         ` Pavel Machek

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=20140917142542.GA5225@windriver.com \
    --to=paul.gortmaker@windriver.com \
    --cc=linux-arm-kernel@lists.infradead.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.