Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934911AbbEOUQ3 (ORCPT ); Fri, 15 May 2015 16:16:29 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:32871 "EHLO mail-wg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933913AbbEOUQ1 (ORCPT ); Fri, 15 May 2015 16:16:27 -0400 From: Pali =?utf-8?q?Roh=C3=A1r?= To: Arnd Bergmann Subject: Re: [PATCH 2/2] arm: boot: store ATAG structure into DT atags field Date: Fri, 15 May 2015 22:16:24 +0200 User-Agent: KMail/1.13.7 (Linux/3.13.0-53-generic; KDE/4.14.2; x86_64; ; ) Cc: linux-arm-kernel@lists.infradead.org, Rob Herring , Russell King , Will Deacon , Ivaylo Dimitrov , Sebastian Reichel , Pavel Machek , Tony Lindgren , Andreas =?utf-8?q?F=C3=A4rber?= , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org References: <1430902142-17035-1-git-send-email-pali.rohar@gmail.com> <1431719407-18230-3-git-send-email-pali.rohar@gmail.com> <3513646.XX80DTTJbc@wuerfel> In-Reply-To: <3513646.XX80DTTJbc@wuerfel> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3261462.guuoco1GP0"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201505152216.24622@pali> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1960 Lines: 60 --nextPart3261462.guuoco1GP0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Friday 15 May 2015 22:12:41 Arnd Bergmann wrote: > On Friday 15 May 2015 21:50:07 Pali Roh=C3=A1r wrote: > > } > > =20 > > } > >=20 > > + /* include the terminating ATAG_NONE */ > > + atag_size =3D (char *)atag - (char *)atag_list + > > sizeof(struct tag_header); + setprop(fdt, "/", "atags", > > atag_list, atag_size); > > + > >=20 > > if (memcount) { > > =20 > > setprop(fdt, "/memory", "reg", mem_reg_property, > > =20 > > 4 * memcount * memsize); >=20 > The property should probably have a DT binding, and be named > "linux,atags". >=20 > 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. >=20 > Arnd Maybe what would help: Is there a way to tell decompressor/kernel to not=20 touch atag memory and then after kernel/board-code starts it save copy=20 of atags? I think it is not possible right now, but correct me if I'm=20 wrong... =2D-=20 Pali Roh=C3=A1r pali.rohar@gmail.com --nextPart3261462.guuoco1GP0 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEABECAAYFAlVWVBgACgkQi/DJPQPkQ1KW9gCcCeDOPCvWkjlpc7h4iFth3YXG sxwAoIcKSK3b9yZEHjNpyLTF79mvihYG =zr54 -----END PGP SIGNATURE----- --nextPart3261462.guuoco1GP0-- -- 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/