lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Mon, 19 Sep 2022 15:56:09 -0700
From:   Olof Johansson <>
To:     Greg Kroah-Hartman <>
Cc:     Saravana Kannan <>,
        "Rafael J. Wysocki" <>,
        Laurentiu Tudor <>,
        Jiri Slaby <>,
        Michael Ellerman <>,
        Benjamin Herrenschmidt <>,
        Paul Mackerras <>,
        Joel Stanley <>,
        Andrew Jeffery <>,
        Nicolas Saenz Julienne <>,
        Broadcom internal kernel review list 
        Florian Fainelli <>,
        Ray Jui <>,
        Scott Branden <>,
        Al Cooper <>,
        Andy Shevchenko <>,
        Paul Cercueil <>,
        Vladimir Zapolskiy <>,
        Matthias Brugger <>,
        Thierry Reding <>,
        Jonathan Hunter <>,
        Kunihiko Hayashi <>,
        Masami Hiramatsu <>,
        Tobias Klauser <>,
        Russell King <>,
        Vineet Gupta <>,
        Richard Genoud <>,
        Nicolas Ferre <>,
        Alexandre Belloni <>,
        Claudiu Beznea <>,
        Alexander Shiyan <>,
        Baruch Siach <>,
        Shawn Guo <>,
        Sascha Hauer <>,
        Pengutronix Kernel Team <>,
        Fabio Estevam <>,
        NXP Linux Team <>,
        Karol Gugala <>,
        Mateusz Holenko <>,
        Gabriel Somlo <>,
        Neil Armstrong <>,
        Kevin Hilman <>,
        Jerome Brunet <>,
        Martin Blumenstingl <>,
        Taichi Sugaya <>,
        Takao Orito <>,
        Liviu Dudau <>,
        Sudeep Holla <>,
        Lorenzo Pieralisi <>,
        Andy Gross <>,
        Bjorn Andersson <>,
        Pali Rohar <>,
        Andreas Farber <>,
        Manivannan Sadhasivam <>,
        Krzysztof Kozlowski <>,
        Alim Akhtar <>,
        Laxman Dewangan <>,
        Palmer Dabbelt <>,
        Paul Walmsley <>,
        Orson Zhai <>,
        Baolin Wang <>,
        Chunyan Zhang <>,
        Patrice Chotard <>,
        Maxime Coquelin <>,
        Alexandre Torgue <>,
        "David S. Miller" <>,
        Hammer Hsieh <>,
        Peter Korsgaard <>,
        Timur Tabi <>,
        Michal Simek <>,
        Rob Herring <>,
        sascha hauer <>, peng fan <>,
        kevin hilman <>,
        ulf hansson <>,
        len brown <>, pavel machek <>,
        joerg roedel <>, will deacon <>,
        andrew lunn <>,
        heiner kallweit <>,
        eric dumazet <>,
        jakub kicinski <>,
        paolo abeni <>,
        linus walleij <>,
        hideaki yoshifuji <>,
        david ahern <>,,,,,,,,,,,,,,,,,,,,,,,
Subject: Re: [PATCH v2 0/2] Fix console probe delay when stdout-path isn't set

On Mon, Sep 19, 2022 at 1:44 AM Greg Kroah-Hartman
<> wrote:
> On Sun, Sep 18, 2022 at 08:44:27PM -0700, Olof Johansson wrote:
> > On Tue, Aug 23, 2022 at 8:37 AM Greg Kroah-Hartman
> > <> wrote:
> > >
> > > On Thu, Jun 30, 2022 at 06:26:38PM -0700, Saravana Kannan wrote:
> > > > These patches are on top of driver-core-next.
> > > >
> > > > Even if stdout-path isn't set in DT, this patch should take console
> > > > probe times back to how they were before the deferred_probe_timeout
> > > > clean up series[1].
> > >
> > > Now dropped from my queue due to lack of a response to other reviewer's
> > > questions.
> >
> > What happened to this patch? I have a 10 second timeout on console
> > probe on my SiFive Unmatched, and I don't see this flag being set for
> > the serial driver. In fact, I don't see it anywhere in-tree. I can't
> > seem to locate another patchset from Saravana around this though, so
> > I'm not sure where to look for a missing piece for the sifive serial
> > driver.
> >
> > This is the second boot time regression (this one not fatal, unlike
> > the Layerscape PCIe one) from the fw_devlink patchset.
> >
> > Greg, can you revert the whole set for 6.0, please? It's obviously
> > nowhere near tested enough to go in and I expect we'll see a bunch of
> > -stable fixups due to this if we let it remain in.
> What exactly is "the whole set"?  I have the default option fix queued
> up and will send that to Linus later this week (am traveling back from
> Plumbers still), but have not heard any problems about any other issues
> at all other than your report.

I stand corrected in this case, the issue on the Hifive Unmatched was
a regression due to a PWM clock change -- I just sent a patch for that
(serial driver fix).

So it seems like as long as the fw_devlink.strict=1 patch is reverted,
things are back to a working state here.

I still struggle with how the fw_devlink patchset is expected to work
though, since DT is expected to describe the hardware configuration,
and it has no knowledge of whether there are drivers that will be
bound to any referenced supplier devnodes. It's not going to work well
to assume that they will always be bound, and to add 10 second
timeouts for those cases isn't a good solution. Seems like the number
of special cases will keep adding up.

The whole design feels like it's falling short, and it's been patched
here and there to deal with the shortcomings, instead of revisiting
the full solution. (The patches are the console one, and another to
deal with nfsroot boots).

As long as it doesn't keep regressing others, I suppose the work to
redesign it can happen in-tree, but it's not usually how we try to do
it for new functionality. Especially since it's still being iterated
on (with active patch sets posted around -rc1 for improvements).

Oh, and one more thing for the future -- the main patch that changes
behavior due to dependency tracking is 2f8c3ae8288e, named "driver
core: Add wait_for_init_devices_probe helper function". It's easy to
overlook this when looking at a list of patches since it's said to
just introduce a helper.


Powered by blists - more mailing lists