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: 93081 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp2546254qgi; Wed, 1 Feb 2017 10:23:14 -0800 (PST) X-Received: by 10.99.50.132 with SMTP id y126mr5454107pgy.8.1485973394496; Wed, 01 Feb 2017 10:23:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s6si19785605pfg.191.2017.02.01.10.23.14; Wed, 01 Feb 2017 10:23:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753263AbdBASXN (ORCPT + 9 others); Wed, 1 Feb 2017 13:23:13 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:35299 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752835AbdBASXM (ORCPT ); Wed, 1 Feb 2017 13:23:12 -0500 Received: by mail-pf0-f179.google.com with SMTP id f144so120181659pfa.2 for ; Wed, 01 Feb 2017 10:23:11 -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=DFRs/yQSuYoeQh4I6oldWJC1U6igjhjHQrmCyg+NKurXkHz6HgWD05swDQQ5Uon9X2 fEH1xJHD2DDG86zNkiwBRy9YPZ0Y1WVDOuhFvYCQTIMOuh6w04zhqztirfKjBKPjZI3K bKBALHOFv+xBzxhuvtfK9cq1uL+vyiYbi9hiZc0N2cpYsBpU4xsMh0dU76tH3/AbAwF/ wMlRV9+jTQt9oO3REf8Zx67dDiOFORdioQeJjwnpB4wxMMqefC3k57uIyz0dZQSkkf3T ivakVVdns9gPoPdCRM5OTRnhB2d89q3h2n3Px/qOZUwkIbhbhskCppBjxCg8YRpg34N3 VJyA== X-Gm-Message-State: AIkVDXIZJBsG4PieEAzc/bU1kZiBUiflRPbAh5oQorf6dX1RQfwyho8GW2zP2lX8rXu3gQOM 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 Cc: linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, John Stultz , Mart Raudsepp , Stephen Boyd 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 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 --- Enable CONFIG_PSTORE, CONFIG_PSTORE_CONSOLE and CONFIG_PSTORE_RAM. arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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";