From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22B67EB64DD for ; Fri, 28 Jul 2023 20:26:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ByFOrHjU9Pz49trS6+iUJbWnKBO/Lw081VH44wsV2vI=; b=UqErACOHmZjNTE dEnceuZ+OP6vefNvEMwDu0fLkeueTboPWsDMa2bZyuBdrUNzhIX9I7MiwKrJZkkHUxG0BJGY92mNK ZfRabFnaQd+6EioA3r81wVUiep8GWu44aAqlARmV727cl/LviGzgvujpZiTagKOYnUrfguAUed2tj jIWC64r5ftKV0WrIL09i675/uBymj7e0te24F/8iCN/lhFdaZvmnQQffhIh2hZ0/HTdwIHdKALDG2 xLGoLNCdvPGGkV3Yx5RKF2n5Kl0khB9uO+LC7n/ZJ5QMw5hVEnwpPpxXYWcTU+cjmzcYMmJylliCy L7Wu2b2Y5lgNg+HYrosA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qPU1p-004xx3-2V; Fri, 28 Jul 2023 20:25:37 +0000 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qPU1m-004xwJ-21 for linux-arm-kernel@lists.infradead.org; Fri, 28 Jul 2023 20:25:36 +0000 Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4fe28e4671dso50749e87.0 for ; Fri, 28 Jul 2023 13:25:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690575932; x=1691180732; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=p5zFoHHbl1khNeaZtgyvQfmr2Eml2xUSE31w1MROj8s=; b=Mvp+uZ2ubAXR7fJy2rP/rjMADNJ8iWiCFTmuuQLAUa2cvN9t5ZQKVS/Kvjj5FbuH1o SkTTPk0FT2yY4AEEZC/R/ouurPlLpT4t/HOq1wUbB+6YMZeIVmPLZvSzpKxD+9K+flOJ frJbPrjnz4NZGqIpnaEB6JoNuvD7Upq0U2EM+kErzKEZA5C6Q9TgUv3ttDhDuBCLs01x roY2ooPQKOf58tF6n/XA8RqBQnFoF+e1brkbQOD3oCkbSibtAw7uF3jpgiGa20R5gQp5 VAw3pFMmOtHwl0yl1snJ1oktiNbEFjM9Umo9Fe4J14Bibt083/bxTLsPhvwIEixwsKvb sgCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690575932; x=1691180732; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=p5zFoHHbl1khNeaZtgyvQfmr2Eml2xUSE31w1MROj8s=; b=brJ4kpx/DnUaLLV5+/aPquTB2TCiw3YFdZQKIpDGdd6KX62mM/oEWC17XeqaVnJ2yl 932F/GryWZhpWE7F5jkhCfCnyJEzBEGbxhPTPuDjjBw/CllTdrtJr5cMJWg1beXalxdT vp6piLoMmCXUpSfe4/eIXMGbYRB3OBMLlRyXoulX49JNeuRjOODONIpkAiAXeyKzJBLR LBZcY+YZlOcnjtBSvmhjbF/r86JS4q3rGTyjAQn15NXm/1inrWO11eB9GdTjFZ9Kt598 QVowSLYNv+T35tdcZtmuL3xsghoXaTgrX/DyeIcOwHls93AFxFbADqQinQQwD32lM44T iggQ== X-Gm-Message-State: ABy/qLbp4YEaooyR7KAmOIeDMf7ea+aTG0HUW2r52gQVvPhJY0WskmCJ YxaajrQHq6aOv7e8L2zD3Zs= X-Google-Smtp-Source: APBJJlGT5wQqKEBo7g6Vlgk7jSYvRDN95uB5jwEuNX9pjmCrlHmNhjuVQwfT9dUq+K8snBX+L9df6g== X-Received: by 2002:ac2:4e8c:0:b0:4fe:993:2218 with SMTP id o12-20020ac24e8c000000b004fe09932218mr2420186lfr.31.1690575931619; Fri, 28 Jul 2023 13:25:31 -0700 (PDT) Received: from localhost ([2a05:3580:f312:6c00:826c:ae47:61a7:8af8]) by smtp.gmail.com with ESMTPSA id x17-20020ac24891000000b004fe1960dd7csm854139lfc.132.2023.07.28.13.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 13:25:30 -0700 (PDT) Date: Fri, 28 Jul 2023 23:25:30 +0300 From: Andrey Skvortsov To: Andre Przywara Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Jarrah Gosbell , Arnaud Ferraris Subject: Re: [PATCH] arm64: dts: pinephone: Add pstore support for PinePhone A64 Message-ID: Mail-Followup-To: Andrey Skvortsov , Andre Przywara , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Kees Cook , Tony Luck , "Guilherme G. Piccoli" , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, Jarrah Gosbell , Arnaud Ferraris References: <20230724213457.24593-1-andrej.skvortzov@gmail.com> <7f4a7739-cb03-bda8-df90-e8eb119b732b@arm.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7f4a7739-cb03-bda8-df90-e8eb119b732b@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230728_132534_692679_975B5E2F X-CRM114-Status: GOOD ( 22.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 23-07-27 15:57, Andre Przywara wrote: > Hi, > > On 24/07/2023 22:34, Andrey Skvortsov wrote: > > This patch reserves some memory in the DTS and sets up a > > pstore device tree node to enable pstore support. > > > > Signed-off-by: Andrey Skvortsov > > > > Gbp-Pq: Topic pinephone > > Gbp-Pq: Name 0161-arm64-dts-pinephone-Add-pstore-support-for-PinePhone.patch > > --- > > .../boot/dts/allwinner/sun50i-a64-pinephone.dtsi | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > index 87847116ab6d..84f9410b0b70 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pinephone.dtsi > > @@ -19,6 +19,22 @@ aliases { > > serial0 = &uart0; > > }; > > + reserved-memory { > > + #address-cells = <1>; > > + #size-cells = <1>; > > + ranges; > > + > > + pstore_mem: ramoops@61000000 { > > + compatible = "ramoops"; > > + reg = <0x61000000 0x100000>; > > So what's the significance of this address? That's 528MB into DRAM, so > somewhat in the middle of it, fragmenting the physical address space. > And is there any other firmware component that needs to know about this > address? Hi, Andre, there is nothing special about this address. Range from 0x40000000 - 0x50000000 is heavily used by u-boot for internal use and to load kernel, fdt, fdto, scripts, pxefile and ramdisk later in the boot process. Ramdisk start address is 0x4FF00000, Mobian initramfs for PinePhone for kernel with some hacking features and debug info enabled can take more than 100Mb and final address will be around 0x58000000. So I've picked address that will most likely not overlap with that. Probably it can be moved below 512Mb. If you have address suggestion, I'd happy to check it. -- Best regards, Andrey Skvortsov _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel