Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4232851ybc; Fri, 15 Nov 2019 00:56:25 -0800 (PST) X-Google-Smtp-Source: APXvYqzrGL7QJUyH3PeSA+ik36Ryt5/CVEmXaMAS2FrMyyQdwrgbwnH84ylM0UUcy5StuMkbMSUD X-Received: by 2002:a17:906:4d93:: with SMTP id s19mr12423838eju.285.1573808185371; Fri, 15 Nov 2019 00:56:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573808185; cv=none; d=google.com; s=arc-20160816; b=HSIRYhuIAgUFhF92ajZKdmONQmcfHkoe6NrdOQkxnCaQOXvb1TW9RlZ7xljB6FvbvU zIf3e0BQG6gtShabSkam2DZV5rJ1i6ZizizYmHnLrYx+/ihpnFQvU9KP6XnHJRqKXipL 294UGub8blQHaoporWgGcaVYIErJRVhdMegScWKJ1tASEED839ZDWCDsQErPzNZlH6WJ 2+VjNKGS0fXfST0pEydLuZEzqhLLjPI5t8lknRAgMyBRaczX1IzTl3Vwl/ZvnS1zgBcC v9F0MttAy0CbIPVuI1tTRtAA685IgwF+Cp8p4exAAnNzA+6hMovksOchDQkZ/XQCdR0s 6u4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:cc:to :subject:dkim-signature; bh=HnZknD5jkMrmzi5pstYxNKUFF0k7wyMVnzUBd+7cq9A=; b=JQaZPMjMaevEfqXsM9rQPkui946pS6uKrlOqzhnly1ZDqN/uWkHLKpRrgbk1nKQZms DUgwXe629OyDepQHRpxwZdHItWm0WMYNAfTC874zVZ9rulgdgrt72ZsulMPPr5f3oBZN Ms5cZ5K5p4qakYhoKztOnrVSeFDUcqXKeRanIWQsEklE5gLDBMTEb+LhyViWECd2LO84 agQDpQOR67fbiE1jU8hW2apoaaF6KsRshPIAD7dFkEYueapNoARtvKCAPVEl3XCyoXS9 cN5Z2UoVJk2+v8ZD/KWU5peetQpu//eJKEzCAyS9IGWwUk5feZ0oAiRokSCWqZT9le3D kOnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=c7o7q7Wj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v29si5835186edc.436.2019.11.15.00.56.00; Fri, 15 Nov 2019 00:56:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=c7o7q7Wj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727109AbfKOIwc (ORCPT + 99 others); Fri, 15 Nov 2019 03:52:32 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:35492 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726717AbfKOIwb (ORCPT ); Fri, 15 Nov 2019 03:52:31 -0500 Received: by mail-wr1-f65.google.com with SMTP id s5so10060211wrw.2 for ; Fri, 15 Nov 2019 00:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=HnZknD5jkMrmzi5pstYxNKUFF0k7wyMVnzUBd+7cq9A=; b=c7o7q7Wj6qf4k4rKlziTDGfY3gzMYdhiKrRSvtwWgVT489nbZoLL77H5qfmImzggwK sJT9U0FUZZJSZO/q9v7nNZ0MFXGWvXz/F67aNNU++IeMDcOGkfBbn5RwI1k2TOU21u4J H6eA7a1X54EsaFjmYFiIeljq2f/rM2saFXBIiAVwm9mh2vh7oE4AmhBkWMDyyHTlx90e gOwm77d5IRumxWwIBk0zU6+ngLW9UX3ujoWIKpUnP6ecFUXp1WZzZaY6XvqO7VROSaCl SMmzfGj6+fGqE4bRNpucdCrC5AZrxvf2dzDBO1nGk58NhIXWrY2QIbcxcz6oecSmP5Xm EcpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=HnZknD5jkMrmzi5pstYxNKUFF0k7wyMVnzUBd+7cq9A=; b=bglNZFIJb59M7KSdSS6G/HT8BqktYJzj5Yk5wfcO4hk+9l+iuABAuStggizk2RQGgb BgTQpKTtcHNxAyUgx7zECJzFAgr1JvQyzFoL8zjMknH039ZjBeUbOOyN949WN4f+FG2m iVo+4gA1XFgOxu+82aHi9Js5Ncg+XZxzZsQGmG8QrDBtOXyK7yFl8qMr2Uh5iYhli0ic 2erLrDHoYsnf5kanEE01Y/EE+gwOOoWM8frbdzprho2Hj/36BQMMr09q8glWho7c2N25 yy7NnTwxyn4X6VTgkeQxiveSdGnzZ/vJ0GhrOvwAXHo7Tna2sug6NJ5Bbmmlyx0lHY+Y y7Nw== X-Gm-Message-State: APjAAAXlPnueaQj5IDzZ4amV1G1ZMBLZED0Fm5RM9Mdm9s1baBR8PQC3 xLXsyMhf3boynPcMs+nIoQCSag== X-Received: by 2002:a5d:490b:: with SMTP id x11mr13394819wrq.111.1573807947668; Fri, 15 Nov 2019 00:52:27 -0800 (PST) Received: from [10.1.3.173] (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id b3sm9700259wmh.17.2019.11.15.00.52.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Nov 2019 00:52:26 -0800 (PST) Subject: Re: Sense of soc bus? (was: [PATCH] base: soc: Export soc_device_to_device() helper) To: =?UTF-8?Q?Andreas_F=c3=a4rber?= , Greg Kroah-Hartman Cc: Geert Uytterhoeven , linux-realtek-soc@lists.infradead.org, Tony Lindgren , Linus Walleij , Bjorn Andersson , Thierry Reding , Lee Jones , Rob Herring , Kevin Hilman , "Rafael J. Wysocki" , Michal Simek , Jonathan Hunter , NXP Linux Team , =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= , boot-architecture@lists.linaro.org, Sascha Hauer , Fabio Estevam , "linux-tegra@vger.kernel.org" , linux-amlogic@lists.infradead.org, linux-omap@vger.kernel.org, Alexander Sverdlin , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Hartley Sweeten , Pengutronix Kernel Team , Shawn Guo References: <20191103013645.9856-3-afaerber@suse.de> <20191111045609.7026-1-afaerber@suse.de> <20191111052741.GB3176397@kroah.com> <586fa37c-6292-aca4-fa7c-73064858afaf@suse.de> <20191111064040.GA3502217@kroah.com> <20191112052347.GA1197504@kroah.com> <20191112072926.isjxfa4ci6akhx56@pengutronix.de> From: Neil Armstrong Openpgp: preference=signencrypt Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= mQENBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5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rnFXth5dQVQ7SkipmyFWZhFL8fQ9OiIoxWhM6rSg9+C1w+ n45eByMg2b8H3mmQmyWztdI95OxSREKwbaXVapCcZnv52JRjlc3DoiiHqTZML5x1Z7lQ1T3F 8o9sKrbFO1WQw1+Nc91+MU0MGN0jtfZ0Tvn/ouEZrSXCE4K3oDGtj3AdC764yZVq6CPigCgs 6Ex80k6QlzCdVP3RKsnPO2xQXXPgyJPJlpD8bHHHW7OLfoR9DaBNympfcbQJeekQrTvyoASw EOTPKE6CVWrcQIztUp0WFTdRGgMK0cZB3Xfe6sOp24PQTHAKGtjTHNP/THomkH24Fum9K3iM /4Wh4V2eqGEgpdeSp5K+LdaNyNgaqzMOtt4HYk86LYLSHfFXywdlbGrY9+TqiJ+ZVW4trmui NIJCOku8SYansq34QzYM0x3UFRwff+45zNBEVzctSnremg1mVgrzOfXU8rt+4N1b2MxorPF8 619aCwVP7U16qNSBaqiAJr4e5SNEnoAq18+1Gp8QsFG0ARY8xp+qaKBByWES7lRi3QbqAKZf yOHS6gmYo9gBmuAhc65/VtHMJtxwjpUeN4Bcs9HUpDMDVHdfeRa73wM+wY5potfQ5zkSp0Jp bxnv/cRBH6+c43stTffprd//4Hgz+nJcCgZKtCYIAPkUxABC85ID2CidzbraErVACmRoizhT KR2OiqSLW2x4xdmSiFNcIWkWJB6Qdri0Fzs2dHe8etD1HYaht1ZhZ810s7QOL7JwypO8dscN KTEkyoTGn6cWj0CX+PeP4xp8AR8ot4d0BhtUY34UPzjE1/xyrQFAdnLd0PP4wXxdIUuRs0+n WLY9Aou/vC1LAdlaGsoTVzJ2gX4fkKQIWhX0WVk41BSFeDKQ3RQ2pnuzwedLO94Bf6X0G48O VsbXrP9BZ6snXyHfebPnno/te5XRqZTL9aJOytB/1iUna+1MAwBxGFPvqeEUUyT+gx1l3Acl ZaTUOEkgIor5losDrePdPgE= Organization: Baylibre Message-ID: Date: Fri, 15 Nov 2019 09:52:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/2019 11:47, Andreas Färber wrote: > Am 12.11.19 um 08:29 schrieb Uwe Kleine-König: >> On Tue, Nov 12, 2019 at 06:23:47AM +0100, Greg Kroah-Hartman wrote: >>> On Mon, Nov 11, 2019 at 09:10:41PM +0100, Andreas Färber wrote: >>>> Am 11.11.19 um 07:40 schrieb Greg Kroah-Hartman: >>>>> On Mon, Nov 11, 2019 at 06:42:05AM +0100, Andreas Färber wrote: >>>>>> Am 11.11.19 um 06:27 schrieb Greg Kroah-Hartman: >>>>>>> On Mon, Nov 11, 2019 at 05:56:09AM +0100, Andreas Färber wrote: >>>>>>>> Use of soc_device_to_device() in driver modules causes a build failure. >>>>>>>> Given that the helper is nicely documented in include/linux/sys_soc.h, >>>>>>>> let's export it as GPL symbol. >>>>>>> >>>>>>> I thought we were fixing the soc drivers to not need this. What >>>>>>> happened to that effort? I thought I had patches in my tree (or >>>>>>> someone's tree) that did some of this work already, such that this >>>>>>> symbol isn't needed anymore. >>>>>> >>>>>> I do still see this function used in next-20191108 in drivers/soc/. >>>>>> >>>>>> I'll be happy to adjust my RFC driver if someone points me to how! >>>>> >>>>> Look at c31e73121f4c ("base: soc: Handle custom soc information sysfs >>>>> entries") for how you can just use the default attributes for the soc to >>>>> create the needed sysfs files, instead of having to do it "by hand" >>>>> which is racy and incorrect. >>>> >>>> Unrelated. >>>> >>>>>> Given the current struct layout, a type cast might work (but ugly). >>>>>> Or if we stay with my current RFC driver design, we could use the >>>>>> platform_device instead of the soc_device (which would clutter the >>>>>> screen more than "soc soc0:") or resort to pr_info() w/o device. >>>>> >>>>> Ick, no, don't cast blindly. What do you need the pointer for? Is this >>>>> for in-tree code? >>>> >>>> No, an RFC patchset: https://patchwork.kernel.org/cover/11224261/ >>>> >>>> As I indicated above, I used it for a dev_info(), which I can easily >>>> avoid by using pr_info() instead: >>>> >>>> diff --git a/drivers/soc/realtek/chip.c b/drivers/soc/realtek/chip.c >>>> index e5078c6731fd..f9380e831659 100644 >>>> --- a/drivers/soc/realtek/chip.c >>>> +++ b/drivers/soc/realtek/chip.c >>>> @@ -178,8 +178,7 @@ static int rtd_soc_probe(struct platform_device *pdev) >>>> >>>> platform_set_drvdata(pdev, soc_dev); >>>> >>>> - dev_info(soc_device_to_device(soc_dev), >>>> - "%s %s (0x%08x) rev %s (0x%08x) detected\n", >>>> + pr_info("%s %s (0x%08x) rev %s (0x%08x) detected\n", >>>> soc_dev_attr->family, soc_dev_attr->soc_id, chip_id, >>>> soc_dev_attr->revision, chip_rev); >>> >>> First off, the driver should not be spitting out noise for when all goes >>> well like this :) >> >> I didn't follow the discussion closely, but I think I want to object >> here a bit. While I agree that each driver emitting some stuff to the >> log buffer is hardly helpful, seeing the exact SoC details is indeed >> useful at times. With my Debian kernel team member hat on, I'd say >> keep this information. This way the SoC details make it into kernel bug >> reports without effort on our side. > > Seconded. For example, RTD1295 will support LSADC only from revision B00 > on (and it's not the first time I'm seeing such things in the industry). > So if a user complains, it will be helpful to see that information. > > Referencing your Amlogic review, with all due respect for its authors, > the common framework here just lets that information evaporate into the > deeps of sysfs. Hopefully we never had the case where needed to use the soc info in drivers, but now we have one and having such infrastructure already in-place will help. Renesas platforms makes a extensive usage of the soc info infrastructure to figure out plenty of HW parameters at runtime and lower their DT changes. Neil > People who know can check /sys/bus/soc/devices/soc0, but > ordinary users will at most upload dmesg output to a Bugzilla ticket. > > And it was precisely info-level boot output from the Amlogic GX driver > that made me aware of this common framework and inspired me to later > contribute such a driver elsewhere myself. That's not a bad effect. ;) > > So if anything, we should standardize that output and move it into > soc_device_register(): " [rev ] detected" > with suitable NULL checks? (what I did above for Realtek, minus hex) > > The info level seems correct to me - it allows people to use a different > log_level if they only care about warnings or errors on the console; > it's not debug info for that driver, except in my case the accompanying > hex numbers that I'd be happy to drop in favor of standardization. > > Another aspect here is that the overall amount of soc_device_register() > users is just an estimated one third above the analysis shared before. > In particular server platforms, be it arm64 or x86_64, that potentially > have more than one SoC integrated in a multi-socket configuration, don't > feed into this soc bus at all! Therefore my comment that > dev_info()-printed "soc soc0:" is kind of useless if there's only one > SoC on those boards. I'm not aware of any tool or a more common file > aggregating this information, certainly not /proc/cpuinfo and I'm not > aware of any special "lssoc" tool either. And if there's no ACPI/DMI > driver feeding support-relevant information into this framework to be > generally useful, I don't expect the big distros to spend time on > improving its usability. > > So if we move info output into base/soc.c, we could continue using > dev_info() with "soc"-grep'able prefix in the hopes that someday we'll > have more than one soc device on the bus and will need to distinguish; > otherwise yes, pr_info() would change the output format for Amlogic (and > so would a harmonization of the text), but does anyone really care in > practice? Tools shouldn't be relying on its output format, and humans > will understand equally either way. > > Finally, arch/arm seems unique in that it has the machine_desc mechanism > that allows individual SoCs to force creating their soc_device early and > using it as parent for further DT-created platform_devices. With arm64 > we've lost that ability, and nios2 is not using it either. > A bad side effect (with SUSE hat on) is that this parent design pattern > does not allow to build such drivers as modules, which means that distro > configs using arm's multi-platform, e.g., CONFIG_ARCH_MULTI_V7 will get > unnecessary code creep as new platforms get added over time (beyond the > basic clk, pinctrl, tty and maybe timer). > Even if it were possible to call into a driver module that early, using > it as parent would seem to imply that all the references by its children > would not allow to unload the module, which I'd consider a flawed design > for such an "optional" read-once driver. If we want the device hierarchy > to have a soc root then most DT based platforms will have a /soc DT node > anyway (although no device_type = "soc") that we probably could have a > device registered for in common code rather than each SoC platform > handling that differently? That might then make soc_register_device() > not the creator of the device (if pre-existent) but the supplier of data > to that core device, which should then allow to unload the data provider > with just the sysfs data disappearing until re-inserted (speeding up the > develop-and-test cycle on say not-so-resource-constrained platforms). > > On the other hand, one might argue that such information should just be > parsed by EBBR-conformant bootloaders and be passed to the kernel via > standard UEFI interfaces and DMI tables. But I'm not aware of Barebox > having implemented any of that yet, and even for U-Boot (e.g., Realtek > based consumer devices...) not everyone has the GPL sources or tools to > update their bootloader. So, having the kernel we control gather > information relevant to kernel developers does make some sense to me. > > Thoughts? > > Regards, > Andreas > > P.S. Sorry that a seemingly trivial one-line 0-day fix derailed into > this fundamental use case discussion. > > arch/arm/mach-ep93xx/core.c: soc_dev = soc_device_register(soc_dev_attr); > arch/arm/mach-imx/cpu.c: soc_dev = soc_device_register(soc_dev_attr); > arch/arm/mach-mvebu/mvebu-soc-id.c: soc_dev = > soc_device_register(soc_dev_attr); > arch/arm/mach-mxs/mach-mxs.c: soc_dev = soc_device_register(soc_dev_attr); > arch/arm/mach-omap2/id.c: soc_dev = soc_device_register(soc_dev_attr); > arch/arm/mach-tegra/tegra.c: struct device *parent = > tegra_soc_device_register(); > arch/arm/mach-zynq/common.c: soc_dev = soc_device_register(soc_dev_attr); > arch/nios2/platform/platform.c: soc_dev = > soc_device_register(soc_dev_attr); > drivers/soc/amlogic/meson-gx-socinfo.c: soc_dev = > soc_device_register(soc_dev_attr); > drivers/soc/amlogic/meson-mx-socinfo.c: soc_dev = > soc_device_register(soc_dev_attr); > drivers/soc/atmel/soc.c: soc_dev = soc_device_register(soc_dev_attr); > drivers/soc/bcm/brcmstb/common.c: soc_dev = > soc_device_register(soc_dev_attr); > drivers/soc/fsl/guts.c: soc_dev = soc_device_register(&soc_dev_attr); > drivers/soc/imx/soc-imx-scu.c: soc_dev = soc_device_register(soc_dev_attr); > drivers/soc/imx/soc-imx8.c: soc_dev = soc_device_register(soc_dev_attr); > drivers/soc/qcom/socinfo.c: qs->soc_dev = > soc_device_register(&qs->attr); > drivers/soc/realtek/chip.c: soc_dev = soc_device_register(soc_dev_attr); > drivers/soc/renesas/renesas-soc.c: soc_dev = > soc_device_register(soc_dev_attr); > drivers/soc/samsung/exynos-chipid.c: soc_dev = > soc_device_register(soc_dev_attr); > drivers/soc/tegra/fuse/fuse-tegra.c: dev = soc_device_register(attr); > drivers/soc/ux500/ux500-soc-id.c: soc_dev = > soc_device_register(soc_dev_attr); > drivers/soc/versatile/soc-integrator.c: soc_dev = > soc_device_register(soc_dev_attr); > drivers/soc/versatile/soc-realview.c: soc_dev = > soc_device_register(soc_dev_attr); >