Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1391566
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Doug Anderson <dianders@chromium.org> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree |
| Date | Sat, 30 Apr 2016 04:30:02 +0200 |
| Message-ID | <rtsPo-eM-11@gated-at.bofh.it> (permalink) |
| References | <rtmJY-3d5-13@gated-at.bofh.it> <rtmTE-3yl-21@gated-at.bofh.it> <rtnZn-4me-3@gated-at.bofh.it> <rtnZn-4me-1@gated-at.bofh.it> <rtoiK-4yd-9@gated-at.bofh.it> <rtoiK-4yd-7@gated-at.bofh.it> <rtoC6-4GO-27@gated-at.bofh.it> <rtoC7-4GO-35@gated-at.bofh.it> <rtoVs-5lW-13@gated-at.bofh.it> <rtp58-5rQ-9@gated-at.bofh.it> <rtpou-5CD-19@gated-at.bofh.it> <rtpHQ-65N-17@gated-at.bofh.it> <rtque-6qS-13@gated-at.bofh.it> <rtr6W-76c-13@gated-at.bofh.it> <rtr6W-76c-11@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=95PPUPYjQfwU98art5YUo6W+OizJecY9PsyqVU8pRBQ=; b=HNCRTR3LxIJWmqtzXrtZ/GGt/DIwMiPNtjn/5/pPbjjnB90JbuCyr8uQ50SZfh2Jmq L7P62nfXV831bwEv8m634V7E5M7E7eSjCErLAlDSW2cQaHDXv+OJXvXlKoT2a4gKw+2e UtEKB0ohxPp7pLVE9f0YBi8972ymI9HN7OrMyD1bUyrVe0upeGEBmDoNF4bpL6LpVq36 quDDwh6vcbw5nGn0Un29/h07NxiJk18eRVZQP2lWF55R56RDeUYh4WaHI0xMgmSVGkqf g8YwS9CX29sLu8DqhUnTvoRvLrjjnAtVsslwr+jSvCC4dQJQdhArU4uweH9Of8TbN6ts 2r/g== |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=95PPUPYjQfwU98art5YUo6W+OizJecY9PsyqVU8pRBQ=; b=mRVjunrEAj1dmMifUWoNto5KZWNY78h8j3udjAj372AEdT6ZihDdEOYT2iMPcIYDHd r4TyLnqtwE8tGbBXOYoNsX+hNytyZCRd6l6lCcVRUtbbcEOfPkCS2pMLKrmyIQ/Uz9Zm WQaMYRGar5rvZgLID9lSfSgn8K9Ltgna5F52E= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=95PPUPYjQfwU98art5YUo6W+OizJecY9PsyqVU8pRBQ=; b=fWU5VrRE2NRk52KJyUuBnlke081uhiAdD0kSX5Hk+bxlzlpQ1B2seC2S7oOS383AHx DK1pvWVriZ7UjY3ZrjKp3NfwYza9uNy14r9eYhFC52INvQ/Txs9OoeU8NbayqoinhuUl 2FmPmpcyDqbSBY114V0VKSko9V2/7weF8b0ZM5kHnbMBKKlSD4e33fV7sq5J5oFjTgph vSYBpZasOcvBaCLNUbycf695V0FrZxF7UQ/rzH2P6ERUvwULQpW1q/YscoZ4eGG564yT HmHQSJBhPqU69JptZ4QENaXrNrIw0t2jY0u/XQuLJ08F1Q3k3X0MCH0wi58g6MZZOBcM xqjw== |
| X-Gm-Message-State | AOPr4FUPOFFLbCvmU3tvyacf0joF7EqUVkAw3/H8vqqvluqUjuRJ1hVMu9s2DUnYEPgKe+AG2xn9Q47+RMNwaIqF |
| MIME-Version | 1.0 |
| X-Received | by 10.31.97.68 with SMTP id v65mr1118744vkb.23.1461983363143; Fri, 29 Apr 2016 19:29:23 -0700 (PDT) |
| X-Google-Sender-Auth | N1OWMl9bpYayQZ5lvfN-i4nBvlg |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 60 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Russell King - ARM Linux <linux@arm.linux.org.uk>, Ulf Hansson <ulf.hansson@linaro.org>, Jaehoon Chung <jh80.chung@samsung.com>, Shawn Lin <shawn.lin@rock-chips.com>, Adrian Hunter <adrian.hunter@intel.com>, Stefan Agner <stefan@agner.ch>, "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>, Brian Norris <computersforpeace@gmail.com>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Heiko Stuebner <heiko@sntech.de>, Jisheng Zhang <jszhang@marvell.com>, "open list:ARM/Rockchip SoC..." <linux-rockchip@lists.infradead.org>, devicetree-spec@vger.kernel.org, Mark Rutland <mark.rutland@arm.com>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Venu Byravarasu <vbyravarasu@nvidia.com>, Lars-Peter Clausen <lars@metafoo.de>, Jon Hunter <jonathanh@nvidia.com>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, Pawel Moll <pawel.moll@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Grant Grundler <grundler@chromium.org>, Kumar Gala <galak@codeaurora.org>, "Luca Porzio (lporzio)" <lporzio@micron.com>, Rob Herring <robh+dt@kernel.org>, Chaotian Jing <chaotian.jing@mediatek.com>, Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>, Sudeep Holla <sudeep.holla@arm.com>, zhonghui.fu@linux.intel.com, kirill.shutemov@linux.intel.com |
| X-Original-Date | Fri, 29 Apr 2016 19:29:22 -0700 |
| X-Original-Message-ID | <CAD=FV=UuGdbagFgK-EpF_0RKw35pdcm-92qDgRf_Csrwj6seLA@mail.gmail.com> |
| X-Original-References | <20160429195741.GY19428@n2100.arm.linux.org.uk> <CAD=FV=UGyi0r3kDmc1cpcANTP-2u+7UEgW3r9kRvF2f8qcWH+g@mail.gmail.com> <20160429211328.GZ19428@n2100.arm.linux.org.uk> <CAD=FV=V8BOsO36eUOGAcXp04xCiN13UGG0Vaf2yhh1MQn85FjA@mail.gmail.com> <20160429212920.GA19428@n2100.arm.linux.org.uk> <CAD=FV=V9V8P=d59RX1eaAdVxJgMxub1F6hzQNw1QW+7t=3POBw@mail.gmail.com> <20160429215017.GC19428@n2100.arm.linux.org.uk> <CAD=FV=VgQX_EVhUUCugzv+CZqjzTS8LwyeU5419aX9FbDnWJDg@mail.gmail.com> <20160429221606.GE19428@n2100.arm.linux.org.uk> <CAD=FV=WzgGFzzpeYAPrOpMS684_G=XRoSRjTegK-vre=fX=kpw@mail.gmail.com> <20160429224407.GF19428@n2100.arm.linux.org.uk> <CAD=FV=U5jnJJ3v=nFGFecoKB5KGv1ufC+aKbHx2iCqBTWpDTww@mail.gmail.com> <5723F514.4@hurleysoftware.com> <CAD=FV=V_YyfBOSs7BLkyhv=_5HBmf3djUWACbL6d-bwnrueDjA@mail.gmail.com> <5723FCE3.9070308@hurleysoftware.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1391566 |
Show key headers only | View raw
Hi,
On Fri, Apr 29, 2016 at 5:31 PM, Peter Hurley <peter@hurleysoftware.com> wrote:
> On 04/29/2016 05:03 PM, Doug Anderson wrote:
>> Hi,
>>
>> On Fri, Apr 29, 2016 at 4:58 PM, Peter Hurley <peter@hurleysoftware.com> wrote:
>>
>> On 04/29/2016 04:01 PM, Doug Anderson wrote:
>> > * serial allows numbering devices by alias.
>>
>> Which is in fact a total nightmare.
>>
>> While stable device order is mandatory in serial because of
>> console command line parameters and existing userspace expectations,
>> it is the number one barrier to providing a shared ttyS namespace
>> for mixed uart platforms.
>>
>> Stable device order has a very real (and often unforeseen) maintenance
>> burden.
>>
>>
>> Interesting. I wonder if these burdens are unique to serial or shared
>> by all the other subsystems that allow ordering? Maybe this is all
>> because of legacy reasons?
>
> Well, the specific issue is certainly unique to serial.
> But what I was suggesting is that 5 years from now, these patches
> could be the "legacy reasons" in mmc.
>
> FWIW, there is already a defacto expectation by boot configurations in the
> field that a given mmc block device is stable across boots. The reality
> is that 100000's of kernel command lines look like:
>
> root=/dev/mmcblk0p2
>
> This was a recent regression fixed by Ulf in commit 9aaf3437aa72
> ("mmc: block: Use the mmc host device index as the mmcblk device index")
Ah. Well, in this case it sounds like we've already got an
expectation of stable numbering from boot to boot. I had missed Ulf's
patch, so I guess part 3 of my series isn't actually needed and can be
dropped.
So it's just a question of whether we allow people to manually specify
via device tree.
Note: if we really think using root=/dev/mmcblkNpM is a bad idea then
we should deprecate it and yell about it in the boot log. Then 5 (or
20) years down the road we could remove the feature when the legacy
burden become a pain. Note that even if we deprecated
root=/dev/mmcblkNpM I'd still love to see the numbering be consistent
to help folks parse dmesg.
Thanks for your thoughts!
-Doug
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Douglas Anderson <dianders@chromium.org> - 2016-04-29 19:40 +0200
[PATCH v2 1/4] Documentation: mmc: Document mmc aliases Douglas Anderson <dianders@chromium.org> - 2016-04-29 19:40 +0200
[PATCH v2 2/4] mmc: read mmc alias from device tree Douglas Anderson <dianders@chromium.org> - 2016-04-29 19:40 +0200
[PATCH v2 4/4] ARM: dts: rockchip: Add mmc aliases for rk3288 platform Douglas Anderson <dianders@chromium.org> - 2016-04-29 19:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Rob Herring <robh+dt@kernel.org> - 2016-04-29 20:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 21:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 22:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 22:10 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 20:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 21:50 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 22:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 22:10 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 23:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-29 23:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 00:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-30 00:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 00:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-30 00:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 00:50 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-30 01:10 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Peter Hurley <peter@hurleysoftware.com> - 2016-04-30 02:00 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Peter Hurley <peter@hurleysoftware.com> - 2016-04-30 02:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Doug Anderson <dianders@chromium.org> - 2016-04-30 04:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 10:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Rob Herring <robh+dt@kernel.org> - 2016-04-30 15:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Javier Martinez Canillas <javier@dowhile0.org> - 2016-04-30 00:50 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-30 12:50 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Trent Piepho <tpiepho@kymetacorp.com> - 2016-05-03 21:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 23:40 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Russell King - ARM Linux <linux@arm.linux.org.uk> - 2016-04-29 23:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Pavel Machek <pavel@ucw.cz> - 2016-05-04 09:20 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Rob Herring <robh+dt@kernel.org> - 2016-05-04 14:30 +0200
Re: [PATCH v2 0/4] Patches to allow consistent mmc / mmcblk numbering w/ device tree Pavel Machek <pavel@ucw.cz> - 2016-05-04 14:50 +0200
csiph-web