From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2CD2EC433EF for ; Wed, 25 May 2022 07:12:09 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B1FEE408DD; Wed, 25 May 2022 07:12:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vNGMpRrlZ3GG; Wed, 25 May 2022 07:12:07 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 45CE2408DA; Wed, 25 May 2022 07:12:07 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 25D05C0032; Wed, 25 May 2022 07:12:07 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6298FC002D for ; Wed, 25 May 2022 07:12:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 495D0408D6 for ; Wed, 25 May 2022 07:12:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PRDnTRvgwr7d for ; Wed, 25 May 2022 07:12:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by smtp4.osuosl.org (Postfix) with ESMTPS id 6DF2B4086A for ; Wed, 25 May 2022 07:12:05 +0000 (UTC) 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 Subject: Re: [PATCH v1] driver core: Extend deferred probe timeout on driver registration Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: Ulf Hansson , linux-doc@vger.kernel.org, Linus Walleij , John Stultz , Pavel Machek , linux-s390@vger.kernel.org, Will Deacon , Rob Herring , Jonathan Corbet , "Rafael J. Wysocki" , Geert Uytterhoeven , Thierry Reding , kernel-team@android.com, linux-pm@vger.kernel.org, Nathan Chancellor , linux-gpio@vger.kernel.org, Mark Brown , Greg Kroah-Hartman , Kevin Hilman , "Rafael J. Wysocki" , linux-kernel@vger.kernel.org, Paul Kocialkowski , iommu@lists.linux-foundation.org X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" T24gMjAyMi0wNS0yNCAxMDo0Njo0OSBbLTA3MDBdLCBTYXJhdmFuYSBLYW5uYW4gd3JvdGU6Cj4g PiBSZW1vdmluZyBwcm9iZV90aW1lb3V0X3dhaXRxdWV1ZSAoYXMgc3VnZ2VzdGVkKSBvciBzZXR0 aW5nIHRoZSB0aW1lb3V0Cj4gPiB0byAwIGF2b2lkcyB0aGUgZGVsYXkuCj4gCj4gSW4geW91ciBj YXNlLCBJIHRoaW5rIGl0IG1pZ2h0IGJlIHdvcmtpbmcgYXMgaW50ZW5kZWQ/IEN1cmlvdXMsIHdo YXQKPiB3YXMgdGhlIGNhbGwgc3RhY2sgaW4geW91ciBjYXNlIHdoZXJlIGl0IHdhcyBibG9ja2Vk PwoKV2h5IGlzIHRoZW4gdGhlcmUgMTBzZWMgZGVsYXkgZHVyaW5nIGJvb3Q/IFRoZSBiYWNrdHJh Y2UgaXMKfC0tLS0tLS0tLS0tLVsgY3V0IGhlcmUgXS0tLS0tLS0tLS0tLQp8V0FSTklORzogQ1BV OiA0IFBJRDogMSBhdCBkcml2ZXJzL2Jhc2UvZGQuYzo3NDIgd2FpdF9mb3JfZGV2aWNlX3Byb2Jl KzB4MzAvMHgxMTAKfE1vZHVsZXMgbGlua2VkIGluOgp8Q1BVOiA0IFBJRDogMSBDb21tOiBzd2Fw cGVyLzAgTm90IHRhaW50ZWQgNS4xOC4wLXJjNSsgIzE1NAp8UklQOiAwMDEwOndhaXRfZm9yX2Rl dmljZV9wcm9iZSsweDMwLzB4MTEwCnxDYWxsIFRyYWNlOgp8IDxUQVNLPgp8IHByZXBhcmVfbmFt ZXNwYWNlKzB4MmIvMHgxNjAKfCBrZXJuZWxfaW5pdF9mcmVlYWJsZSsweDJiMy8weDJkZAp8IGtl cm5lbF9pbml0KzB4MTEvMHgxMTAKfCByZXRfZnJvbV9mb3JrKzB4MjIvMHgzMAp8IDwvVEFTSz4K Ckxvb2tpbmcgY2xvc2VyLCBpdCBjYW4ndCBhY2Nlc3MgaW5pdC4gVGhpcyBpbiBwYXJ0aWN1bGFy IGJveCBib290cwpkaXJlY3RseSB0aGUga2VybmVsIHdpdGhvdXQgYW4gaW5pdHJhbWZzIHNvIHRo ZSBrZXJuZWwgbGF0ZXIgbW91bnRzCi9kZXYvc2RhMSBhbmQgZXZlcnl0aGluZyBpcyBnb29kLiAg U28gdGhhdCBzZWVtcyB0byBiZSB0aGUgcmVhc29u4oCmCk15IG90aGVyIG1hY2hpbmUgd2l0aCBh biBpbml0cmFtZnMgZG9lcyBub3Qgc2hvdyB0aGlzIHByb2JsZW0uCgo+IC1TYXJhdmFuYQoKU2Vi YXN0aWFuCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCmlv bW11IG1haWxpbmcgbGlzdAppb21tdUBsaXN0cy5saW51eC1mb3VuZGF0aW9uLm9yZwpodHRwczov L2xpc3RzLmxpbnV4Zm91bmRhdGlvbi5vcmcvbWFpbG1hbi9saXN0aW5mby9pb21tdQ== From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6305EC433EF for ; Wed, 25 May 2022 07:12:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244268AbiEYHM0 (ORCPT ); Wed, 25 May 2022 03:12:26 -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: Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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