Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp106033pxb; Tue, 2 Feb 2021 00:00:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmjZGVa+5hxV4QH0qo7J/YDGNyacda3GxXeGWIsqaPjihqVnvKC+KOAvZ4b91/eN8+lRrG X-Received: by 2002:a17:906:bce3:: with SMTP id op3mr21471436ejb.485.1612252816989; Tue, 02 Feb 2021 00:00:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612252816; cv=none; d=google.com; s=arc-20160816; b=zzGKQ1yU372XsaAXTOTNQTQVVneSR2ZEultzW6IxRbpHc8tV2i05pEXMZ8GE8hKKgC CZpMLEQJWihOIuLBHJUgb6T0iMtmbUHBsW9gi4C/ASm+J0eLU2PZAXvisD2lZqopISh1 l5O86WwrbaPT8w5AXr0rDUEiUwsbY7N3T6psIcIcS0Opu9YUwKNrOyIS/Zog8VVybrXO yl82v2/o+go9AkxHod+Yt+59JJy6CUp52fzIYagQZHgko0v7AvVCAwbJaD3QEjXaksub 20bsFNQmbuzu5z6P3e4VgW5M48Epqr8vZ+38mtNY/q4bgNl1OZAqN/DYBw3/TkNGd3Vj bRAA== 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; bh=y3W4ojETZRqcy6K2o7uqMnhqNcJkNWap/xwgIJK0V1g=; b=Mqvgv+WngKdmXAWoWynBAkF5y5TZBo7hwgBv7SWdV+qn2vHeMgiO2gxczVpCha49Pu 55EyeuQXMzv5Z7hn/pDHdI6SHQdwCahZq2vgWLp+N9JwGY0jBC3Xj6dv3nWfkmjMlS7Q FwTCtXoEiPTRuH2rfS8jXld2V18cTMRKmFc5UHC5BDglqHBfQih0f0EnlySTUFoo/P35 wMW8KD48FgnK0R+xgusYqXOwK+hsT6vPx5B2mccmhKtR8jGr4e4SHT4xECI3vDmMLtMm ZF2YTfpi/LkXBKBU9jGFt7XtiIV9s4IiF2EbV+c1gScuaa/JQeQpE0XPRew5ARin7+6V y/4g== 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 i3si13049906edj.120.2021.02.01.23.59.48; Tue, 02 Feb 2021 00:00:16 -0800 (PST) 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 S230377AbhBBHz5 (ORCPT + 99 others); Tue, 2 Feb 2021 02:55:57 -0500 Received: from mail-ot1-f43.google.com ([209.85.210.43]:34444 "EHLO mail-ot1-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229466AbhBBHzz (ORCPT ); Tue, 2 Feb 2021 02:55:55 -0500 Received: by mail-ot1-f43.google.com with SMTP id d5so3582843otc.1; Mon, 01 Feb 2021 23:55:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y3W4ojETZRqcy6K2o7uqMnhqNcJkNWap/xwgIJK0V1g=; b=AFBPH7EQiW0gQMhBfpEUQHXoYTuF3Nn5zXH7Yf+/kh/Q4s1gs42CxBpKM4FNyEJ/Xx GXTINXBeL+daZCvx8wk/FR3Vq4rcA170fOdLGj1kLi7rZ82J1uP28CeZMFmcXgGo2bab Too/ybd66oJ6/ZezyveJQykNKPLsX7sxaKitu5pksThns5tUgFoptKr5pWCNKmQHGjH+ JXA48QKFdm8GbV1rJ274cTZ0FULJjvDAK2kI7hDYt8ejqMHdnNlZ5BdtAmwtumfhVoZK b6KFN1H42DZfe4zgQxz19x+v+nFrKj3Yb5uogOo2DQuAopP+LwlPmIHRGIOjQvnbsjA1 p0Jg== X-Gm-Message-State: AOAM530XX4wr7mVarCyBuvvvrcQJiI5k0ICnVtX4bZVss//5/Dt46G6j z0yHsP15U8fROuvOd7rcLSX6nRbo+kcZ3xeh6hU= X-Received: by 2002:a9d:3604:: with SMTP id w4mr6009142otb.107.1612252514252; Mon, 01 Feb 2021 23:55:14 -0800 (PST) MIME-Version: 1.0 References: <20210130040344.2807439-1-saravanak@google.com> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 2 Feb 2021 08:55:02 +0100 Message-ID: Subject: Re: [PATCH v1 0/2] Make fw_devlink=on more forgiving To: Saravana Kannan Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Marek Szyprowski , Marc Zyngier , Tudor Ambarus , Linus Walleij , Bartosz Golaszewski , LKML , Android Kernel Team , Wolfram Sang , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Saravana, On Tue, Feb 2, 2021 at 4:01 AM Saravana Kannan wrote: > On Mon, Feb 1, 2021 at 2:40 AM Geert Uytterhoeven wrote: > > On Sat, Jan 30, 2021 at 5:09 AM Saravana Kannan wrote: > > > On Fri, Jan 29, 2021 at 8:03 PM Saravana Kannan wrote: > > > > This patch series solves two general issues with fw_devlink=on > > > > > > > > Patch 1/2 addresses the issue of firmware nodes that look like they'll > > > > have struct devices created for them, but will never actually have > > > > struct devices added for them. For example, DT nodes with a compatible > > > > property that don't have devices added for them. > > > > > > > > Patch 2/2 address (for static kernels) the issue of optional suppliers > > > > that'll never have a driver registered for them. So, if the device could > > > > have probed with fw_devlink=permissive with a static kernel, this patch > > > > should allow those devices to probe with a fw_devlink=on. This doesn't > > > > solve it for the case where modules are enabled because there's no way > > > > to tell if a driver will never be registered or it's just about to be > > > > registered. I have some other ideas for that, but it'll have to come > > > > later thinking about it a bit. > > > > > > > > These two patches might remove the need for several other patches that > > > > went in as fixes for commit e590474768f1 ("driver core: Set > > > > fw_devlink=on by default"), but I think all those fixes are good > > > > changes. So I think we should leave those in. > > > > > > > > Marek, Geert, > > > > > > > > Can you try this series on a static kernel with your OF_POPULATED > > > > changes reverted? I just want to make sure these patches can identify > > > > and fix those cases. > > > > > > > > Tudor, > > > > > > > > You should still make the clock driver fix (because it's a bug), but I > > > > think this series will fix your issue too (even without the clock driver > > > > fix). Can you please give this a shot? > > > > > > Marek, Geert, Tudor, > > > > > > Forgot to say that this will probably fix your issues only in a static > > > kernel. So please try this with a static kernel. If you can also try > > > and confirm that this does not fix the issue for a modular kernel, > > > that'd be good too. > > > > Thanks for your series! > > > > For the modular case, this series has no impact, as expected (i.e. fails > > to boot, no I/O devices probed). > > With modules disabled, both r8a7791/koelsch and r8a77951/salvator-xs > > seem to boot fine, except for one issue on koelsch: > > Thanks a lot for testing the series! > > Regarding the koelsch issue, do you not see it with your OF_POPULATED > fix for rcar-sysc driver? But only see if you revert it and use this > series? I've just rechecked, and with fw_devlink=on, and my OF_POPULATED fir for rcar-sysc, i2c-demux-pinctrl works, both with modules enabled and disabled. > > dmesg: > > > > +i2c-demux-pinctrl i2c-12: failed to setup demux-adapter 0 (-19) > > +i2c-demux-pinctrl i2c-13: failed to setup demux-adapter 0 (-19) > > +i2c-demux-pinctrl i2c-14: failed to setup demux-adapter 0 (-19) > > > > - #0: rsnd-dai.0-ak4642-hifi > > + No soundcards found. > > > > regulator_summary: > > > > -13-0050-vcc 0 0mA 0mV 0mV > > -13-0039-dvdd-3v 1 0mA 0mV 0mV > > -13-0039-bgvdd 1 0mA 0mV 0mV > > -13-0039-pvdd 1 0mA 0mV 0mV > > -13-0039-dvdd 1 0mA 0mV 0mV > > -13-0039-avdd 1 0mA 0mV 0mV > > > > pm_genpd_summary: > > > > -/devices/platform/soc/e6518000.i2c suspended 0 > > -/devices/platform/soc/e6530000.i2c suspended 0 > > -/devices/platform/soc/e6520000.i2c suspended 0 > > > > These are all symptoms of the same issue: i2c buses and devices are not > > probed, due to the use of the i2c demuxer. > > I guess the fw_devlink tracker doesn't consider "i2c-parent" links? > > No, it doesn't parse "i2c-parent". Ugh... looked at it. It's going to > be a problem to parse because it requires the parents to be disbled in > DT and then fixes them up during run time. fw_devlink can handle DT > overlay changing a specific node, but the problem is that the consumer > DT node doesn't get changed. So the i2c-parent will first be parsed, > fw_devlink will notice they are disabled, so it'll ignore them. Then > those nodes are enabled, but the i2c-parent isn't reparsed because the > consumer isn't updated. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds