Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp774213iol; Thu, 9 Jun 2022 13:47:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKTkmqwx0yoJ5rF+pobiq34HbUG0U8q7m1Kd1ra4qrEd8Um5NbrtGXeCO3q5jLL+Z/kwWR X-Received: by 2002:a17:906:ced1:b0:710:f654:87ef with SMTP id si17-20020a170906ced100b00710f65487efmr27079292ejb.194.1654807621399; Thu, 09 Jun 2022 13:47:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654807621; cv=none; d=google.com; s=arc-20160816; b=cfr9zmpipjjGSWVH4+UyBAW6NgUkXmTnJ16pZPxUj1APSc8pE6azuCAN66C0iUDUXr H2G3GfiaHep/rcdTEUKY3akoDVwcysgep21yZkU+0BvSF+ZH6qkoAysXtE9/4LvRrW8y N3Nz+DngzwNSVbr19XoP8M+H7CmRSz2LgNEOKqay2rNhJknGDybrYCbclPyepbEnyxsN kLuq13VKb+cjSv5b/zanNcJU8ps+OrjTUdbjeL3GK8sVUJcFe0maT72NoBZTZtvsP76O +pSmGoh9RkvUWVUZnSD33/OE0yR7vg1OE88o4quXQaJECiMAjC3NP6mhCMTV0VZDS7jg bjVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=HbcNyn+HuFJHLYrnJ6EuEvt+66n5lvubcLNAe9RjZOU=; b=JF5cr/15dloSihKrLBdJW514rU6GQzK51Fec661jgMUuGR6SzNmjWIVpfMedqrRu4S 9tlwgCZONhF5ppDPo9OR84U3kJWLgN7tuQARzM67SZ4e1DKw9KTY3uehyy4uIicYu6mu ElboB8+PrkBDvrljqu4LgpucNsJ+IXTO4TvyCC1gObpaF+Rm55QQirWDKVaT2ivFlS0B c6kBVY1toOy5/BdNcflJLdNe94UOC9YGRlnF8JRF/eQWn78LGRLe2YqRAQqI2FQG3wIJ yzb3wLoHkDpSJeqZaKZN10Dzsd4DkzdTlah3iLpi4zzdZfePZx1zusxXnUVZXd6Wxgc+ FHzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=AFugph41; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb2-20020a1709071c8200b0070d4f9de56bsi5559756ejc.254.2022.06.09.13.46.31; Thu, 09 Jun 2022 13:47:01 -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=@google.com header.s=20210112 header.b=AFugph41; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236347AbiFIT3x (ORCPT + 99 others); Thu, 9 Jun 2022 15:29:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232460AbiFIT3u (ORCPT ); Thu, 9 Jun 2022 15:29:50 -0400 Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAAF4232ADB for ; Thu, 9 Jun 2022 12:29:48 -0700 (PDT) Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-30ce6492a60so251854357b3.8 for ; Thu, 09 Jun 2022 12:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HbcNyn+HuFJHLYrnJ6EuEvt+66n5lvubcLNAe9RjZOU=; b=AFugph41ubSXHoryjcn9zN9/Y2cQG8LpkjnjP7KA/6gxAEo6tx7yw+owOJLQJ7GRdj AKgvhnyfINe6Fm+FiL9XL4L81yzjkr7NGdTeY4zz7GQp6mZQ6gytLnvPlH7WtcUin1GU yx1uwAh7bMyGuUJDZbETE6j2RxETbqyAMcxTWH1EfgrXJ06AbU8ZHlLM8itKzwxtatsY n3bCV01x/wF5UQbMprXgWXgMUnaYlBapVZbq25diSf9SnVGY8Pea0V2ZRfioG7ONZO2r VBRjo4a+bwVjXI+yKamT9typkG7zIM8JryiY8d8QmOmviHIjZI3x52miRKJ9ZEzfG5XI 483A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HbcNyn+HuFJHLYrnJ6EuEvt+66n5lvubcLNAe9RjZOU=; b=sYF0KFkqvAPk2o7YolfL6Gepadlld968lAJUfH1AOAvOYwIvKXkXGGEUDeBvyvjHwk yUi/xxSgi9LNT3YC4m3JYFLn3XEno6FNGosd4N0R74IRZjZk2cpKGSzGUcj/Y1JyjgGb MAe/BSWC3mNCL+yvma3oBG46Qwcxq2ITy8UHB1VK1z6nzEL3DUbn0jhVmGnJixQUqVLB JFR06XYfon8xsgwLq6aLyFN7o7GIeUIJNHj02LUFZQxp5W4nYrhEisXrsNJ1wcgo+Lzm UfzqdBhd8P9m+a5KG36SeNJR4Fy3QKRcV/BLQCX1jbF7I/Y7bDUGmqa9788TzD3zVju+ fAzA== X-Gm-Message-State: AOAM5336zfmqfp81cxOSU0mHcJpuOh3B+YElhojQKRyVaPpv4WZmOrDK T6j7uZkjkl6f1HdQItFDJ1uiUlZNthsBQ9ZSVUJ+Tw== X-Received: by 2002:a81:830f:0:b0:313:3918:5cf with SMTP id t15-20020a81830f000000b00313391805cfmr16723753ywf.126.1654802987678; Thu, 09 Jun 2022 12:29:47 -0700 (PDT) MIME-Version: 1.0 References: <20220601070707.3946847-1-saravanak@google.com> <20220601070707.3946847-2-saravanak@google.com> In-Reply-To: From: Saravana Kannan Date: Thu, 9 Jun 2022 12:29:11 -0700 Message-ID: Subject: Re: [PATCH v2 1/9] PM: domains: Delete usage of driver_deferred_probe_check_state() To: Ulf Hansson Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 Thu, Jun 9, 2022 at 4:45 AM Ulf Hansson wrote: > > On Wed, 1 Jun 2022 at 09:07, Saravana Kannan wrote: > > > > 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. > > With fw_devlink=on by default - does that mean that the parameter > can't be changed? > > Or perhaps the point is that we don't want to go back, but rather drop > the fw_devlink parameter altogether when moving forward? Good question. For now, keeping fw_devlink=off and fw_devlink=permissive as debugging options that I can ask people to try if some probe is getting blocked. Or maybe if some ultra low memory use case wants to avoid create device links, fwnode links, etc and can build everything in and have init/probe happen in the right order. But in the long run, I see a strong possibility for fw_devlink=off/permissive being removed. I'd still want to keep it for implementing =rpm where it'd also automatically enable PM runtime tracking, but I don't understand that well enough yet to do it by default. > > > > Signed-off-by: Saravana Kannan > > Just a minor nitpick below. Nevertheless, feel free to add: > > Reviewed-by: Ulf Hansson Thanks! > > > --- > > drivers/base/power/domain.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c > > index 739e52cd4aba..3e86772d5fac 100644 > > --- a/drivers/base/power/domain.c > > +++ b/drivers/base/power/domain.c > > @@ -2730,7 +2730,7 @@ static int __genpd_dev_pm_attach(struct device *dev, struct device *base_dev, > > mutex_unlock(&gpd_list_lock); > > dev_dbg(dev, "%s() failed to find PM domain: %ld\n", > > __func__, PTR_ERR(pd)); > > - return driver_deferred_probe_check_state(base_dev); > > Adding a brief comment about why -EPROBE_DEFER doesn't make sense > here, would be nice. Will do once all the reviews comeout/when I send v3. I'm thinking something like: /* fw_devlink will take care of retrying for missing suppliers */ -Saravana > > > + return -ENODEV; > > } > > > > dev_dbg(dev, "adding to PM domain %s\n", pd->name); > > -- > > 2.36.1.255.ge46751e96f-goog > > > > Kind regards > Uffe