Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5014978pxb; Mon, 15 Feb 2021 07:22:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwV+E01461u+4ebdKhcRuQA09CJ5ffCP9JqTY4nPuYaOgm9x0OFR9B6mon7mvWnHkauRFiZ X-Received: by 2002:a17:907:2622:: with SMTP id aq2mr9216999ejc.470.1613402573081; Mon, 15 Feb 2021 07:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613402573; cv=none; d=google.com; s=arc-20160816; b=1E7rIQ9qGtccYnbRPhw/h1PRoWUuAIpkAQIAMjMBVX8djEvXekccUA7sJefud2o2px o+pcovMDQ2u2JaD4E6mSiykOy8PtVZdd0cFncuYmnNN4OjcIGwZBSMN6tPq7UoYTFWud attCj65lSWKVv4Dy2T3teDXHE4k+JqrWx8WRKyv/m5ic0unHTazs9dTWSSZ6gZ8dX393 glwzWEPf2JY42kZI7VzI26Gjg8U6JnPGARDegn4Gyjvy9agxqtB8yXPO/djCyt56Mgn3 n+UMYqvTF0lVQgS80zmciT0z59apoifVJu9y1y0nPq2d8WHnrXwirsKmcAHSnpommU6y TQyw== 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=C2sgcKj98aThSkMnimZCE29PrKW4uLBphZONfs+K+xs=; b=D0HuWaW1mMF/8whA33JaGf1SvQAkQAduewP2E6+DezYidw3e2h7FqLfkpP3qrUXPBX DACwkyb2+0UzkGfOqBFkf87dxujxjB2RSMuBFSrVJeESNINMNa+TMmnq2wjek2p6QN+v +02p6El4uz7AnSbUuXm4rNKpBDHxHNjLLuLhYKxiYOmyzn511ib21HDYYxG95Wr4S+2s psiITOg8aRGajmEVCNIqsZyCWraXuZkp8kux8MUhqWGsFF12vxdtuWHlWjpYN4FP0zFB uM0ghmWotrHNgxoWUXXwF0Hz0D8IFjIle94+qOLmSbDqqYzfzKeB28t44e+RWWZAXJaJ JrYw== 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 a67si13532608edf.42.2021.02.15.07.22.29; Mon, 15 Feb 2021 07:22:53 -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 S230326AbhBOPVP (ORCPT + 99 others); Mon, 15 Feb 2021 10:21:15 -0500 Received: from mail-oi1-f170.google.com ([209.85.167.170]:33653 "EHLO mail-oi1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbhBOPRT (ORCPT ); Mon, 15 Feb 2021 10:17:19 -0500 Received: by mail-oi1-f170.google.com with SMTP id g84so8087251oib.0; Mon, 15 Feb 2021 07:17:03 -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=C2sgcKj98aThSkMnimZCE29PrKW4uLBphZONfs+K+xs=; b=GL8qVu/2QTBsfRdMoMIHvkUU4iUVXOha82kbYR9qN8Nf8b6gTPQhfUdHU0I1bwRlKF t20BYYJwqe7QKtWoVUg5zw6yQxCxaodAYL9nBasg5lcRE7iv/YqxWm6CFFTiqfMi3Uf/ ZvtLMfDYV5uFmYmvRZVSug5JXOwZTTeLzgGkWA7pOWNRaJf3BX8dxq6ZEO7VDRwimhTE i1TsszyPdRm7vAdOrYNR7SdlSX52bRePCYQ/G2DzLPIjxLJB0sQm6JqEKmZnvYt80aGz 0D57e8wDeSF+jOgJpDGx/sygdw8qf1edXmUNKVHJkeeL/WibEoVOvM3pUddlAE9eIyFg fd3Q== X-Gm-Message-State: AOAM5326NBA5QrFmJN1zf2V8wLD4mUAsN9Peu3tTwRM6txwul3Cqdn1o zxtKdnFNRt8qStDt33NUYzVGuUKMk7FiPBlhpUM= X-Received: by 2002:aca:744:: with SMTP id 65mr8563823oih.153.1613402198301; Mon, 15 Feb 2021 07:16:38 -0800 (PST) MIME-Version: 1.0 References: <20210205222644.2357303-1-saravanak@google.com> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 15 Feb 2021 16:16:27 +0100 Message-ID: Subject: Re: [PATCH v4 0/8] Make fw_devlink=on more forgiving To: Saravana Kannan Cc: Jonathan Corbet , Greg Kroah-Hartman , "Rafael J. Wysocki" , Kevin Hilman , Ulf Hansson , Len Brown , Len Brown , Pavel Machek , Michael Turquette , Stephen Boyd , Rob Herring , Frank Rowand , Marc Zyngier , Thomas Gleixner , "open list:DOCUMENTATION" , Linux Kernel Mailing List , Linux PM list , linux-clk , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , ACPI Devel Maling List , Marek Szyprowski , Android Kernel Team , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Saravana, On Fri, Feb 12, 2021 at 4:00 AM Saravana Kannan wrote: > On Thu, Feb 11, 2021 at 5:00 AM Geert Uytterhoeven wrote: > > 1. R-Car Gen2 (Koelsch), R-Car Gen3 (Salvator-X(S), Ebisu). > > > > - Commit 2dfc564bda4a31bc ("soc: renesas: rcar-sysc: Mark device > > node OF_POPULATED after init") is no longer needed (but already > > queued for v5.12 anyway) > > Rob doesn't like the proliferation of OF_POPULATED and we don't need > it anymore, so maybe work it out with him? It's a balance between some > wasted memory (struct device(s)) vs not proliferating OF_POPULATED. > > 2. SH/R-Mobile AG5 (kzm9g), APE6 (ape6evm), A1 (armadillo800-eva) > > > > - "PATCH] soc: renesas: rmobile-sysc: Set OF_POPULATED and absorb > > reset handling" is no longer needed > > https://lore.kernel.org/linux-arm-kernel/20210205133319.1921108-1-geert+renesas@glider.be/ > > Good to see more evidence that this series is fixing things at a more > generic level. I spoke too soon: if CONFIG_POWER_RESET_RMOBILE=n, booting fails again, as everything is waiting on the system controller, which never becomes available. Rcar-sysc doesn't suffer from this problem, cfr. above. Perhaps because the rmobile-sysc bindings use a hierarchical instead of a linear PM domain description, and thus consumers point to the children of the system controller node? Cfr. system-controller@e6180000 in arch/arm/boot/dts/r8a7740.dtsi. > > - On R-Mobile A1, I get a BUG and a memory leak: > > > > BUG: spinlock bad magic on CPU#0, swapper/1 > > lock: lcdc0_device+0x10c/0x308, .magic: 00000000, .owner: > > /-1, .owner_cpu: 0 > > CPU: 0 PID: 1 Comm: swapper Not tainted > > 5.11.0-rc5-armadillo-00032-gf0a85c26907e #266 > > Hardware name: Generic R8A7740 (Flattened Device Tree) > > [] (unwind_backtrace) from [] > > (show_stack+0x10/0x14) > > [] (show_stack) from [] > > (do_raw_spin_lock+0x20/0x94) > > [] (do_raw_spin_lock) from [] > > (dev_pm_get_subsys_data+0x30/0xa0) > > [] (dev_pm_get_subsys_data) from [] > > (genpd_add_device+0x34/0x1c0) > > [] (genpd_add_device) from [] > > (of_genpd_add_device+0x34/0x4c) > > [] (of_genpd_add_device) from [] > > (board_staging_register_device+0xf8/0x118) > > [] (board_staging_register_device) from This is indeed a pre-existing problem. of_genpd_add_device() is called before platform_device_register(), as it needs to attach the genpd before the device is probed. But the spinlock is only initialized when the device is registered. This was masked before due to an unrelated wait context check failure, which disabled any further spinlock checks, and exposed by fw_devlinks changing probe order. Patch sent. "[PATCH] staging: board: Fix uninitialized spinlock when attaching genpd" https://lore.kernel.org/r/20210215151405.2551143-1-geert+renesas@glider.be 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