From patchwork Wed Feb 1 10:24:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 9550529 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1329D60425 for ; Wed, 1 Feb 2017 18:24:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0064428433 for ; Wed, 1 Feb 2017 18:24:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E644E2845B; Wed, 1 Feb 2017 18:24:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=2.0 tests=BAYES_00, DATE_IN_PAST_06_12, DKIM_SIGNED, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7FC6728433 for ; Wed, 1 Feb 2017 18:24:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cYza8-0004q3-IY; Wed, 01 Feb 2017 18:24:36 +0000 Received: from mail-pf0-f180.google.com ([209.85.192.180]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cYza4-0004aw-NT for linux-arm-kernel@lists.infradead.org; Wed, 01 Feb 2017 18:24:34 +0000 Received: by mail-pf0-f180.google.com with SMTP id 189so120385170pfu.3 for ; Wed, 01 Feb 2017 10:24:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=uFyKSEKVUZfBwgRWzrbIek8JNe2vgUTQW5c8H0XPpbw=; b=Vm8hfp+etCNkxTKP+deTmQ/lBLIlz9yIjUB2huiKysBn8Kk8KDK0zqNZ7XhFHw+U4E CtR8YCbUhMvSLPkP5ANELpWMfJD4w+LMRqIAa969w5Ajesf+/LlAaLGXRPJRFGHxWBVL 091nNix2Z3nx20CDyHDfO0kOusCqEHEtyB0ws= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uFyKSEKVUZfBwgRWzrbIek8JNe2vgUTQW5c8H0XPpbw=; b=Kg6IQyhXf/8xdgkyi4TjXJzO4++VNQBxFHTkSgK+F8vD/bqQvVK6CLcFoaaEx8tPM4 w7+bpdYsrdMlBSCBgOUBcdRXC9c45f0Rv7pZGjWBQlbvQocFdd8Kvjk66LfM6KcNsPRn 90QZcoZR/RKkY451lPF4XhQEuhHKp3auqm9HVdTl2kh/jJLG1UA7uKntrSpbSjNJziV4 j0BnvIMloWDemO2T2vGXJzmqG9JbsHbXlfuIDWoKDpEszANE+614WXBiS/Oac8zIqbXd EyobF7KLhBHuZ8oFWQqvmJvgjre6FDF5yeF10eDNv7tQ9ujVaYMuegdBfU65mKgxK1HZ Y57Q== X-Gm-Message-State: AIkVDXIcKxGEKCoAC9RXMfDjg3nr6fH72+gF+lQY7t1geJXuVk+pVyd3n78mqL1WL4nX/Dfb X-Received: by 10.99.181.7 with SMTP id y7mr5300482pge.57.1485973391461; Wed, 01 Feb 2017 10:23:11 -0800 (PST) Received: from localhost.localdomain (ip68-111-223-48.sd.sd.cox.net. [68.111.223.48]) by smtp.gmail.com with ESMTPSA id l25sm51425057pfb.24.2017.02.01.10.23.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 10:23:10 -0800 (PST) From: Bjorn Andersson To: Andy Gross , David Brown Subject: [PATCH] arm64: dts: apq8016-sbc: Add ramoops Date: Wed, 1 Feb 2017 02:24:24 -0800 Message-Id: <20170201102424.4017-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170201_102432_802505_59957EB6 X-CRM114-Status: GOOD ( 10.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mart Raudsepp , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Stephen Boyd , linux-kernel@vger.kernel.org, John Stultz , linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Declare a ramoops memory segment to aid debugging for those without UART access. Verified to carry console log when holding volume down for 15 seconds. I was unable to find any ramoops-like memory region used in the 8916 downstream kernels, so the picked region is the last MB in System RAM. No memory region for ramoops-like support was found downstrea, so the arbitrarily picked region is the last MB of System RAM. Cc: John Stultz Cc: Mart Raudsepp Cc: Stephen Boyd Signed-off-by: Bjorn Andersson Acked-by: Stephen Boyd --- Enable CONFIG_PSTORE, CONFIG_PSTORE_CONSOLE and CONFIG_PSTORE_RAM. arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi index a45bc1dba686..f93edf57f249 100644 --- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi @@ -35,6 +35,17 @@ stdout-path = "serial0"; }; + reserved-memory { + ramoops@bff00000{ + compatible = "ramoops"; + reg = <0x0 0xbff00000 0x0 0x100000>; + + record-size = <0x20000>; + console-size = <0x20000>; + ftrace-size = <0x20000>; + }; + }; + soc { dma@7884000 { status = "okay";