Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp625001ybz; Wed, 15 Apr 2020 15:22:56 -0700 (PDT) X-Google-Smtp-Source: APiQypKCU8KNo35rArdQP5iHa5nVlXpLLoLuYjlxz9+K9psfhAsmEZp75pcTThwAzw6TDProsn0I X-Received: by 2002:a50:e107:: with SMTP id h7mr28069219edl.124.1586989376627; Wed, 15 Apr 2020 15:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586989376; cv=none; d=google.com; s=arc-20160816; b=cveJq0Vt/DUqWs4mlhvkBwQ62qOQESfKfzo3fV7y2n33aIPw7l9CqdqyhUyxNBTyh4 wjAkW6xN/HTh3JV3to0zKVkT7oh6pcyczl4BbRAxcEXeCiIoITS1r1KRoSrj3cTZGrzP vA+qS6h28IaTZU9xmxPDts8HSmiHXHMpE5xago1X+h1rrpECNjUglxgXfCdJpAVk5Jz5 hdSi6jlFxfm1C41pW8Wl1L11A84VrvuSmBWiy99s8FANB0NR8QvmnYpVOoP44RdwIc50 SW5KeYsMuiX4I3TWQVTQHwbJSTLPfEil7AYLRkRoslCNhD7DzNKaWl1gxnURLO141FUp qygw== 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=EMLxdzTx4bRDoBqt8TK6cHLOd2YxLMbrAy/qWm41Cl0=; b=l542gsWKIUOv5EMVi+NCxRXNgflhx4gvGPt5QGL7nuTw46YAELButNNH5nZEXuTSgS s/D1mFZXyGvnYgOFp+52lOVLw4YH+vtiRRNblzB8c2lnaxBs5Roggc58RsDUt3mDe9xI rSsIoTehUckgI8rlYMS9AlrMIOHSCacepHm3NavTWW+ePy1ygpJsZS5unbwL2LuBvHSp QuNyo5/kdsctHu9+1IFi8QzC6N7yWNWuLDMmsxVKYqCCuctSmzUSnjTQ4qP2+g6ozhGW lMqtA9pMzXffogavMN+KLsvTp92wyjJQNCptH2xkkT5Z/2Bx+M03d1iDdsFNJo1eXl6b VSDw== 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 11si11818144ejx.253.2020.04.15.15.22.33; Wed, 15 Apr 2020 15:22:56 -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 S2635387AbgDOHzJ (ORCPT + 99 others); Wed, 15 Apr 2020 03:55:09 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:46926 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2635370AbgDOHzG (ORCPT ); Wed, 15 Apr 2020 03:55:06 -0400 Received: by mail-ot1-f65.google.com with SMTP id w12so2450918otm.13; Wed, 15 Apr 2020 00:55:05 -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=EMLxdzTx4bRDoBqt8TK6cHLOd2YxLMbrAy/qWm41Cl0=; b=SA5cKDRzqkyo22EuXiXiRemfT3mZlJ9Ozp28BvCgzY6ZmC4gPu+U4ZCgkTXrV0hFLD PfjZPke1LTmv21X4IIv019c5PMW5FAsu7KdSz/QuUphse7BtRTdW7do86bpnMt0EYicR 7X9THZcElIRG98SIPn2VUd3za/Ja8qe2U48ZAZB85yEWj4LuER0DFCxz9NVVRaKu5EIx YMrteIYCSSikuqx5xUiikMWDqHg+6pV1ljhWwbTbKB0XlqEXyLd5HSHxl19IqaTXXmOf c786VYraFkr03U0ZUzIrNj0SWwHGWopmrivgWXDXx5OXIG3Bz1oyNDZn5UVJgPP/r/LF 1JuQ== X-Gm-Message-State: AGi0PuaDS4eMOgXrUe4axsSK8yPHmYjoOlg/wj2oSFFctiJcivDqmgyj 6sFHrEkuooab6qlCvapTGK8NPTEzoA3Y0tI8GyQ= X-Received: by 2002:a4a:95a9:: with SMTP id o38mr21663399ooi.76.1586937305074; Wed, 15 Apr 2020 00:55:05 -0700 (PDT) MIME-Version: 1.0 References: <20200408072650.1731-1-john.stultz@linaro.org> In-Reply-To: <20200408072650.1731-1-john.stultz@linaro.org> From: Geert Uytterhoeven Date: Wed, 15 Apr 2020 09:54:53 +0200 Message-ID: Subject: Re: [RFC][PATCH v2 1/2] 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 , 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 On Wed, Apr 8, 2020 at 9:26 AM John Stultz wrote: > 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: netdev > Cc: linux-pm@vger.kernel.org > Reported-by: Yoshihiro Shimoda > Fixes: c8c43cee29f6 ("driver core: Fix driver_deferred_probe_check_state() logic") > Signed-off-by: John Stultz Works fine with all four combinations (CONFIG_IPMMU_VMSA=y/n and CONFIG_MODULES=y/n) on Renesas Salvator-X(S) with R-Car Gen3. Tested-by: Geert Uytterhoeven 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