From patchwork Thu Oct 22 01:47:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Jeffery X-Patchwork-Id: 11850111 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 14E51C56201 for ; Thu, 22 Oct 2020 01:49:58 +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 87D7B21D43 for ; Thu, 22 Oct 2020 01:49:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="csupMq3n"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=aj.id.au header.i=@aj.id.au header.b="FmwTa0NF"; dkim=temperror (0-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="CPFfekN+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 87D7B21D43 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=q0Dsp/Rac0CBSp0eRD/1ICivXaOAnbVq3bEuA30UieE=; b=csupMq3nfNIhgRcvY5I1Rq1jK xifbrMGSOr72fmQ77V3m+z01clxNbDpTPqQsjwwKWeVwE/MvQCMdIpq75CdJYTnmBmdTNC5JTHRs9 5d2Z8VBNQ6Yajl7tHb2yllo7aS57Cww30WRuQMivrw8N+MIdC7fnuwjzNs/hqXw7lBrMU8ELv4nq9 pH5G+ERwuLDDN9FxlfXTbolhhbJd2zM8N6+I0MJ/wiw/FesnnjFgme3zaDOixm+Zn4cTKknCqNz+4 0SBb5lwGzslztHMQXWVKbKSDJJMgB+Rh0CgHrDWbdilSTMXcNjaerBzSlL60lF8LyAsCaK9QQAQvE QPkX5F9jg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVPiM-0007Tv-EJ; Thu, 22 Oct 2020 01:48:27 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kVPi8-0007RS-Tt for linux-arm-kernel@lists.infradead.org; Thu, 22 Oct 2020 01:48:14 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BD2F55C0294; Wed, 21 Oct 2020 21:48:12 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 21 Oct 2020 21:48:12 -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=LeYg3ovVd+ANv CklcliZyb+l/2FOsOhdoIPAGLxaS+0=; b=FmwTa0NFUW8gpmahGFfIhNJxJL7GD MuxOJdTLH60IAfx/oy55yskb3tpipfSsj6ypKzpmgrNbLMRnI8gS4ko70KQONX6I Z+Py5Gnh7PshNXxXLu+kaR5BDzZWiMHFcqjDrRmOvLl422lDJVNbBYfBpBpP97Db fmXBpaAgouQnj79xD6vjrZJOQXi8rIvoFEgTwy+hh+Q9MOIDyz0I6DZZPe0cev3a edLWH6v2YgidIU+biAWYDY4shT6UMeYMWBQ2jPjDGdQMaz2jg2XAZFieCAjdEXOL 4P6J8ynCfvBWvNLxAFZi4yhoLZamdbcxWBZsd2LL27tzpqZkalV1HnOnQ== 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=LeYg3ovVd+ANvCklcliZyb+l/2FOsOhdoIPAGLxaS+0=; b=CPFfekN+ afoxsTw2ReZK8VXfhXywv35VOu+Lwo9mEuR33aLKjjHotU+l98Iq0JfFFpR98DT0 1NpsiPNHicP3/FbnlsvLCjL46AmYnNbeG+/yo6P7YfACcZoa7cYTd189e4U/PE8N TWvXzKtX3rSgaI7hSAJe1fBf14va63AmIkooDDBCcIXMMUNZV0JIaRI8UC52mAXq IKaQRkIT9fe64fbiR1Rj16fZZFexcuwnXrj42QZDSCczU/Au9E77DUPDS87cUTye 41bJbgbK0c/jNLxaJoZpGRgDO6Q17wBK+y0/X16ZD51IgwyFA2tfEqGriqUu7N1A sHq6THzL0ZQ3GA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrjeeigdegkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffojghfggfgsedtkeertd ertddtnecuhfhrohhmpeetnhgurhgvficulfgvfhhfvghrhicuoegrnhgurhgvfiesrghj rdhiugdrrghuqeenucggtffrrghtthgvrhhnpeejgfdvveehteekveeggeellefgleette ejffelffdvudduveeiffegteelvefhteenucfkphepuddukedrvddutddrjedrudektden ucevlhhushhtvghrufhiiigvpeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurh 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 9A0C23280060; Wed, 21 Oct 2020 21:48:10 -0400 (EDT) From: Andrew Jeffery To: joel@jms.id.au Subject: [PATCH v2 5/6] ARM: dts: rainier: Add reserved memory for ramoops Date: Thu, 22 Oct 2020 12:17:30 +1030 Message-Id: <20201022014731.2035438-6-andrew@aj.id.au> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201022014731.2035438-1-andrew@aj.id.au> References: <20201022014731.2035438-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-20201021_214813_026770_82F515CF X-CRM114-Status: GOOD ( 12.61 ) 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 16 dumps to be captured and read out. Set max-reason to KMSG_DUMP_EMERG to capture bad-path reboots. Signed-off-by: Andrew Jeffery Reviewed-by: Joel Stanley --- 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 802027a3c43c..8431cf1b32e6 100644 --- a/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts +++ b/arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts @@ -55,6 +55,15 @@ flash_memory: region@B8000000 { /* 48MB region from the end of flash to start of vga memory */ + ramoops@bc000000 { + compatible = "ramoops"; + reg = <0xbc000000 0x180000>; /* 16 * (3 * 0x8000) */ + record-size = <0x8000>; + console-size = <0x8000>; + pmsg-size = <0x8000>; + max-reason = <3>; /* KMSG_DUMP_EMERG */ + }; + /* VGA region is dictated by hardware strapping */ vga_memory: region@bf000000 { no-map;