Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4792805pxu; Wed, 21 Oct 2020 05:39:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwroj6wNA63i2NXFKxiONtRLFuVX3ftz7cru1COJ1FVuO/RXM9DQlUPj9apOMziQBeDg33F X-Received: by 2002:aa7:c915:: with SMTP id b21mr2873676edt.25.1603283995646; Wed, 21 Oct 2020 05:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603283995; cv=none; d=google.com; s=arc-20160816; b=xykWzuQuYxbhPCArTCYoNd4CPa2Xatg8ziebk8UIYo7IqreTlfugWj8JqzEEXJ2kHG N970f4EcSuO7xOvRNSOZZZmYhuty5bfdgFIeQl6TOVCMrwfBk6Te8HVY4WFpGpLJvmrB CMpvZns1wTS3qSXXutPN6Iypg6o4J16aZnjFoncQv7zOfeUnEpl/VHmId97KnPTFYw/H L8sMUmXzNHo3SDlbikQRWAx0yHuMmarW6uwA4+Eh7kWCJ87klX8PCVab2W8eMKYQnE2o 6YvVfANopjoMcRD5gU/oPEqiJa7fE7DqXUgTaY99ybZSExr+fbKW6HrI5DiIj1SET69G YJ1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=tIgDNnG5snpYSQp0kAt2AdCdiGSp2Gs1VIoKFmFsA5M=; b=nvGYCU2r+z8tcmni4y6NHiBMTGv1JFXRW+zQdF90GbaH1WtnAEOeqzl+pLtv8yPDNu WGqcCK/Bd3gLmF3H5iJtScDqGTVG7Nn9z9fT8+gLlLbQmMtaQRlMxkyuOynT4Z9Sec/m GlkqugN7Wx8lnvkCzBwSOd10gGEES/uvLDLzWfqWfbhdbNq0lsxb6rzhHHRtO2T+8NZ4 HbsiI+68I+tvZ7StNcRTDvSemt9JBF4DbIDVKZ0UQ9pIAeLSxCC1ExjfN+YKVQ1LkVwD 01a8CjuJBy+nGF/dr9enzxtko5czGlmmzBh5Gmb5HgfAd8neGVRtbH0de3x4MMSkew/C oSfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b="qkG/q41a"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ICBjoYSi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f20si1251344ejd.342.2020.10.21.05.39.33; Wed, 21 Oct 2020 05:39:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b="qkG/q41a"; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=ICBjoYSi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408408AbgJUFnV (ORCPT + 99 others); Wed, 21 Oct 2020 01:43:21 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:36201 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408381AbgJUFnV (ORCPT ); Wed, 21 Oct 2020 01:43:21 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id EDD745C0100; Wed, 21 Oct 2020 01:43:19 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Wed, 21 Oct 2020 01:43:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=tIgDNnG5snpYSQp0kAt2AdCdiGSp2Gs 1VIoKFmFsA5M=; b=qkG/q41a7iniJkupVewamRCA0NtPXMrcdZp9KfF4ht5qLoq s3t9ZrpD3kEWd4bkoe6Q9uBGfMRrsKzSq3+ejGpd9eTNnRcNWFaY+IGhACL9lvWD KfNiW9MPeLhmNx43+55CZ3co4UA8hrC7kOvpmWSunBuSUQJZPUGoaJuiG07DwLgN 7e4Q+NaqhlcvNC0ZqkG+2PIgO4xAgXgW3JFerpm4ndxEGUiLpAQyvptrz66EKNl5 9YsALU8Yh6zY3mJHe8WFw4p9wGADoOEhxs+3iXRBlDcArz9SNJc5N61uvprBnj/7 bpiGNwqMk5J4/mJ0xhK1G5dYwtlbxd43WypQ9Eg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=tIgDNn G5snpYSQp0kAt2AdCdiGSp2Gs1VIoKFmFsA5M=; b=ICBjoYSiqT3BZxu4o4XSSW ZF0Iagj1x4vRzInlR3N77HPKlqIvG6wnlnjNgDr+E/VE//hMzdl+hZkV0UBHhnMM LbE5FanF5PEcuScEHWW/+M7i6pW4qXXkki2l3tLZTDD6Ql7AamEFHgTIepMBJw8u GgJmO1Ns2ucOuJOTk3fM0dN9nOc42vX+qUQcaLn9Ff4S1ZXxyvnO4WWUDuIxeMqv pVg1d9EMbeDPQtclWk7rvBSJkLAnkYCZVoU+FboYqi8fcM9159e+RzVamQUDgTsW 4g34XM6ehpAyj5pgklHk8RQA9dvBn+xP/OalJgLqLIwoXTMqhRZ5eAa7K0iOhVhg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjeeggdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucggtffrrg htthgvrhhnpeehhfefkefgkeduveehffehieehudejfeejveejfedugfefuedtuedvhefh veeuffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id A58C9E011E; Wed, 21 Oct 2020 01:43:16 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-502-gfef6c88-fm-20201019.001-gfef6c888 Mime-Version: 1.0 Message-Id: <1a5c7370-164c-4a58-a08c-d81e4b6ce419@www.fastmail.com> In-Reply-To: References: <20201016043513.119841-1-andrew@aj.id.au> <20201016043513.119841-3-andrew@aj.id.au> Date: Wed, 21 Oct 2020 16:12:49 +1030 From: "Andrew Jeffery" To: "Joel Stanley" Cc: "Rob Herring" , devicetree , "Linux ARM" , linux-aspeed , "Linux Kernel Mailing List" Subject: Re: [PATCH 2/2] ARM: dts: tacoma: Add reserved memory for ramoops Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Oct 2020, at 15:35, Joel Stanley wrote: > On Fri, 16 Oct 2020 at 04:36, Andrew Jeffery wrote: > > > > Reserve a 1.5MiB region of memory to record kmsg dumps, console and > > userspace message state into 16kiB ring-buffer slots. The sizing allows > > for up to 32 dumps to be captured and read out. > > > > Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots. > > > > Signed-off-by: Andrew Jeffery > > --- > > arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts | 9 +++++++++ > > 1 file changed, 9 insertions(+) > > > > diff --git a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts > > index 46f2f538baba..4f7e9b490e1a 100644 > > --- a/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts > > +++ b/arch/arm/boot/dts/aspeed-bmc-opp-tacoma.dts > > @@ -26,6 +26,15 @@ reserved-memory { > > #size-cells = <1>; > > ranges; > > > > + ramoops@b9e80000 { > > + compatible = "ramoops"; > > + reg = <0xb9e80000 0x180000>; > > I take that r-b back. When booting, we see: > > [ 0.000000] region@ba000000 (0xb8000000--0xbc000000) overlaps with > ramoops@b9e80000 (0xb9e80000--0xba000000) > > Which appears to be a true statement. Yep: > > > + record-size = <0x4000>; > > + console-size = <0x4000>; > > + pmsg-size = <0x4000>; > > + max-reason = <3>; /* KMSG_DUMP_EMERG */ > > + }; > > + > > flash_memory: region@ba000000 { > > no-map; > > reg = <0xb8000000 0x4000000>; /* 64M */ Looks like I derived the ramoops address from the flash_memory node label, but that's mismatched with its reg value.