Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2760335iog; Mon, 27 Jun 2022 02:17:23 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vEgNuzuiRcwckUK9QyD9lHIvWzmKF/OhLWtwCwiHKjtDiGavI7LKvQPNViwxLyO2WC0bCr X-Received: by 2002:a17:903:2447:b0:16a:3b58:48c1 with SMTP id l7-20020a170903244700b0016a3b5848c1mr13842271pls.44.1656321443255; Mon, 27 Jun 2022 02:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656321443; cv=none; d=google.com; s=arc-20160816; b=JU+UhAtylJAfaT+5g+SV8WLgdaSJboLuRSxP2Rr2EK/jTLQkL6A2R/fz4AJUojnRnd ofXE1hSsJZugnnUoCCnpko1X6dbs4+QU/BwrQq5ONtq9EDquzCeA/jM6WyTRmIPoGlNt cgGbvzP8RTtUfLtMX4mSoBbeVWA6+JxLc3vuC3LCs/TAP0UlAG9BEP/AQ1LWFoZF/NOi Z7VsfCcONnz4i497EpFw2hDCpgcDzjpyiWRhTAIrwEVbqFUBuKPg47LI6vX85qWTWD4F dwt74Lrd62/vn6AhfXtU5pYEOa97Im+8uiYXzouionjhEUZ3BFXw2Fba6WtV5NK3w29P 8ASg== 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=ICSwERr6aitduG0cxGRgGViUW1EGjc5egu+RTP2++Q8=; b=i+n5rSbOPcabdMD71fCImNa6pn6GlkwnnqTpkADVqbiszh6SER/wUvdlIwIR1umKmW hJiGiEPhEGNzNacC8DLbNI39NBZfFeqsYoQudrr3IH44sBM/5u+czrwuxqcfrgCbxPw2 3QGgIQPj6Iqp+bu/n7xdzqSnrvsQkM5WymKgIdg47fsbitO6cIC5Ga5IVjNq3lgFyb/r mErfwZxRpzhf/XNRvN8oFkzTJiu7cV5gqSbXaQMYVKDDRbAhYch5d6tsXnfdp/ZOybAV er1GYxacJln8Ot+XEtqVQNjTWBzuHmvxO7QykxLPpYq+eRCPVrfXnjCdefFV7kkdYcea ghnQ== 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 z17-20020aa79591000000b00518cd6b88adsi12297405pfj.334.2022.06.27.02.17.09; Mon, 27 Jun 2022 02:17:23 -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 S233782AbiF0JK2 (ORCPT + 99 others); Mon, 27 Jun 2022 05:10:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233571AbiF0JK0 (ORCPT ); Mon, 27 Jun 2022 05:10:26 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6419F2667; Mon, 27 Jun 2022 02:10:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 310998106; Mon, 27 Jun 2022 09:05:11 +0000 (UTC) Date: Mon, 27 Jun 2022 12:10:20 +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 , Alexander Stein 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 * Saravana Kannan [220623 08:17]: > On Thu, Jun 23, 2022 at 12:01 AM Tony Lindgren wrote: > > > > * Saravana Kannan [220622 19:05]: > > > On Tue, Jun 21, 2022 at 9:59 PM Tony Lindgren wrote: > > > > 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(). > > > > > > Yes, I understand the issue. But driver_deferred_probe_check_state() > > > was deleted because fw_devlink=on should have short circuited the > > > probe attempt with an -EPROBE_DEFER before reaching the bus/driver > > > probe function and hitting this -ENOENT failure. That's why I was > > > asking the other questions. > > > > OK. So where is the -EPROBE_DEFER supposed to happen without > > driver_deferred_probe_check_state() then? > > device_links_check_suppliers() call inside really_probe() would short > circuit and return an -EPROBE_DEFER if the device links are created as > expected. OK > > Hmm so I'm not seeing any supplier for the top level ocp device in > > the booting case without your patches. I see the suppliers for the > > ocp child device instances only. > > Hmmm... this is strange (that the device link isn't there), but this > is what I suspected. Yup, maybe it's because of the supplier being a device in the child interconnect for the ocp. > Now we need to figure out why it's missing. There are only a few > things that could cause this and I don't see any of those. I already > checked to make sure the power domain in this instance had a proper > driver with a probe() function -- if it didn't, then that's one thing > that'd could have caused the missing device link. The device does seem > to have a proper driver, so looks like I can rule that out. > > Can you point me to the dts file that corresponds to the specific > board you are testing this one? I probably won't find anything, but I > want to rule out some of the possibilities. You can use the beaglebone black dts for example, that's arch/arm/boot/dts/am335x-boneblack.dts and uses am33xx.dtsi for ocp interconnect with simple-pm-bus. > All the device link creation logic is inside drivers/base/core.c. So > if you can look at the existing messages or add other stuff to figure > out why the device link isn't getting created, that'd be handy. In > either case, I'll continue staring at the DT and code to see what > might be happening here. In device_links_check_suppliers() I see these ocp suppliers: platform ocp: device_links_check_suppliers: 1024: supplier 44e00d00.prm: link->status: 0 link->flags: 000001c0 platform ocp: device_links_check_suppliers: 1024: supplier 44e01000.prm: link->status: 0 link->flags: 000001c0 platform ocp: device_links_check_suppliers: 1024: supplier 44e00c00.prm: link->status: 0 link->flags: 000001c0 platform ocp: device_links_check_suppliers: 1024: supplier 44e00e00.prm: link->status: 0 link->flags: 000001c0 platform ocp: device_links_check_suppliers: 1024: supplier 44e01100.prm: link->status: 0 link->flags: 000001c0 platform ocp: device_links_check_suppliers: 1024: supplier fixedregulator0: link->status: 1 link->flags: 000001c0 No -EPROBE_DEFER is returned in device_links_check_suppliers() for 44e00c00.prm supplier for beaglebone black for example, 0 gets returned. Regards, Tony