Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4467425iog; Tue, 21 Jun 2022 22:02:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u6W57cxaS18HG7QllLQQxSCJ/2iFWcraV30VS1VFwE6GJdnltDIRLEmHSyeLzPQEWIaxXO X-Received: by 2002:aa7:d484:0:b0:435:65b0:e2d8 with SMTP id b4-20020aa7d484000000b0043565b0e2d8mr1868904edr.373.1655874138523; Tue, 21 Jun 2022 22:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655874138; cv=none; d=google.com; s=arc-20160816; b=zNKm4VBofd787jxcQxN+h3yvSEvUYvzsueLgeI2mgFpNsbNVCm21ZOaBpjQGNVxG01 xKNDxqf9BCAco8btXMdrKZLPv6Kk4WE5BQFPuOm5Jr1GWQ79RNUFTGtLMJpAfAxff3Ad 8MMKz/ygIBYm69vB8+sxspE+iEWJ0nfl3oryklo1oqMws3S2CViY7x8+aWaPomhU0YeQ 0vpk2cjxfNvzrgJYPXH/9ct+GTEUXKj5SeHmxL3OTb2v6WGanXZR4vAEyUjnNVQu8NlV ox8eF1+2xfv43LHeIwB2oH4IccJCMAIBKn8oX73/thBLEJHa8SGKtgUaQUVnpAEenD2e xeBg== 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; bh=pw4G/s92jQ1p+AmMk6q8G5b3ONrJ7Fd+LC3AszjW/E4=; b=yUgd/kwWg3vl0uxonQK70Bt1VvlSGjlkLKiDYXRFcg92Nk5Oh++v4a4ARXP8XpDPf8 jAHckY48/E3cWKjjy1VZTV/6yLiSkidBJfKSs1xdBzXF9S0ALHYLpsxCB+/+5b9fQEK2 1rtva5TcYhGu31Lr1WxDlp96MUCLaE+/5tULu9qCt02jxpiJbwtDpV8CF40sOESed7c6 R5Pb4/xejlZrvIC1eQnA9jKQEAUFqf7PDbdfiRiISDsKWz1fNgIyc5LP2dhpi4jkqV/9 sNEf8mw/Ad7uw5jk9MmVlvUmhuuYWStjuz1FvSBSGFh1NO9hE+WGkeZMbKQ6/pPOZIjx vlvQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb9-20020a170907960900b006f39d4eb670si19912421ejc.966.2022.06.21.22.01.51; Tue, 21 Jun 2022 22:02:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357014AbiFVE7K (ORCPT + 99 others); Wed, 22 Jun 2022 00:59:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45198 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356969AbiFVE7E (ORCPT ); Wed, 22 Jun 2022 00:59:04 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D0F64289B8; Tue, 21 Jun 2022 21:59:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 6B48A809F; Wed, 22 Jun 2022 04:54:00 +0000 (UTC) Date: Wed, 22 Jun 2022 07:58:58 +0300 From: Tony Lindgren To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Len Brown , Pavel Machek , Joerg Roedel , Will Deacon , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , 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, Geert Uytterhoeven Subject: Re: [PATCH v2 1/9] PM: domains: Delete usage of driver_deferred_probe_check_state() Message-ID: References: <20220601070707.3946847-1-saravanak@google.com> <20220601070707.3946847-2-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=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 Hi, * Saravana Kannan [220621 19:29]: > On Tue, Jun 21, 2022 at 12:28 AM Tony Lindgren wrote: > > > > Hi, > > > > * Saravana Kannan [700101 02:00]: > > > Now that fw_devlink=on by default and fw_devlink supports > > > "power-domains" property, the execution will never get to the point > > > where driver_deferred_probe_check_state() is called before the supplier > > > has probed successfully or before deferred probe timeout has expired. > > > > > > So, delete the call and replace it with -ENODEV. > > > > Looks like this causes omaps to not boot in Linux next. > > Can you please point me to an example DTS I could use for debugging > this? I'm assuming you are leaving fw_devlink=on and not turning it > off or putting it in permissive mode. Sure, this seems to happen at least with simple-pm-bus as the top level interconnect with a configured power-domains property: $ git grep -A10 "ocp {" arch/arm/boot/dts/*.dtsi | grep -B3 -A4 simple-pm-bus This issue is no directly related fw_devlink. It is a side effect of removing driver_deferred_probe_check_state(). We no longer return -EPROBE_DEFER at the end of driver_deferred_probe_check_state(). > > On platform_probe() genpd_get_from_provider() returns > > -ENOENT. > > This error is with the series I assume? On the first probe genpd_get_from_provider() will return -ENOENT in both cases. The list is empty on the first probe and there are no genpd providers at this point. Earlier with driver_deferred_probe_check_state(), the initial -ENOENT ends up getting changed to -EPROBE_DEFER at the end of driver_deferred_probe_check_state(), we are now missing that. Regards, Tony