Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755318AbbK0VHQ (ORCPT ); Fri, 27 Nov 2015 16:07:16 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:64758 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755026AbbK0VHM (ORCPT ); Fri, 27 Nov 2015 16:07:12 -0500 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Russell King - ARM Linux , Pali =?ISO-8859-1?Q?Roh=E1r?= , "devicetree@vger.kernel.org" , Ivaylo Dimitrov , Laura Abbott , Tony Lindgren , Sebastian Reichel , Will Deacon , linux-kernel@vger.kernel.org, Rob Herring , Pavel Machek , Grant Likely , linux-omap@vger.kernel.org, Frank Rowand , Andreas =?ISO-8859-1?Q?F=E4rber?= Subject: Re: [PATCH 5/5] arm: boot: store ATAGs structure into DT "/chosen/linux,atags" entry Date: Fri, 27 Nov 2015 22:06:20 +0100 Message-ID: <11537945.4HX4Y84tjV@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20151127195148.GB30871@n2100.arm.linux.org.uk> References: <20150713131902.GH26485@atomide.com> <20151127132722.GA30871@n2100.arm.linux.org.uk> <20151127195148.GB30871@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:jndSzUGXXMy71u8T3KNf8uKuU+Vq6g1K9RZnaWdAYeG7dotz8oK V4Otieh1YE0QcohKbqP+LzxTwJ3kZXM/jA78GDX/NERZrLm2g+M1N2N/r6ZVe1wwy0LUtGo yIj6fSjNroZ+kvqC4vv3k+hRMjWOJ+KoiazE7GTOxs4zj+9fnZztm6GpxB7azEiyYZnPeyW c+E/Rorc2jv14MUtkdF9Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:GBNzHUoDlDE=:CeS4rGDu1/KrZrq6dH+Etn W2p5Pu9LxDEt8oj3Jqtnvqs7NQiKNl95KlntWwQIwtYkaJJAR58HzEuAvR2AWbolD26/3djp7 3Rj9ppiPFbDyRLDvK9HO6aWF+NdxIBWHbnm4Zj1fAeFXfuWwZAi1XznNcgKBysdsIVfXrOwMR CKSI52nUFr6cjEeXOaJ4Z35c0sKB3SorUAYxruLPTIO1IqX2gljgMYBYxnIf3YWqeTXdah+F3 DBYYI7v8M3UNI14ybS2ufyu7pViLhNn8e18JaK1WV9wiDm6sv+1Y451Z1JcAv0Ff7yy5BFX3Y ciTvnS1XpvqYbCaE4shLfkXnOPTO4S6RWvHrOrVizua80u1/sJqEdkaQ+s6AXrOUnfpV4t2EV LMjhFgbXw1309iW3T2tTE9A8G6hs2NPsWXu+s08e/5WMLJzNto+pPeLhSnsYbhAxMBz3Y6TD/ 5l/P6PuyucEO8I31mMSPLy0UOebicPCn2+HBw8mbJRwLmlfFwuKRFtP/TEtFgaaKb052AptqV wAZn7mjUAV7fK1Yizlm0UQZX3MZ4M3oc+E1Z+FopA6Lejp8qGENVDOKphnpMddp8PCCrPKgez RBMlQ/nPXOVpsj3onSmdA5qcdtJnC17RyS8/AgWd2XLChTSElKu1v3PWC73cw//oCd4JXrxCC IXL0O/LoFiMavnGbaST3Zs+7bwC1QuAG4nMAtCtdhg7s8VZR4Kr1AfiIfuq2JyWLduv/9tukF H5kpWsMa6MFQo2gK Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1930 Lines: 36 On Friday 27 November 2015 19:51:48 Russell King - ARM Linux wrote: > On Fri, Nov 27, 2015 at 01:27:23PM +0000, Russell King - ARM Linux wrote: > > It is possible to redirect any program to open any other file. You can > > do it via a LD preload, and intercepting the open(), and possibly the > > read() calls if you want to do something more fancy. The down-side is > > that you have to arrange for the preloaded object to be used by the > > linker, and the additional overhead it places on the intercepted > > functions. > > Another idea if people don't like the preload idea. > > We could create a zero-sized /proc/atags, and then use a bind mount in > userspace to bind some other file containing the required information > on top. That could even be the atag blob from /sys/firmware/whatever. > The N700 (or whatever platform needs it) could be responsible for > creating the zero-sized /proc/atags so that we don't have it everywhere. I don't mind creating the /proc/atags compatibility hack from the kernel for a DT based N700 kernel, as long as we limit it as much as we can to the machines that need it. Leaving a board file for the N700 in place that contains the procfs code (and not much more) seems reasonable here, as we are talking about a board specific hack and the whole point appears to be running unmodified user space. Regarding how to get the data into the kernel in the first place, my preferred choice would still be to have an intermediate bootloader such as pxa-impedance-matcher, but I won't complain if others are happy enough about putting it into the ATAGS compat code we already have, as long as it's limited to the boards we know need it. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/