Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1008521rwb; Tue, 27 Sep 2022 07:20:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4S9Mt8M08LLOB2kzBUjSSJMSAYkOR/io0A4kuiL/gHbfr4yRejXMXlVboRlLwRLjEo/KGb X-Received: by 2002:a17:907:783:b0:76e:f290:8b5 with SMTP id xd3-20020a170907078300b0076ef29008b5mr23681934ejb.395.1664288430779; Tue, 27 Sep 2022 07:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664288430; cv=none; d=google.com; s=arc-20160816; b=yQMw3i3d6UfPrRXfmCZUuaw5k01t437lPwaGR/xEsqoL+8YBFxVoKLORhEKF0iHm7R QxmWkpboiDfk5hRnMguoQx/p/9+fjozaFEk34Um+azCP+s2FeVOkuWBwEurcqaizSd6B b5RmSg+8oZCHri8tUPMOnCYwar3TppqM2rZnkFVZlJlOZdJg9kE8dqNb4FxY7LqU5nod 6qRrZXw2p942vgg/qpUR3iMHj+Z/fofvjT50LCnNQ9CttQg6ONWbvMbHlvLO+TIYOIlC V3nSpPn+KaTTwtdAlN3b9bYPWPGcaPy2N7YoqRVG0ZoHP+sYT/Ovs7Fjw/tteOocJSf0 wmVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Z4PAlzKdGlSQyhm/CeXm02jEOTZEBYBG8ZCjSQMRLn4=; b=rd2Pwk5W0oS6e4brLW8n6bPK0z4K6ZxDeRxmDAVtKIysnNtm9Kgc84Vz6SXBQG3I5n ZrNTAF4NAha0iB12HsU0ND+N9jAuXxUQXdtfSZLi0NP/9oSXTf+snH57eRZNB4kl1NXC zd/vJ37pLPUxmrYR5liT2xq/a2xh8/5tNVnsA/6B2/NjeQ4HlssxJDNq56f5Srg6Vaec a/V6onE6o2N41xSvlAUdTGhgJdMclc7txk/h/slG34WAgjq1Yonk7bXe926CabGhqguF Vdrf6MXFZCkHWeqsLbgefajqQFy2B7HGRu95aWzXKxnzNewnEcD/D+99Zg0FZ7Sap1Q2 DzcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oDLkAAZA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g20-20020a50d0d4000000b004576d632738si1597268edf.342.2022.09.27.07.20.03; Tue, 27 Sep 2022 07:20:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oDLkAAZA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232429AbiI0MkH (ORCPT + 99 others); Tue, 27 Sep 2022 08:40:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232413AbiI0MkB (ORCPT ); Tue, 27 Sep 2022 08:40:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1C167269F; Tue, 27 Sep 2022 05:39:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2890F61932; Tue, 27 Sep 2022 12:39:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15663C433C1; Tue, 27 Sep 2022 12:39:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664282397; bh=37yDCTtTXKSMe/LNxUNskIHnOhgXH3MxP0BfzMXipSc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oDLkAAZAK9fwuZt7LKXM8ftnzMYuqEX16TQ7tEzyFmrIv30ofSaafC4Y6LcrceyD7 V+zHm07PGvSaenwVeBW7ozfKT0qc6eaS4RIQDezd00apiD/wzViERNkpjWxNMuSu3T TKNCo/J23ajBzpoO84jGyHvI9aryn0jwbsbvfsIQ= Date: Tue, 27 Sep 2022 14:39:53 +0200 From: Greg Kroah-Hartman To: Andy Shevchenko Cc: Rob Herring , Andrzej Hajda , Olof Johansson , 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 , 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 , 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 , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux-foundation.org, netdev@vger.kernel.org, linux-gpio@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-rpi-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-tegra@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-actions@lists.infradead.org, linux-unisoc@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, sparclinux@vger.kernel.org Subject: Re: [PATCH v2 0/2] Fix console probe delay when stdout-path isn't set Message-ID: References: <20220701012647.2007122-1-saravanak@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 27, 2022 at 03:17:59PM +0300, Andy Shevchenko wrote: > On Mon, Sep 26, 2022 at 01:25:05PM -0500, Rob Herring wrote: > > On Mon, Sep 19, 2022 at 5:56 PM Olof Johansson wrote: > > > > > > 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. > > > > Since the introduction of deferred probe, the kernel has always > > assumed if there is a device described, then there is or will be a > > driver for it. The result is you can't use new DTs (if they add > > providers) with older kernels. > > > > We've ended up with a timeout because no one has come up with a better > > way to handle it. What the kernel needs is userspace saying "I'm done > > loading modules", but it's debatable whether that's a good solution > > too. > > In my opinion the deferred probe is a big hack and that is the root > cause of the issues we have here and there. It has to be redesigned > to be mathematically robust. It was an attempt by Andrzej Hajda to > solve this [1]. > > [1]: https://events19.linuxfoundation.org/wp-content/uploads/2017/12/Deferred-Problem-Issues-With-Complex-Dependencies-Between-Devices-in-Linux-Kernel-Andrzej-Hajda-Samsung.pdf deferred probe has _ALWAYS_ been known to be a hack, way back when we accepted it, but it was the best hack we had to solve a real problem that we had, so it was accepted. It's been polished over the years, but yes, it does break down at times, due to the crazy complexity of hardware systems that we have no control over. If you have concrete solutions for how to solve the issue, wonderful, please submit patches :) thanks, greg k-h