Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752171AbdFVGlt (ORCPT ); Thu, 22 Jun 2017 02:41:49 -0400 Received: from mout.gmx.net ([212.227.15.19]:58981 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751045AbdFVGls (ORCPT ); Thu, 22 Jun 2017 02:41:48 -0400 Subject: Re: [PATCH v1] ARM: dts: sun7i: provide ramoops region on BananaPi To: Maxime Ripard References: <1498065017-30556-1-git-send-email-linux@rempel-privat.de> <20170622061617.5guhcyxdthvmiq7j@flea.lan> Cc: Rob Herring , Mark Rutland , Russell King , Chen-Yu Tsai , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org From: Oleksij Rempel Message-ID: <48c81184-3713-31a8-03e8-f55ffaef639c@rempel-privat.de> Date: Thu, 22 Jun 2017 08:40:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20170622061617.5guhcyxdthvmiq7j@flea.lan> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Vk9fo16Qcoxfjrp9mLSuJre2Aem7GfaXl" X-Provags-ID: V03:K0:kfQ/e/07EbQmfL0pVb/YFfTsINO4eqxKXTcJWMPdAPCDWUYyBI1 nDdwbCEHLOaCpqBicHVZgPviBzXHnSRKITr0eEC3HBmxUpeygU10BHXNABLw0sddj4JiYu6 iJVUD6aB7b1lGa/4VhcLX4hPu/VaGNeU0V7AJ3gONBiglmdm7GE0K3EDjoI1NrGlm0S1A5K O5Lc7O3/jclfm0TWn07Ng== X-UI-Out-Filterresults: notjunk:1;V01:K0:gdguHpbIAnA=:LiBMCOw0b7Db88rMuDN+Rt ClSjIfzH93zHVI3pouQdz2WmnrC6j4op6VIzPmQ9SM2AvjFUnkDDlyoO1OZmOx/DvB38qlqo4 rnNnJzcSxru3vRSgMb2cWinFE5lfUNbs5qFshxyY/iiMrkh+vm+CyNjL5c7wQ/nreDmaLWZWK bLjEJhrgVVXO4SxD38hzcArynpxnqNTHTRbxlxGhfP1TQ5H6bCBs93qQb9Oj+25txqKy8RdNB uhnRLuxiJdWCHPfhziMjfgfpIy13+cV0Y1q0lmv/jpTYoLqcHib2ox3CmR6s4Vosi/u9M+//Q DYrjD5Cs8H8xmeNpemXw1DPv32UzFSmupKI9aOYsSt6iOp/5Zat8UtNvTbsetFv8wyHLAeLg0 gdjPNR/2wy/fKlgwr5ea8iGvvs9KxNLkqkP8paIJopswZ/U3tG3SMmSql/LJPY+rBxXX+OgRw MGawo8s7gSanu8og42h8iaC3UtaE7LKrVeixLdcSXd3/dctQjeoqxY+TJkt5m3JBWY5qktag8 POZgSb27XHbJ9crH13Wspb82BLVKs2GaoUAllT0kkOFeC90+403xm/t5p99G1QYQU7E0c6dds Pjv6xKMgR2dE8G3qPSNbqDUZHFJ+jbZrj39QmSPpwwoANSYzOVcJ3GSkH9EXJ2+1r6p8Vfve9 loGHhm6McIP2n/tR63uGTvg+ta8e638gfIvBMHy8i90GKmfaWwuoigi2V1d2O2rnJuRdCvI/f EYdImGUSTZVSdFclVdLPmQLoJ3qs1/k5/dUZTuIgIMRGROsMLwJBApMZZio= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4195 Lines: 116 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Vk9fo16Qcoxfjrp9mLSuJre2Aem7GfaXl Content-Type: multipart/mixed; boundary="RUM1U6ePKkIcEvxuOjrHGuuk3CKINcLFk"; protected-headers="v1" From: Oleksij Rempel To: Maxime Ripard Cc: Rob Herring , Mark Rutland , Russell King , Chen-Yu Tsai , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Message-ID: <48c81184-3713-31a8-03e8-f55ffaef639c@rempel-privat.de> Subject: Re: [PATCH v1] ARM: dts: sun7i: provide ramoops region on BananaPi References: <1498065017-30556-1-git-send-email-linux@rempel-privat.de> <20170622061617.5guhcyxdthvmiq7j@flea.lan> In-Reply-To: <20170622061617.5guhcyxdthvmiq7j@flea.lan> --RUM1U6ePKkIcEvxuOjrHGuuk3CKINcLFk Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 22.06.2017 um 08:16 schrieb Maxime Ripard: > Hi Oleksij, >=20 > On Wed, Jun 21, 2017 at 07:10:17PM +0200, Oleksij Rempel wrote: >> This should help provide useful debug information on remote >> targets without UART. >> >> Signed-off-by: Oleksij Rempel >> --- >> arch/arm/boot/dts/sun7i-a20-bananapi.dts | 16 ++++++++++++++++ >> 1 file changed, 16 insertions(+) >> >> diff --git a/arch/arm/boot/dts/sun7i-a20-bananapi.dts b/arch/arm/boot/= dts/sun7i-a20-bananapi.dts >> index ed2f35a..38923bf 100644 >> --- a/arch/arm/boot/dts/sun7i-a20-bananapi.dts >> +++ b/arch/arm/boot/dts/sun7i-a20-bananapi.dts >> @@ -63,6 +63,22 @@ >> stdout-path =3D "serial0:115200n8"; >> }; >> =20 >> + reserved-memory { >> + #address-cells =3D <1>; >> + #size-cells =3D <1>; >> + ranges; >> + >> + ramoops@7fb6a000 { >> + compatible =3D "ramoops"; >> + reg =3D <0x7fb6a000 0x100000>; >> + ecc-size =3D <16>; >> + record-size =3D <0x00020000>; >> + console-size =3D <0x00020000>; >> + ftrace-size =3D <0x00020000>; >> + pmsg-size =3D <0x00020000>; >> + }; >> + }; >> + >=20 > I'm a bit skeptical about this one. I can understand your concern. > First, there's nothing specific to the bananapi, It is specific to memory size, bootloader used for the board and in some cases security co processor. Any thing else I forgot? > but every one will> want to have different sizes here, or different par= ameters. I don't thing every one need different configurations. I assume current parameters are good enough for most users. But if users need some thing different they should be overwritten by kernel boot args. May be, DTS should provide some generic/ramoops area and let distributions decide how to use it? For example compile kernel with some defaults for ramoops. > Since using the kernel parameters is also an option, I'd rather > document how to do that with the parameters. Here are my arguments to do this in DTS: - some issues are hardly reproducible and it is good to catch it as soon as possible. So it should be enabled before first problem will happen. - my previous experience with pstore was a bit disappointing, it didn't worked on SMP system correctly. So the test coverage seems to be minimal. Probably because it is not enabled by default. - at least barebox can extract some postmortem information from not booting system. Bootloader and Kernel need to use same parameters, devicetree seems to be perfect here. - distributions should be able to use this per default as soon as this option is available. --=20 Regards, Oleksij --RUM1U6ePKkIcEvxuOjrHGuuk3CKINcLFk-- --Vk9fo16Qcoxfjrp9mLSuJre2Aem7GfaXl Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iF4EAREIAAYFAllLZnIACgkQHwImuRkmbWmTVQEAmfnVRopApw8bN8iklxtbhuWI xxH6xYaqWMPix0WeHbMA/0r9eV+imU+bxDxo5bQV8EJvCBA9iKpdf711wgOqMU5J =EQHj -----END PGP SIGNATURE----- --Vk9fo16Qcoxfjrp9mLSuJre2Aem7GfaXl--