Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3713364pxb; Mon, 1 Feb 2021 02:44:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJyYuKnCejqbNu6cdW0m19bzwPL/+I0TDCYl0bXq6Pg/odJ2aeVzvNVjTB6BbGD3OJjJceMB X-Received: by 2002:a17:906:1fda:: with SMTP id e26mr8902658ejt.195.1612176270646; Mon, 01 Feb 2021 02:44:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612176270; cv=none; d=google.com; s=arc-20160816; b=Fyixx5wBn/AwR7xFkHMqrjnRib+bQeyCpZ15F7Ar1CTqVL4dxUmaYq1jW1vx5yt0g9 IdX4R3ap7lOQ+DjehSt+ngabU/81lQ3WvTBgv/xeUrO4h8oGkDbi8FeoCrEgN7ep7Vi/ ++RHh13m9Z7v7MzRAQVZpgapbsdulvtZx5MMhHLzWNR0KLbpQLCtATaGUZWCPfVTEUmS wPo9pJB6tooV4gYNxSG26/f3oVU+tyXYBVDiIaJHZxPS1G39CTE12XRteDZYC+GwViKu aICEdhxstdYlcKsecBs86dZWL9l12LwRPF72fC+Ws/sc8Ij6wOUWztbXzHLgOpUiErtr /MFA== 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=PbFNPUDjF8u5uZWpIEHcWpaJI3RXUPiFu34mgVi86XY=; b=zaF9ABhYqLgj+01MF5s/isz+KWLNh3myFacPY26fQv2yNh+Ip7DQjT2BLNFgqAQ5KU s7K999fqtSQdAHthUt/xM26vGsjoxFs2woY/bpnft1+6Vm6s1tM7q2FH6apShAQf79bz Mu7ukx93zqh4bFwHQAryldOilxCgBrLXhUMT9XwsTZuOKVAHOZhsTXt6+2bm3S9ANsB/ YhVepWb5Aj9EGNZGnEUDnIBKYtwteVIuM5LW7WHIN0xyd5n9aMbqBYMvkzSo5VK7c/Ay QWAEtVv5FGOoRkBBXSvOpKX2iHhWipwPZAoiLmg3ekzrK/L9ccPUo6tADaFTo7rEI4++ wI6A== 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 y16si10555593eju.393.2021.02.01.02.44.06; Mon, 01 Feb 2021 02:44:30 -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 S233233AbhBAKnA (ORCPT + 99 others); Mon, 1 Feb 2021 05:43:00 -0500 Received: from mail-oi1-f177.google.com ([209.85.167.177]:36782 "EHLO mail-oi1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233338AbhBAKkm (ORCPT ); Mon, 1 Feb 2021 05:40:42 -0500 Received: by mail-oi1-f177.google.com with SMTP id d18so18314237oic.3; Mon, 01 Feb 2021 02:40:26 -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=PbFNPUDjF8u5uZWpIEHcWpaJI3RXUPiFu34mgVi86XY=; b=kR0WBOo5QS9f9TkTTR+rPrsBc4VdyoFrFpj8812H2ZYgAtEV7GbioPzxjtHy1YaL5u GPUq7oJEjxo/smdF5fRdOUne0xGmOp7hb20x5Ta/ph4KgtrxHnwSfLJb93egLupCQQ4X NaoPTFltaK5iYaKWFiKYBBj3T2h5wdD3w8aajNlyZ+Pc2LEtOkORbJ46pJjgHXFQZQZv DSfZNdHf7SJ+7egfSzcRUhiMPz5bXnYdCYTK1sR2wmTkEVkve5/z13EXNawsrG433Dl3 xSqsRCIa4Ybq8yR8cb6dLljn4Il/hbO85DkAH6lnj/5Sn6+IQO4r2BETbbpruQAnIalW ch3A== X-Gm-Message-State: AOAM532u7fjKKoQJ8eXCP0Kfh8OW7+qqKu94oD01eXZWdOR9ai0e/w8J bKqaIBbGW9yReew7GTd5VH2XO92mPVIW9EeFkf8= X-Received: by 2002:aca:4d8d:: with SMTP id a135mr10190512oib.153.1612176001101; Mon, 01 Feb 2021 02:40:01 -0800 (PST) MIME-Version: 1.0 References: <20210130040344.2807439-1-saravanak@google.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 1 Feb 2021 11:39:49 +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 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: 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? Note that I only tested this on R-Car Gen2 and Gen3. I did not test this on Renesas SH/R-Mobile or RZ/A SoCs. 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