Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934855AbbEOUV6 (ORCPT ); Fri, 15 May 2015 16:21:58 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:61981 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934570AbbEOUV5 convert rfc822-to-8bit (ORCPT ); Fri, 15 May 2015 16:21:57 -0400 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: Pali =?ISO-8859-1?Q?Roh=E1r?= , Ivaylo Dimitrov , Russell King , Tony Lindgren , Sebastian Reichel , Will Deacon , linux-kernel@vger.kernel.org, Pavel Machek , linux-omap@vger.kernel.org, Andreas =?ISO-8859-1?Q?F=E4rber?= Subject: Re: [PATCH 2/2] arm: boot: store ATAG structure into DT atags field Date: Fri, 15 May 2015 22:21:13 +0200 Message-ID: <46811670.AspmkHD9JS@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <201505152216.24622@pali> References: <1430902142-17035-1-git-send-email-pali.rohar@gmail.com> <3513646.XX80DTTJbc@wuerfel> <201505152216.24622@pali> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" X-Provags-ID: V03:K0:3wJPfF9fCcgvLLnkI3ePZi9uwsr9eE8lnAKHv74wbkrHsHHQL47 kD6waPI5LZo7QAwyfSBDIQupcTKrrI+CyHh51WFcbXle9IvMcj8zXf4y5FlekH/FEGKE5e8 ZZ/oHOwxS5h0GRXhy7aOkJDYH99W15qiR0UuRthsoUyKX+EptuolE404wriJjiTAt2ANSsk Wb4WL8GqNF3Gxfz+j4Bdw== X-UI-Out-Filterresults: notjunk:1; Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1596 Lines: 44 On Friday 15 May 2015 22:16:24 Pali Roh?r wrote: > On Friday 15 May 2015 22:12:41 Arnd Bergmann wrote: > > On Friday 15 May 2015 21:50:07 Pali Roh?r wrote: > > > } > > > > > > } > > > > > > + /* include the terminating ATAG_NONE */ > > > + atag_size = (char *)atag - (char *)atag_list + > > > sizeof(struct tag_header); + setprop(fdt, "/", "atags", > > > atag_list, atag_size); > > > + > > > > > > if (memcount) { > > > > > > setprop(fdt, "/memory", "reg", mem_reg_property, > > > > > > 4 * memcount * memsize); > > > > The property should probably have a DT binding, and be named > > "linux,atags". > > > > It may also help to check if the "linux,atags" property already > > exists and not create it otherwise. That way we can put it into the > > n900 dts file and have it updated by the compat code, but not expose > > the atags on other platforms unless they opt in. > > > > Arnd > > Maybe what would help: Is there a way to tell decompressor/kernel to not > touch atag memory and then after kernel/board-code starts it save copy > of atags? I think it is not possible right now, but correct me if I'm > wrong... > I don't think that is possible without an incompatible change to the boot protocol. 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/