Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4387665pxb; Tue, 26 Jan 2021 21:56:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXvOyEF/p3v1wj1U7wizyMKg7wDt7TK7fF6+iaoXjr0kzPeY8rV+JpPAtvsB6FdZAMqy+d X-Received: by 2002:a17:907:2851:: with SMTP id el17mr5323909ejc.405.1611727016700; Tue, 26 Jan 2021 21:56:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611727016; cv=none; d=google.com; s=arc-20160816; b=gsM/3QOUo/UL/jWKDuluSj1xYUc0/ZsURBQbxpqeFkSlqPU82QYHQe/FWyzoZaMtlr AVo3qeh6gOAfsvq5T961uDb0JpQUeC/0LAKkkCK7LkTl3hkO1qMq5G5yXbU5N5+9VEyV 55lsAV+fRIHPiLjwmyLw/2L1pzFeGMswd+T01tmJ6JIE01mtRkHRyaWhrI33NVpnXhua 8gK6V0F/mjb2vM9cvPsAy2rF7uxYnPzuSGcmaiWAUSwVf8z904yIDV4AS5PLpLqmZ7dn 2gaHV/XvJKfyNLD9zJSw3fQUm46HZRZ/JJRZxRGXYIDBivN5YhMKMaCiem2j4lLE5vLP g4yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:subject:from:references:cc:to; bh=EhZ3wpMXQgcGnSZyG3diiiTRtT0IjI/YhvzWJv48/bI=; b=TU2/NG2HV2/4346x9phz8nO84/EjRXG2X4zwA0M+h4Sbv9SyMDo+qj1KDDXNIbf1Xb Jf1FTFHq8C41e/lEIL4R7xC3OnQqupGs+yPIyJ+I7wvWPazxbI/MTi6PhwCTLqWsmdPy 8AfBuIMTmvzgSp9eCMwpLGwkRAeevGUG4JUhCjT1w0olOnSSMZvJ9EcOXW9uP0xP6e3x RvJ41vP30QSUmmLQGyOwTz4UfSFYmLHe7KC9ZaUR5ntDBZ0V2oHAlf0absSe8wWTMwNV Qn7isX8mXjKM1B3v8UdqPcSz+By3Z5zkXE4NXGVYQNsnBhLQBcQb8ChCdSCZrrZJChKa 3eww== 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 s8si431832edd.534.2021.01.26.21.56.32; Tue, 26 Jan 2021 21:56:56 -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 S2391585AbhAZR0U (ORCPT + 99 others); Tue, 26 Jan 2021 12:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389555AbhAZHV6 (ORCPT ); Tue, 26 Jan 2021 02:21:58 -0500 X-Greylist: delayed 73382 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 25 Jan 2021 23:21:12 PST Received: from antares.kleine-koenig.org (antares.kleine-koenig.org [IPv6:2a01:4f8:c0c:3a97::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55F52C061573; Mon, 25 Jan 2021 23:21:12 -0800 (PST) Received: from antares.kleine-koenig.org (localhost [127.0.0.1]) by antares.kleine-koenig.org (Postfix) with ESMTP id 46AFDADE69D; Tue, 26 Jan 2021 08:21:09 +0100 (CET) Received: from antares.kleine-koenig.org ([94.130.110.236]) by antares.kleine-koenig.org (antares.kleine-koenig.org [94.130.110.236]) (amavisd-new, port 10024) with ESMTP id V7DnAz6ZVq0I; Tue, 26 Jan 2021 08:21:07 +0100 (CET) Received: from taurus.defre.kleine-koenig.org (unknown [IPv6:2a02:8071:b5ad:20fc:e287:a8e4:9290:29e6]) by antares.kleine-koenig.org (Postfix) with ESMTPSA; Tue, 26 Jan 2021 08:21:07 +0100 (CET) To: Masahiro Yamada Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arm-kernel , cyril@debamax.com, Arnd Bergmann , Maxime Ripard , DTML , Geert Uytterhoeven , Rob Herring References: <20210125105757.661240-1-uwe@kleine-koenig.org> From: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= Subject: Re: [PATCH] cmd_dtc: Enable generation of device tree symbols Message-ID: <9d9bb0f6-d4f4-b1b9-a4c4-786987578085@kleine-koenig.org> Date: Tue, 26 Jan 2021 08:20:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Md9uBspQZ8si26wbTEXGrXNDQsO6WS1FX" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Md9uBspQZ8si26wbTEXGrXNDQsO6WS1FX Content-Type: multipart/mixed; boundary="bIO7wac1lK89xpNlKc4oBcYpFRZsCPvJE"; protected-headers="v1" From: =?UTF-8?Q?Uwe_Kleine-K=c3=b6nig?= To: Masahiro Yamada Cc: Michal Marek , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arm-kernel , cyril@debamax.com, Arnd Bergmann , Maxime Ripard , DTML , Geert Uytterhoeven , Rob Herring Message-ID: <9d9bb0f6-d4f4-b1b9-a4c4-786987578085@kleine-koenig.org> Subject: Re: [PATCH] cmd_dtc: Enable generation of device tree symbols References: <20210125105757.661240-1-uwe@kleine-koenig.org> In-Reply-To: --bIO7wac1lK89xpNlKc4oBcYpFRZsCPvJE Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Hello Masahiro, On 1/25/21 10:53 PM, Masahiro Yamada wrote: > On Mon, Jan 25, 2021 at 8:07 PM Uwe Kleine-K=C3=B6nig wrote: >> >> Adding the -@ switch to dtc results in the binary devicetrees containi= ng >> a list of symbolic references and their paths. This is necessary to >> apply device tree overlays e.g. on Raspberry Pi as described on >> https://www.raspberrypi.org/documentation/configuration/device-tree.md= =2E >> >> Obviously the downside of this change is an increas of the size of the= >> generated dtbs, for an arm out-of-tree build (multi_v7_defconfig): >> >> $ du -s arch/arm/boot/dts* >> 101380 arch/arm/boot/dts-pre >> 114308 arch/arm/boot/dts-post >> >> so this is in average an increase of 12.8% in size. >> >> Signed-off-by: Uwe Kleine-K=C3=B6nig >=20 >=20 > (CCing DT ML.) makes sense, thanks. > https://www.spinics.net/lists/linux-kbuild/msg27904.html >=20 > See Rob's comment: >=20 > "We've already rejected doing that. Turning on '-@' can grow the dtb > size by a significant amount which could be problematic for some > boards." The patch was created after some conversation on irc which continued after I sent the patch. I added the participating parties to Cc:. The (relevant) followups were: Geert suggested to always generate the symbols and provide a way to strip the symbols for installation if and when they are not needed. Rob said: "I'm less concerned with the size increases, but rather that labels go from purely source syntax to an ABI. I'd rather see some decision as to which labels are enabled or not." And then I learned with hints from Rob and Geert that symbols are not really necessary for overlays, you just cannot use named labels. But using target-path =3D "/soc/i2c@23473245"; or target =3D <&{/soc/i2c@23473245}>; instead of target =3D <&i2c1>; works fine. (And if you need to add a phandle the &{/path/to/node} construct should work, too (but I didn't test).) Using labels is a tad=20 nicer, but the problem I wanted to address with my patch now has a known = different solution. Best regards Uwe --bIO7wac1lK89xpNlKc4oBcYpFRZsCPvJE-- --Md9uBspQZ8si26wbTEXGrXNDQsO6WS1FX Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmAPwtwACgkQwfwUeK3K 7AlKXwgAm+kcs8YKGPW7BkNgCAJ44hDVJaUMseUumkbzSu+J7mJb/cEZ0bG87K+J SzhQcJQ2LoASq0ZMg6dTn2PyqBDv63nnKmHiFVa+3z9J9EWPK+ZvZSyvoX0PLjiO /IoBG+Vaei0hav2poeDjBdSWybhP567KYiYPkrmlbUyt9Aq6fgaEqgOGnnaZbxII YOJ51Aec1JjAzlb8uD9dOYPmNKAFqlfONfBcr9abIACfc6FEKQytp/yvn6UvkHrL tdP1lubPpzJXFJp8Md4yCPRRUbTpB8b7qvLXIge0YVUeU641roNdDnX9TY818ffA qXrWfwyBKeMboKt30RTEfkHmEmIDew== =nA4F -----END PGP SIGNATURE----- --Md9uBspQZ8si26wbTEXGrXNDQsO6WS1FX--