Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1136775pxb; Thu, 21 Oct 2021 16:45:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0Gy+TEDQ+KKLxSvyvfqBSXuUGZHHiY2jvBMFGuoadHlamwMqME9WCPpzJPRVjwFwbismY X-Received: by 2002:a05:6402:5114:: with SMTP id m20mr11820543edd.256.1634859937630; Thu, 21 Oct 2021 16:45:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634859937; cv=none; d=google.com; s=arc-20160816; b=vAR1TAHB4YOkv4ZwA94bsFAK2HLZlasl4Y8BslgQAA9EHho7ifahVqJ33pawGMMxEw DMhcSiq+JN7UXA1tG5bY8H/6JiH3rMgiwPYlGaKd5UrHslWrtzGt35f+Zq+DNOgXIb4a gSOUEIx8k6zuvCKsCoymDDXcpWvLfS35gxhWruvQeW+bE7Y+1TLA4C8SjrOTT9N8HeLs Qz+9AueN+SprlrWUU0wAAMgA++JfYpGw4mab/UOkSafne/FgyiEG34eUXi6X/Kn9XpYW F53QVxT/rZGht3cQb5yDOesn0sjAXY2mn76Mz/C0OJ0mmjSmo4hUaNV5fIhyYbQBuxb0 GzJQ== 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=iItbf96vJqUXBAPNWl/S+u6NWGXbFnqP3nMjz13MqBo=; b=RobuxbJGk5P6NaMISqp46TDTk5bpj8G7mFngLSfwkEEo0oA6AGfj4nZcuoyut6lUNe ZC2ikKRqPMuW3QZGfYyZ7SkSWjJUVt1ZDVpitLaTrDEGioc+H3tzrVJUfLSrL6NFpLkR FxqBVWxdELF2n3d9rcTYpnXql9XCZcVdb7xLeKf5dstA3xnHtJ5hv4vIW7Y4lErl7Yn9 LJxBdR+3ECHatRk92obdFeoGdiA0YjJBGHTqBz9vr+dVvoxPpbHYaUrKsRIyna076ruD 48fPvvZ8rdfgQCCUQlI0ss09aYs01Y2Q1Tpke+3wef+Sq1qNIiEI8nhTY3XxBXhGdUYX DXkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=TFl4VR+n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h7si12597132edb.295.2021.10.21.16.45.14; Thu, 21 Oct 2021 16:45:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=TFl4VR+n; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231441AbhJUXp3 (ORCPT + 99 others); Thu, 21 Oct 2021 19:45:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbhJUXp2 (ORCPT ); Thu, 21 Oct 2021 19:45:28 -0400 Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F28C061764 for ; Thu, 21 Oct 2021 16:43:11 -0700 (PDT) Received: by mail-yb1-xb35.google.com with SMTP id o17so3031506ybq.4 for ; Thu, 21 Oct 2021 16:43:11 -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=iItbf96vJqUXBAPNWl/S+u6NWGXbFnqP3nMjz13MqBo=; b=TFl4VR+n/Tz2N//3hY0nsO9nfx6KQXwngK5dVh8zYiQrFuwtAtD1xgWfiNqrn4Shvw 1JUxPOVPbUcuwvhE1OI3HYqKqDLWxoQ1WSOGRdSJw1F8LhaxoEnmEA+oqoS/AmHvrH6z UNtKwsU9qRjI38BVq4xkPUsYU/9KeW+o0BzqdsD8AQjEsK8O3Q2ywuMzIV1hvf2knjMr V8uyr6rzS0w+sPLRG7eZhp3iBxqsIoVIi/FKzGhcpn9YgjJwPZbRNb3qsN7A3rgwBUnw cIaAwWRZZyQIjjsE4+HrK93XFrVxGV0Jog7RENlVKKDwUQGYLm7/Ii/LdwTFhq4eO2X6 H7zg== 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=iItbf96vJqUXBAPNWl/S+u6NWGXbFnqP3nMjz13MqBo=; b=u97jiLAjIzFX7mgZuTGOslEloDpkbqZii491AQZTfwsg4atx/ewyXr4y8mIiTRaUEM HMZha0wWAcwo7Fa/WfErMmx539MWaJZVg4LtDWiD89wAoWePG+GEd5Rt8tvW8qPo0F6p uA9J9PJ2LiRbZ+sQ4Q62XUrzxqmxnrVvUKIvbLO3yz6p66CGP0HdNDrSQPTdhWm8ndrj IO1BBR44+v4JaPzG3EuarfR9MzczYTHu08Xahq8tphZcXxLp8Mk972+aXwrDB7NIZOUi H37cYG+ivsUxFueJxuTvsuxM1xAQKrfw0l6VL1RztJF+Fdqa0Ii19yQJI6WKx3OMxQnK GEzQ== X-Gm-Message-State: AOAM5330b/XdSmi0QJzza7kG26zgKC1sPqpOLeI+0SgDWPvpo1ut4KhQ hzpgstWVNc2Q07oIRU8yA1v52C7rykfi/3ScFUFX2w== X-Received: by 2002:a25:c696:: with SMTP id k144mr8911382ybf.296.1634859790611; Thu, 21 Oct 2021 16:43:10 -0700 (PDT) MIME-Version: 1.0 References: <20210929000735.585237-1-saravanak@google.com> <20210929000735.585237-3-saravanak@google.com> In-Reply-To: From: Saravana Kannan Date: Thu, 21 Oct 2021 16:42:34 -0700 Message-ID: Subject: Re: [PATCH v4 2/2] drivers: bus: Delete CONFIG_SIMPLE_PM_BUS To: Amit Pundir Cc: Russell King , Neil Armstrong , Geert Uytterhoeven , Magnus Damm , Tony Lindgren , Catalin Marinas , Will Deacon , Damien Le Moal , Greg Kroah-Hartman , Ulf Hansson , Rob Herring , Android Kernel Team , linux-arm-kernel@lists.infradead.org, lkml , linux-oxnas@groups.io, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org, linux-riscv@lists.infradead.org, Dmitry Baryshkov , John Stultz Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 21, 2021 at 4:21 AM Amit Pundir wrote: > > Hi Saravana, > > This patch broke v5.15-rc6 on RB5 (sm8250 | qcom/qrb5165-rb5.dts). > I can't boot past this point https://www.irccloud.com/pastebin/raw/Nv6ZwHmW. Amit top posting? How did that happen? :) The fact you are seeing this issue is super strange though. The driver literally does nothing other than allowing some sync_state() callbacks to happen. I also grepped for the occurence of "simple-bus" in arch/arm64/boot/dts/qcom/ and the only instance for 8250 is for the soc node. The only thing I can think of is that without my patch some sync_state() callbacks weren't getting called and maybe it was masking some other issue. Can you try to boot with this log (see log patch below) and see if the device hangs right after a sync_state() callback? Also, looking at the different sync_state() implementations in upstream, I'm guessing one of the devices isn't voting for interconnect bandwidth when it should have. Another thing you could do is boot without the simple-bus changes and then look for all instances of "state_synced" in /sys/devices and then see if any of them has the value "0" after boot up is complete. -Saravana -- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -1099,6 +1099,7 @@ static void device_links_flush_sync_list(struct list_head *list, if (dev != dont_lock_dev) device_lock(dev); + dev_info(dev, "Calling sync_state()\n"); if (dev->bus->sync_state) dev->bus->sync_state(dev); else if (dev->driver && dev->driver->sync_state)