Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3214668rwb; Mon, 15 Aug 2022 21:17:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR6quzV0BHIq4YsFGWAXXB09nYYewyGRN2VCyZhal7YeNsUPyOi5sAN+lmWuFDmRq1xeEIhd X-Received: by 2002:a17:907:3f12:b0:731:559c:b57b with SMTP id hq18-20020a1709073f1200b00731559cb57bmr12063176ejc.712.1660623454647; Mon, 15 Aug 2022 21:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660623454; cv=none; d=google.com; s=arc-20160816; b=bsjrnzRaovC4Pu/h3gBY45vxs485p0u8q8mvnVVXeAUxEYV1jIZQ2DU46hAXQYI3jQ XgSzc/UE9Kff/vkEOCeazr1FpzvIEa9WcC5jZkWXEfHmU4RdLYZNf6nqZgXGYLZxLm6P +Yru0TmV9WVEfpS56TDiRIx2yRuSHeChEJfRseMTFEhT7ELFknAy498bOL3DV6dL7RZm ZHvKtD19vxbbbw4aXuyDBxOuhs/+wpnGogkBHSnn/BEl+BTzdPDHw/+n5LZplGiSQ3x/ h6KffndAYn3SmNqTm06yIx8fZZlcUYOCZe2KkB9a0NiNOAZMmbrygYRHQomiqtWdq6sg S2Vw== 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=WKMPsfX2YY3EVd9RV9ksbRmKXR/EDca2WzQ8fdbr+uI=; b=YxmprbT6mOm20adHigS9V71eKvSN+jZNhSGZy84WV7cAG+65u6ehnZI8vcctK6f+g6 1XCKKYwK2z7al0sPxNSz9l5PbmXUFfk2P5KjZyzOASwJNJBVADKHuB2UhZRQN91R6gwB SzOS+wUc+vYh4SJsf7lRFmEn9bz0O70gG03L+LRXLxsqpm8W8IfXqot9Y99HAxjgCe7M QJMUg4iYWozkwvmUrsDpgJrKnSszcLwv40m6v0wuiaUPJxD9t7+JfTUXqw0Jbrg3l+/H 2HetR5qmtiC+sgyx7i6/B2nodfXqpNyIiiJfTzET4SLCc3IlwAmn2W1fEo/Q6GUpGuhw yoKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=YTcjl+UV; 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 ht22-20020a170907609600b0073101e55d9fsi8694353ejc.797.2022.08.15.21.17.06; Mon, 15 Aug 2022 21:17:34 -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=YTcjl+UV; 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 S229637AbiHPEMK (ORCPT + 99 others); Tue, 16 Aug 2022 00:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbiHPELk (ORCPT ); Tue, 16 Aug 2022 00:11:40 -0400 Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B952F192330 for ; Mon, 15 Aug 2022 17:43:56 -0700 (PDT) Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-32a17d3bba2so113404867b3.9 for ; Mon, 15 Aug 2022 17:43:56 -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=WKMPsfX2YY3EVd9RV9ksbRmKXR/EDca2WzQ8fdbr+uI=; b=YTcjl+UV4HsG12QrfaCzq/5R9TxJFIKVsOnSM30g08BZbVvNxx3wfPko9tQBz/wVsv XAkCs1qPuJ8zj3h0NcmMcMGAJCq/k2y/lYo7YHeiEiG0LdefAc5YcaN0dQxFgRpKvWTe C4M3Z2MPP8Y6V/zv3NI3OK+I23Y9T803dr7VKejNK0YVKaZ5OSxLOOyqb7iY6c6oNsXb 6eNkS97Y3rIuZn7cEtNsHSD//ttHPU2Kp9vYB26T9xbk8lUA3SO0sT/k3YPOu52n493B x0deTuRo3lsfjN1irJo2ogYGWobwlXWa2eYQJtn40hlynOCZFqoNiScMjHA2tnutJsE8 TVlw== 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=WKMPsfX2YY3EVd9RV9ksbRmKXR/EDca2WzQ8fdbr+uI=; b=ms9A0iRF+cup7ssEBIse6lumFQTyAuxaqi7upLaTBG85KNY48cSFsEa2u4/8Yefsxh IjIOCvD9pkqw02SmwPxUUfxVxCBLWPAXPLxPYwM/8H1QIodOvZGix+F9NE7JL/p6lBDD 7QBMkKUSxWauGmsUjxU/LfgQIRrL74OnIAlmnDYC/iKFOtw5ARPinlMIRaagR7HZUwUa F3cqB+G+7BCmg/hZ7b0ZRVAUK5s4tRn3iRieAqM2mHRcvK3ufaCfOL8zjZFc58JndULG uDKWegXkwadfsq1Rgb5Gk/LNh7V6YrRR1VBu7JPd0pVdx6bjYmQ6Z3z8Muwf01pPgJxu PYqg== X-Gm-Message-State: ACgBeo0RyZdt9gyO+N2D6O3jdq6s4QCm5iqB9R2VktfuZ0Tu09vxrG+N m7TJFgVNOAS6JXXMADJUe3rj2SnZYCAW1/TJypt2Lw== X-Received: by 2002:a25:6612:0:b0:670:7c81:3aa6 with SMTP id a18-20020a256612000000b006707c813aa6mr13902592ybc.530.1660610635743; Mon, 15 Aug 2022 17:43:55 -0700 (PDT) MIME-Version: 1.0 References: <20220815182307.GA4658@duo.ucw.cz> In-Reply-To: From: Saravana Kannan Date: Mon, 15 Aug 2022 17:43:19 -0700 Message-ID: Subject: Re: boot stuck at starting kernel, due to __genpd_dev_pm_attach? To: Colin Foster Cc: Pavel Machek , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Len Brown , Ulf Hansson , Kevin Hilman , "Rafael J. Wysocki" , Geert Uytterhoeven 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=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 On Mon, Aug 15, 2022 at 5:28 PM Colin Foster wrote: > > On Mon, Aug 15, 2022 at 08:23:07PM +0200, Pavel Machek wrote: > > Hi! > > > > > You might have already gotten this report, but I tried running v6.0-rc1 > > > on my BeagleBone Black and it gets stuck right after "Starting kernel > > > ..." from U-Boot. > > > > > > A bisect pointed me to commit 5a46079a9645 ("PM: domains: Delete usage > > > of driver_deferred_probe_check_state()"). > > > > > > I don't have much more detail than that, other than I'm using the > > > in-tree am335x-boneblack.dts device tree and I believe I had tested with > > > the multi-v7-defconfig for this verification. I'm happy to test anything > > > that might offer more information. > > > > Well, standart next step is reverting 5a46079a9645 on top of v6.0-rc1, > > and if it starts working, either you get fix in your inbox, or you ask > > Linus to revert :-). > > I was able to revert 5a46079a9645 and 9cbffc7a5956 and successfully boot > v6.0-rc1 on the Beaglebone Black. > > I still don't know whether the root cause is the patch, or perhaps an > invalid boneblack DTS. I'll try and dig to get more info about what > might be failing. But I do think anyone using a Beaglebone will have > this issue, and I also think I'm not the only using the BBB. > Hi Colin, Thanks for the report. There have been other reports like this. This commit in question is probably the cause. I have two series going. One [1] is to revert these patches. Probably more suited for 5.19.xxx releases. The other [2] is to actually fix the issues you are seeing without reverting these patches (long term we do want to keep the patch that's causing the issue for you -- not going into the details here). Can you give this series[2] a shot and tell me if it fixes the issue? You might need to pull in this additional diff on top of [2] (I'll roll it into v2 of the series once I get some tests on this) 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 Thanks, Saravana [1] - https://lore.kernel.org/lkml/20220727185012.3255200-1-saravanak@google.com/ [2] - https://lore.kernel.org/lkml/20220810060040.321697-1-saravanak@google.com/