Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3301780rwb; Mon, 15 Aug 2022 23:39:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR4X5t+qD93gyD/gc33UfZdYtel5LG5mZ0jaTRNytIecnmP7xLoel77qadxcZnw1DH8EMsMx X-Received: by 2002:a17:907:7254:b0:731:61c6:ecf9 with SMTP id ds20-20020a170907725400b0073161c6ecf9mr12511585ejc.101.1660631969836; Mon, 15 Aug 2022 23:39:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660631969; cv=none; d=google.com; s=arc-20160816; b=fH+wrSmFm/HRHWed1Y16iTi96ZW8AJn97R3JDvzS3sgPPdMJg9MhqHjA1o8BDAADdp TnIMDFT6/3peeAHSwb/im3WoeJSBqA5+fyZxnDtHZ8An6Xp1SuDPCUHrup7rh50L5I91 e9Zky0jR+DPK87KJGvzqMb8ATwFTz5JAn/hPaAb/HRxqS9VrN/X6KEhyWhyhwmArECrU BS/zrDkVnfe2z8L1k59KMqMzQOb0CiAJ9fb3Epd0rQq7TKqDDk+uc/9g6q8G5Xel4A2X LRTddsxeoVDAnDDsusz7LXdWv4Ep9oSGVPpzjxjhuDLI42ajtgsWZE5FdqusDETYWB4j a8ww== 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=fVxetOgUQ7E/da9h0YyyPZnmDSU85aoRWSOGJovfDo4=; b=RfHIKyGyLx68u0tbjSfjP14YJpZVA9njN17jAZU0QTYSrZ1CwMimBk8EeftHKvmdho 1yuzS52MzV0FenpbWGLzhEyxXhJ0hxlPx6zdGxRTotw1K78MjVQytfoZUG6NLABxG2xY +eIvOmp2cgEcYx05oZmi8fFDY/Zoqqeqi1DOg2UEdPllAQpqV9nImT2suiKULXwbMntg o7OeQCkxPzAoqdV/no8E/xzHikZ8jcPpVMLP/MRBwOP6sQ4SqZ3gPhV9mavCWxvdg6XD diKFB2Qoab4GVkZKy2WUFV3JFDjbc4w2drXw1qYeDdPj3BL+Cl6TUZKAICDSuSPy23Nq VPEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=KTUwHeoX; 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 h15-20020a05640250cf00b0043bee43477csi9544196edb.576.2022.08.15.23.39.02; Mon, 15 Aug 2022 23:39:29 -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=KTUwHeoX; 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 S229588AbiHPGFG (ORCPT + 99 others); Tue, 16 Aug 2022 02:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229652AbiHPGE0 (ORCPT ); Tue, 16 Aug 2022 02:04:26 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34DC479EDB for ; Mon, 15 Aug 2022 16:37:00 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-33387bf0c4aso5655277b3.11 for ; Mon, 15 Aug 2022 16:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=fVxetOgUQ7E/da9h0YyyPZnmDSU85aoRWSOGJovfDo4=; b=KTUwHeoXz1fmYUOVhvzKJVtvXyuG8JHUHX6QB6FOxUcDm+t/hWHwoYNXr85HrUdaEK tILQMJn5QrnwvIaiiGvh/gmofiK9boSEgGXMH8Td1nph3IGh7K9bPlvKvjyubLDSc0aS fgP5ZpT/qNqLdbxAcPOnXoC06oDNK7j8waNQN+CBuASLQjDxP44f8T2h1FoyDYuG2qG0 BpVB8cB/sRH0nhHBKOSHQriJwZq8WNgL2+bZYuBEh1Bbls5R4A/XDMEyrwthkWrfMF+H T+itPy2imckkoWZbnfArIsJ7JKc+W9DP9rqWida20tZuDHZyrdibJlDrRnzcRORJzbga q56w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=fVxetOgUQ7E/da9h0YyyPZnmDSU85aoRWSOGJovfDo4=; b=boiPk7zxaV3Rar3lMfrFWTWn9kp1nyXRnk2Xgq4UDUK44PA2BBwGqN4C3CUjrhoQLW qYXGfgfjnOx47hCO5ShwUMQ4X6WTMl2YO80nzuifKhz4IaWKmPZTCEV2/W6dWpdKZgcd FhWugqtIF1Le+9oiI3FRUK0V250h+DZxygsnIh+v+Tp43uzikfz6JgM5MMsPXRSISqzp +p7iNeVM5DH27pfFLoYB0d/vhHRmzChATsgB+gPt7AGMoO6iZxNaesVc8fvUMbUZyBlV cnXgx4JYpEB6ooREJOEmGOh/09XU0iPs69rWv6OYdV5kSTakKfel4IeRyvZL0rurwYCq MdtQ== X-Gm-Message-State: ACgBeo0ifvQ2jPFng3ZRU/KetbB+zPFeQp40vlZLhl4SsQm/u7NdaXeT UDssINMKoVYeYBj8BoogLFQczX+eYX/3UKWd9PZp9w== X-Received: by 2002:a81:d8a:0:b0:333:38da:2a44 with SMTP id 132-20020a810d8a000000b0033338da2a44mr1203503ywn.518.1660606619221; Mon, 15 Aug 2022 16:36:59 -0700 (PDT) MIME-Version: 1.0 References: <20220727185012.3255200-1-saravanak@google.com> In-Reply-To: From: Saravana Kannan Date: Mon, 15 Aug 2022 16:36:23 -0700 Message-ID: Subject: Re: [PATCH v1 0/3] Bring back driver_deferred_probe_check_state() for now To: Luca Weiss Cc: Tony Lindgren , Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , naresh.kamboju@linaro.org, kernel-team@android.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, netdev@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 Mon, Aug 15, 2022 at 9:57 AM Luca Weiss wrote: > > On Mon Aug 15, 2022 at 1:01 PM CEST, Tony Lindgren wrote: > > * Saravana Kannan [700101 02:00]: > > > More fixes/changes are needed before driver_deferred_probe_check_state() > > > can be deleted. So, bring it back for now. > > > > > > Greg, > > > > > > Can we get this into 5.19? If not, it might not be worth picking up this > > > series. I could just do the other/more fixes in time for 5.20. > > > > Yes please pick this as fixes for v6.0-rc series, it fixes booting for > > me. I've replied with fixes tags for the two patches that were causing > > regressions for me. > > > > Hi, > > for me Patch 1+3 fix display probe on Qualcomm SM6350 (although display > for this SoC isn't upstream yet, there are lots of other SoCs with very > similar setup). > > Probe for DPU silently fails, with CONFIG_DEBUG_DRIVER=y we get this: > > msm-mdss ae00000.mdss: __genpd_dev_pm_attach() failed to find PM domain: -2 > > While I'm not familiar with the specifics of fw_devlink, the dtsi has > power-domains = <&dispcc MDSS_GDSC> for this node but it doesn't pick > that up for some reason. > > We can also see that a bit later dispcc finally probes. Luca, Can you test with this series instead and see if it fixes this issue? https://lore.kernel.org/lkml/20220810060040.321697-1-saravanak@google.com/ You might also need to add this delta on top of the series if the series itself isn't sufficient. diff --git a/drivers/base/core.c b/drivers/base/core.c index 2f012e826986..866755d8ad95 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -2068,7 +2068,11 @@ static int fw_devlink_create_devlink(struct device *con, device_links_write_unlock(); } - sup_dev = get_dev_from_fwnode(sup_handle); + if (sup_handle->flags & FWNODE_FLAG_NOT_DEVICE) + sup_dev = fwnode_get_next_parent_dev(sup_handle); + else + sup_dev = get_dev_from_fwnode(sup_handle); + if (sup_dev) { /* * If it's one of those drivers that don't actually bind to -Saravana