Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp266558ioo; Thu, 26 May 2022 03:15:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkQ2G6R+qUUgAmobVVeRdgsspKfn8McygLPebe3hiDEQi8FPuGv0ToIOIa6i3oN2412DSy X-Received: by 2002:a05:6402:51c9:b0:42b:63c2:6657 with SMTP id r9-20020a05640251c900b0042b63c26657mr21583329edd.255.1653560103035; Thu, 26 May 2022 03:15:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653560103; cv=none; d=google.com; s=arc-20160816; b=tgjC5/G3F5q+ALANTEDyuHWWe3b0UsPrLgjNUWGPJsieMQxvQn2Itaaxjn4HXdWgQp ltlnGmoTrGFDFqGoZCfUlh27Fv7phPIDzleKDJqImZS9ZAmEIRTAt3JSebNSjltAwlbp K3MbalhMvrwwuDtNDbtrj1R+nkJMor9pYFbJQ4Ie+pDVlkTsf/tidIvnT00yvEMimajL ZG7FZqjTYqgPRptdQ8Hs3YG8Ydr/dQFiduWYttJPBYucz84/mG1vXhfSKWTNpYs6USNI UTp5MTrhosh8wsuW3f4xaaCYnnhyKb3GRaWOKcWaYrBKrliN5IuRczSjtyh86V5T/0rz 8J2A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:dkim-signature:dkim-signature:date; bh=+orsWNjWtAwiggB87niLJ7T2vo66GNbCnC4aWo769UQ=; b=on5Mav4702OABePj30DXTVkc5BcyOIxDtpkH7Y61OuypH07U5SjYIXvr6XgxsW9jzS 1wUE3MZWVzrqQtC59HBwU/rXM9sj3OpdEysqCmbIYd4++GWNMXnrPcwtm5Yqy9rfauVl a+C2F/0JLYxX2GgNO3aoksJCGIhBX1i5t8wGzSviJOU74P7cNsRtbu8dZQbyZGWk+aR1 8676mm1WFbolVbOL42ZazB7WN1BvRZJ4CxBupU63AmzWFGZ3iy1dxXZudVbu3W4zFyR4 p3O9kw8eQshtX1L+9Pc1OO7zEFvZIVuTnVgK2rhFuW4GuLhMb/bbqEmnNBELPntC8KO7 B5fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=tXIaQWve; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=1vNUO3Da; 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=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a170906c20200b006fefa46c434si1184496ejz.56.2022.05.26.03.14.35; Thu, 26 May 2022 03:15:03 -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=@linutronix.de header.s=2020 header.b=tXIaQWve; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=1vNUO3Da; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244293AbiEYHMm (ORCPT + 99 others); Wed, 25 May 2022 03:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238372AbiEYHMF (ORCPT ); Wed, 25 May 2022 03:12:05 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCBA95FDB; Wed, 25 May 2022 00:12:03 -0700 (PDT) Date: Wed, 25 May 2022 09:11:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1653462718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+orsWNjWtAwiggB87niLJ7T2vo66GNbCnC4aWo769UQ=; b=tXIaQWvesmewK1SQvqwWgjKsyAyyIrLjEanwcNAy2h/P5FMGq/kJgWZClGgDeKmANuYAkW 6I7SL146oVeYMmgPOm/K/5ULiZwNsVMQKo5zuy5USu5ms+bQvLeomBnv/Y7RF7ep6r43Fg yrE+GteNpeB84vc7KB5yHCiGDGSLxpJF9n26BehK7VVK2KwTS1qiOtnBNXBBg3s07zq9LZ QuC90oOJFyjhHJqpIG4b7pe7LqIsPAYDmbR2tbrm4G6CKN84jA5eTlcpkoSp3W47VVgETh utsXLbJ9WiKBewsE1+4q4+5PmLVYRznaktasLTJPtcPFwgqlSj1UxEdIbhT9hg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1653462718; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+orsWNjWtAwiggB87niLJ7T2vo66GNbCnC4aWo769UQ=; b=1vNUO3Dakuo2lI9Z/n9vsWIZ8Loex9gUHN2zaefzYBYblmfryFJ25az2ZrOSX+XZBIv9t6 eUlvctYCzDyGwvCQ== From: Sebastian Andrzej Siewior To: Saravana Kannan Cc: Nathan Chancellor , Jonathan Corbet , Greg Kroah-Hartman , "Rafael J. Wysocki" , "Rafael J. Wysocki" , Rob Herring , Linus Walleij , Will Deacon , Ulf Hansson , Kevin Hilman , Thierry Reding , Mark Brown , Pavel Machek , Geert Uytterhoeven , Yoshihiro Shimoda , Paul Kocialkowski , linux-gpio@vger.kernel.org, linux-pm@vger.kernel.org, iommu@lists.linux-foundation.org, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, John Stultz Subject: Re: [PATCH v1] driver core: Extend deferred probe timeout on driver registration Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 2022-05-24 10:46:49 [-0700], Saravana Kannan wrote: > > Removing probe_timeout_waitqueue (as suggested) or setting the timeout > > to 0 avoids the delay. >=20 > In your case, I think it might be working as intended? Curious, what > was the call stack in your case where it was blocked? Why is then there 10sec delay during boot? The backtrace is |------------[ cut here ]------------ |WARNING: CPU: 4 PID: 1 at drivers/base/dd.c:742 wait_for_device_probe+0x30= /0x110 |Modules linked in: |CPU: 4 PID: 1 Comm: swapper/0 Not tainted 5.18.0-rc5+ #154 |RIP: 0010:wait_for_device_probe+0x30/0x110 |Call Trace: | | prepare_namespace+0x2b/0x160 | kernel_init_freeable+0x2b3/0x2dd | kernel_init+0x11/0x110 | ret_from_fork+0x22/0x30 | Looking closer, it can't access init. This in particular box boots directly the kernel without an initramfs so the kernel later mounts /dev/sda1 and everything is good. So that seems to be the reason=E2=80=A6 My other machine with an initramfs does not show this problem. > -Saravana Sebastian