Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp133182ybz; Tue, 21 Apr 2020 17:00:53 -0700 (PDT) X-Google-Smtp-Source: APiQypIodvDuHxcTTmSRYUgjh+UXhouDH2mSg9vUedBn73NHQzKqBdpzxqHcu+j2zs7tukiiNO3y X-Received: by 2002:aa7:d9d8:: with SMTP id v24mr4678155eds.27.1587513652981; Tue, 21 Apr 2020 17:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587513652; cv=none; d=google.com; s=arc-20160816; b=btLuTSZ9DXRo89tWXa0NgHH9SKJ8qGywOVgrR1Ey2rroYMWLPNsFJIr+oPTjupF3V2 keziANDNtIo1KOqfYaDCNo4GPd4L1LxJ9kBN/kb1NTgLy68HptAY3Zd300PN+gy0J0fc R6bg9P/N531As38Xdv6Xh6COJs+Qx9O9wUhdbh3bUVEivKeXh2Ord99bNIgBJEoXT+gY w+ye2TZdTh1lm2KF0uv72vA9ymbzVnszg0WXq77orEqTT0G25mNXqfurFrDyfkSKGpZH EoUwL7IQ1z3EVsu5tl4eE/YAB2W2ZxhJrpJRMUtj0Qe4uB9vkh4A7uQA2bB4m+THT3z6 zeFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Ccv6Ut3agLXkyHc/tT9cHB6Wljw46T7bSXmRZAa+qCE=; b=ZcA9ARcBMyEJ6snDva1FTGJnkU8u3zuKNeOH+q6zq4EdtyrDNhAY6iYs30pwJNflG4 5GtdlKtbeCKR9vHrzkqFOkKWujDUm5vwQsXZy05jCUm7kY9hkIBERDhzB5Mo12li6mJR qyxCn1EIcaXprQ5+bdQGK/+VVAbg4+3whfkpEEKOv7PzK5ydMO3EciJLsKVX9Is9VIc+ ihWgBeJli7+m7fwO92tp+zo0KdIkwWE3Nf7YXEsr+fijvq9HzK4mPsg2nohqjP/N5EiQ jdNGx3gGx2Lhnzin83f5njIWokHpae5J8jwKagcxxu0h5ll77MHh9z2uTaiDx+Kf9ECd fJAw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si2506359ejd.517.2020.04.21.17.00.28; Tue, 21 Apr 2020 17:00:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726228AbgDUX7a (ORCPT + 99 others); Tue, 21 Apr 2020 19:59:30 -0400 Received: from smtp1.de.adit-jv.com ([93.241.18.167]:54075 "EHLO smtp1.de.adit-jv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725850AbgDUX7a (ORCPT ); Tue, 21 Apr 2020 19:59:30 -0400 Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 71D5B3C0579; Wed, 22 Apr 2020 01:59:26 +0200 (CEST) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ii3F635pHRba; Wed, 22 Apr 2020 01:59:20 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 912D03C004C; Wed, 22 Apr 2020 01:59:20 +0200 (CEST) Received: from lxhi-065.adit-jv.com (10.72.94.4) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.487.0; Wed, 22 Apr 2020 01:59:20 +0200 Date: Wed, 22 Apr 2020 01:59:14 +0200 From: Eugeniu Rosca To: John Stultz CC: lkml , Rob Herring , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Pavel Machek , Len Brown , Todd Kjos , Saravana Kannan , Bjorn Andersson , Liam Girdwood , Mark Brown , Thierry Reding , Linus Walleij , Greg Kroah-Hartman , , , Eugeniu Rosca , Eugeniu Rosca Subject: Re: [PATCH v5 0/6] driver core: Improve and cleanup driver_deferred_probe_check_state() Message-ID: <20200421235836.GA8319@lxhi-065.adit-jv.com> References: <20200225050828.56458-1-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20200225050828.56458-1-john.stultz@linaro.org> X-Originating-IP: [10.72.94.4] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, Cc: linux-renesas-soc On Tue, Feb 25, 2020 at 05:08:22AM +0000, John Stultz wrote: > This series goal is to improve and cleanup the > driver_deferred_probe_check_state() code in the driver core. > > This series is useful for being able to support modules > dependencies which may be loaded by userland, far after > late_initcall is done. For instance, this series allows us to > successfully use various clk drivers as modules on the db845c > board. And without it, those drivers have to be statically built > in to work. > > Since I first sent out this patch, Saravana suggested an > alternative approach which also works for our needs, and is a > bit simpler: > https://lore.kernel.org/lkml/20200220055250.196456-1-saravanak@google.com/T/#u > > However, while that patch provides the functionality we need, > I still suspect the driver_deferred_probe_check_state() code > could benefit from the cleanup in this patch, as the existing > logic is somewhat muddy. > > New in v5: > * Reworked the driver_deferred_probe_check_state() logic as > suggested by Saravana to tie the initcall_done checking with > modules being enabled. > * Cleanup some comment wording as suggested by Rafael > * Try to slightly simplify the regulator logic as suggested by > Bjorn > > Thanks so much to Bjorn, Saravana and Rafael for their reviews > and suggestions! Additional review and feedback is always greatly > appreciated! Building a recent [0] kernel using vanilla arm64 defconfig and booting it on H3ULCB, I get buried into backtraces [1]. After reverting this series, up to and including its first commit, booting goes back to normal [2]. Any chance to get a fix or at least some hints where to dig into? [0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=18bf34080c4c3b ("Merge branch 'akpm' (patches from Andrew)") [1] https://gist.github.com/erosca/ac779c348dd272c448e162c406c48f4a [2] https://gist.github.com/erosca/5eea2bc5e82be651d405ba038d0ad036 -- Best regards, Eugeniu Rosca