From patchwork Fri Oct 16 04:35:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 11840849 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96783C433DF for ; Fri, 16 Oct 2020 04:37:57 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 001EF20720 for ; Fri, 16 Oct 2020 04:37:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="OYPGdrzU"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=aj.id.au header.i=@aj.id.au header.b="GeNCDmRc"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="RkGOo10a" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 001EF20720 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=aj.id.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=32B/eg8n2eOJxbf5ubIhPqe9YTuNfBCC0MldnureKq8=; b=OYPGdrzU2dRG2uahiXzhJd5qQ Ytu8YmMQe/dUcLJKaa4FgxlXqrrNgN+86zoN3qsAGMfYc8crXmjRJ92oZk/DdLTTAwvZ2YXSLhLoC ySZPmby3heihMSwO6acuo/wy6adjVfbriL3iMce9UneAK0OCpc+TT32775a0eCkuvECzblZCO3LK8 2aRhVFnpW5QCVYOnxndNOhureJXSnJxMY0eQJv3BMuf8t73mfwoInq4iz0y/pfQiQy0b6Z/OaIALT xZtLrjN3DG7mR0WqMlhvvduRJYEckgQd8w9CV0lKakd04Qrsqw11j7+MM3dGYfmMN6NkG06QJf93s H+4gq3FjQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kTHTc-0002Jt-1A; Fri, 16 Oct 2020 04:36:24 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kTHTW-0002Il-3Y for linux-arm-kernel@lists.infradead.org; Fri, 16 Oct 2020 04:36:20 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 2F111F7C; Fri, 16 Oct 2020 00:36:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 16 Oct 2020 00:36:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h=from :to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=q5CcFs0/EeK4z qujRNpYgO1/SVfarI39TTpxy4dUVj4=; b=GeNCDmRcFtRvHTY65800D84wSQ/tN C2K9tBarEU20jxdNxGU1YT0yfiboFqUc27KYfP8A/pI1oYHaumahz13cE6YYHVDt ud8CRg2KXLUVj1jvTJ2pWP4JHT5YSQQdVvskgsrqhTVqfo/rSfrv3y3bY/4QnN+c I6Vlq2ow4RDKhwJgClhb6/uUiaqEb/27DYLEYnfzHHsnnvYLYHmylWqug8L6CdpG wHW/XxCGXeFbOF9zJEtMAgMCt54519hAl2EO5VNnbIgsnXulzkw5FH4f/hUrHDhK 5gKDsJXt7KXy7nmfh5xvxKPWoed3ar9zOiAPVHptq630IouwyoQ19FOGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=q5CcFs0/EeK4zqujRNpYgO1/SVfarI39TTpxy4dUVj4=; b=RkGOo10a prlpQDsEtITzU28aulICJabebvl+tRkD++XKcU33Y4tYPldLrRXAWHV0aB5i1HL4 Bx3E3qMIpNBc44eGvWZWGFubprdNJ+63ip22ZD47io9TR3PFSFbll0Nr4oycDJUH D7zYoXqocv8cvWfOg5kMpWHiivhrQaTwaodT4C+QR3RIxoUHGdJlOO8D1t8FXOjM IUiVVMqRz/HyxdCzDgXSoY/OQ4McPCYb2uZp1penNwA0aI/yynhi1GG90yPHuJWk hmDuJdQ+41cbuWF+dvkx+hdENXXfQe51FfU1GIEq6Ey100tzJKfWfYkiSCa8SnUV Ehn0jV9XF9zAlQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrieeggdekiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetnhgurhgvficulfgvfhhfvghrhicuoegrnhgurhgvfiesrghj rdhiugdrrghuqeenucggtffrrghtthgvrhhnpeejgfdvveehteekveeggeellefgleette ejffelffdvudduveeiffegteelvefhteenucfkphepuddukedrvddutddrjedrudektden ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurh gvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: from localhost.localdomain (ppp118-210-7-180.adl-adc-lon-bras31.tpg.internode.on.net [118.210.7.180]) by mail.messagingengine.com (Postfix) with ESMTPA id 46D0B328005D; Fri, 16 Oct 2020 00:36:11 -0400 (EDT) From: Andrew Jeffery To: joel@jms.id.au Subject: [PATCH 1/2] ARM: dts: rainier: Add reserved memory for ramoops Date: Fri, 16 Oct 2020 15:05:12 +1030 Message-Id: <20201016043513.119841-2-andrew@aj.id.au> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201016043513.119841-1-andrew@aj.id.au> References: <20201016043513.119841-1-andrew@aj.id.au> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201016_003618_533534_72EAA341 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, robh+dt@kernel.org, linux-aspeed@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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-ibm-rainier.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts index 183e1a4dcc65..89729ee698c5 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts @@ -47,6 +47,15 @@ reserved-memory { #size-cells = <1>; ranges; + ramoops@b7e80000 { + compatible = "ramoops"; + reg = <0xb7e80000 0x180000>; + record-size = <0x4000>; + console-size = <0x4000>; + pmsg-size = <0x4000>; + max-reason = <3>; /* KMSG_DUMP_EMERG */ + }; + flash_memory: region@b8000000 { no-map; reg = <0xb8000000 0x04000000>; /* 64M */