Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1542195ybz; Thu, 23 Apr 2020 00:25:15 -0700 (PDT) X-Google-Smtp-Source: APiQypILe3sEueecL8JYXrNglwOYe0aRyZdy8xeuLZCRl3otHvwKMpU4gDPuzGkfFlHRHxokOwbc X-Received: by 2002:a50:eac7:: with SMTP id u7mr1593760edp.190.1587626714892; Thu, 23 Apr 2020 00:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587626714; cv=none; d=google.com; s=arc-20160816; b=LNTFzWEBsaSnfB6hjuM+h2pxSL8vHNMop0cQ07z7ipEY/qu9S28kbxkW4AvuiJV1tD SbhSRq35ynqfmktgMSzmjlOC91sBgIvPeTmkgvEwyuxhdeg8ML2Tv7N6EdUrBlblOSwj F2vHVLbVru++GwAtXB1EeacXo1rmF22ajWDnPAhm59fSOYhQKKPQJEDY0T2ZlAk5zFtZ DRcSOLRkgH21NCgb7ODXRJ05z9C5GxReS4vUvU2L0LiHhalMUyvDIN091iJo8xdUc9q4 J0ozovFzynUn4el34Aby2bAYtaRNoGgoLH7yl9rzFvFlKhPfHtVpt9gufvxtrs2r+D9P CnrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=808ik/GIj3p05dzRzFuD5hpfWtTHwfQKpMCMgwgCEYo=; b=Rd3uoFH8SI57tDBFCWdfp62fzlwfQ4myeMr/WVH3/31p/s4LaPFY4x1vA8G5yiseQw aWj8Vzmr82CTV/21GCtiFBCk7WFGVLNsI6np7yXlKDjZT9f0V/IZZzt4SmABqbRXVA4M GalcJe7jY4ruxWFA9ERda7wFFjqYiCHclQPTholUzQJJQ5I+ktuS61ExFK1WSbXgp5pd RF3Sgh7N0ROjik15VbriT1RcV9K1HMUAAjCnRN50LlyHTxz+87i7RDJHUwr1mJry1hE+ bCVQ+s2t+t50dChud4mfanxQXybtjfHv41hDVoHYpDMz9LqAHmY5KkQlrkLoSXsN0YKD c6Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l24si788972eja.496.2020.04.23.00.24.51; Thu, 23 Apr 2020 00:25:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbgDWHXV (ORCPT + 99 others); Thu, 23 Apr 2020 03:23:21 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:43477 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725562AbgDWHXV (ORCPT ); Thu, 23 Apr 2020 03:23:21 -0400 Received: by mail-ot1-f66.google.com with SMTP id g14so4480404otg.10; Thu, 23 Apr 2020 00:23:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=808ik/GIj3p05dzRzFuD5hpfWtTHwfQKpMCMgwgCEYo=; b=QGW8xU5TuWPE14Gjbiw7TxzmHnv5PAIypUvimdvq0xLxzhuzZFVdLsunI8EWsmvcLU vVzFmQLDjrN5ukw2fyBlmj+wT1Do8IhHM7UgnJUiGY3P+rCcUXFNnfAIhLEuiKBTpqGv H6XrlGOUi5UAMsZoJn3Hk6yhjqymJ4l35cCsDZQzGec/LRVkNzN0NMwvjggwOTjbrCn6 YXIkhjlAP0axsPtO4pXQdBPJAuExixET8gSN4q5M5Zo2YsT4C9K678ONUI60o4J7vCt2 23Tc+faPN4pL9Ab0/7xRi6Bj9DGr0Es2vWhz9Cm5UuEGwYGWIilrJh305GoEU2QHEeTY t5Sg== X-Gm-Message-State: AGi0Puaxh/La8QXdiF46MS3yTZ3QySfKW0mXZNp3PQRVkMZL11wVbAaM BhMcyo3lexPM2daUrDmwlssLiibBAeHCKiXx2kk= X-Received: by 2002:a9d:564:: with SMTP id 91mr2390779otw.250.1587626600653; Thu, 23 Apr 2020 00:23:20 -0700 (PDT) MIME-Version: 1.0 References: <20200422203245.83244-1-john.stultz@linaro.org> <20200422203245.83244-2-john.stultz@linaro.org> In-Reply-To: <20200422203245.83244-2-john.stultz@linaro.org> From: Geert Uytterhoeven Date: Thu, 23 Apr 2020 09:23:09 +0200 Message-ID: Subject: Re: [PATCH v3 1/3] driver core: Revert default driver_deferred_probe_timeout value to 0 To: John Stultz Cc: lkml , "David S. Miller" , Alexey Kuznetsov , Hideaki YOSHIFUJI , Jakub Kicinski , Greg Kroah-Hartman , "Rafael J . Wysocki" , Rob Herring , Yoshihiro Shimoda , Robin Murphy , Andy Shevchenko , Sudeep Holla , Andy Shevchenko , Naresh Kamboju , Basil Eljuse , Ferry Toth , Arnd Bergmann , Anders Roxell , netdev , Linux PM list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, On Wed, Apr 22, 2020 at 10:33 PM John Stultz wrote: > This patch addresses a regression in 5.7-rc1+ > > In commit c8c43cee29f6 ("driver core: Fix > driver_deferred_probe_check_state() logic"), we both cleaned up > the logic and also set the default driver_deferred_probe_timeout > value to 30 seconds to allow for drivers that are missing > dependencies to have some time so that the dependency may be > loaded from userland after initcalls_done is set. > > However, Yoshihiro Shimoda reported that on his device that > expects to have unmet dependencies (due to "optional links" in > its devicetree), was failing to mount the NFS root. > > In digging further, it seemed the problem was that while the > device properly probes after waiting 30 seconds for any missing > modules to load, the ip_auto_config() had already failed, > resulting in NFS to fail. This was due to ip_auto_config() > calling wait_for_device_probe() which doesn't wait for the > driver_deferred_probe_timeout to fire. > > Fixing that issue is possible, but could also introduce 30 > second delays in bootups for users who don't have any > missing dependencies, which is not ideal. > > So I think the best solution to avoid any regressions is to > revert back to a default timeout value of zero, and allow > systems that need to utilize the timeout in order for userland > to load any modules that supply misisng dependencies in the dts > to specify the timeout length via the exiting documented boot > argument. > > Thanks to Geert for chasing down that ip_auto_config was why NFS > was failing in this case! > > Cc: "David S. Miller" > Cc: Alexey Kuznetsov > Cc: Hideaki YOSHIFUJI > Cc: Jakub Kicinski > Cc: Greg Kroah-Hartman > Cc: Rafael J. Wysocki > Cc: Rob Herring > Cc: Geert Uytterhoeven > Cc: Yoshihiro Shimoda > Cc: Robin Murphy > Cc: Andy Shevchenko > Cc: Sudeep Holla > Cc: Andy Shevchenko > Cc: Naresh Kamboju > Cc: Basil Eljuse > Cc: Ferry Toth > Cc: Arnd Bergmann > Cc: Anders Roxell > Cc: netdev > Cc: linux-pm@vger.kernel.org > Reported-by: Yoshihiro Shimoda > Tested-by: Yoshihiro Shimoda > Fixes: c8c43cee29f6 ("driver core: Fix driver_deferred_probe_check_state() logic") > Signed-off-by: John Stultz Looks like you lost my Tested-by: Geert Uytterhoeven on v2. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds