From patchwork Tue Jan 24 08:53:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 92289 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1613059qgi; Tue, 24 Jan 2017 00:52:42 -0800 (PST) X-Received: by 10.99.160.84 with SMTP id u20mr37780942pgn.141.1485247962862; Tue, 24 Jan 2017 00:52:42 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d24si18407806plj.113.2017.01.24.00.52.42; Tue, 24 Jan 2017 00:52:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1750896AbdAXIwl (ORCPT + 7 others); Tue, 24 Jan 2017 03:52:41 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:32872 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750861AbdAXIwk (ORCPT ); Tue, 24 Jan 2017 03:52:40 -0500 Received: by mail-pf0-f175.google.com with SMTP id y143so48815259pfb.0 for ; Tue, 24 Jan 2017 00:52:26 -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:in-reply-to:references; bh=wCy1oA4FJqwEjNNSBfsy/wL1vp+hublTUwyYoXGlEJQ=; b=Z5416tFy4/K69BNWXoPNnIcXsr36nZ2EVbPl9+9EhWzyguWxsAUcLqTl6YVKKGmKFH O5ypipjL9WL3WFahGoniVusqxPPAg3xz0Xp3+IlZ41Ihrmu1GVnS22IA3BvyLqHRIOHS t9mvOUu2uj0aBwC4zRYXoVUV5B0G+EidmpRpw= 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:in-reply-to :references; bh=wCy1oA4FJqwEjNNSBfsy/wL1vp+hublTUwyYoXGlEJQ=; b=uHhrwaMmaUSj4mrnER7FyjjcPrATyX1XLvGIAde3bYY6mTz5U0SCwbYLW93qvvD3fg ydEyLfW4X24LFEQv2JNwmXXN03CYB1qmTqxatHFIjbaBkVB6yIeZ41zJONuBZQLddFiR Zg4w8Ovl+ezysD6MlQevi1W1uP86d2QcZFJVLcmexnxaF1T+1wXnN0QA9fQ53yVSJYrK doHWUi4VZ18RafatPOj2qLXlKtqULN4nFxFRXRUhM3VPlYqSIhHRxbYwClb5TaPXhfsO 09pBgzFI6lV18k7ATHOMqPSESWNmVTrmGiCxVeY6AdSMRuBpP+Jjfm6Wse5kJcaqvGhk RnLw== X-Gm-Message-State: AIkVDXIMju1ZG01uDhnTsEx009/HYIcW+vQ5mM4F2EhgfNliLdwtFhSFuOBC9g8A1X3gMeTA X-Received: by 10.98.194.153 with SMTP id w25mr37245709pfk.181.1485247946236; Tue, 24 Jan 2017 00:52:26 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id o18sm3604598pgn.36.2017.01.24.00.52.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Jan 2017 00:52:25 -0800 (PST) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: james.morse@arm.com, geoff@infradead.org, bauerman@linux.vnet.ibm.com, dyoung@redhat.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, AKASHI Takahiro Subject: [PATCH v30 11/11] Documentation: dt: chosen properties for arm64 kdump Date: Tue, 24 Jan 2017 17:53:20 +0900 Message-Id: <20170124085320.3973-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170124084638.3770-1-takahiro.akashi@linaro.org> References: <20170124084638.3770-1-takahiro.akashi@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: James Morse Add documentation for DT properties: linux,usable-memory-range linux,elfcorehdr used by arm64 kdump. Those decribe the usable memory range for crash dump kernel and the elfcorehdr's location within it, respectively. Signed-off-by: James Morse [takahiro.akashi@linaro.org: added "linux,crashkernel-base" and "-size" ] Signed-off-by: AKASHI Takahiro Acked-by: Mark Rutland Cc: devicetree@vger.kernel.org Cc: Rob Herring --- Documentation/devicetree/bindings/chosen.txt | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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/Documentation/devicetree/bindings/chosen.txt b/Documentation/devicetree/bindings/chosen.txt index 6ae9d82d4c37..8dc82431acc1 100644 --- a/Documentation/devicetree/bindings/chosen.txt +++ b/Documentation/devicetree/bindings/chosen.txt @@ -52,3 +52,40 @@ This property is set (currently only on PowerPC, and only needed on book3e) by some versions of kexec-tools to tell the new kernel that it is being booted by kexec, as the booting environment may differ (e.g. a different secondary CPU release mechanism) + +linux,usable-memory-range +------------------------- + +This property (arm64 only) holds a base address and size, describing a +limited region in which memory may be considered available for use by +the kernel. Memory outside of this range is not available for use. + +This property describes a limitation: memory within this range is only +valid when also described through another mechanism that the kernel +would otherwise use to determine available memory (e.g. memory nodes +or the EFI memory map). Valid memory may be sparse within the range. +e.g. + +/ { + chosen { + linux,usable-memory-range = <0x9 0xf0000000 0x0 0x10000000>; + }; +}; + +The main usage is for crash dump kernel to identify its own usable +memory and exclude, at its boot time, any other memory areas that are +part of the panicked kernel's memory. + +linux,elfcorehdr +---------------- + +This property (currently used only on arm64) holds the memory range, +the address and the size, of the elf core header which mainly describes +the panicked kernel's memory layout as PT_LOAD segments of elf format. +e.g. + +/ { + chosen { + linux,elfcorehdr = <0x9 0xfffff000 0x0 0x800>; + }; +};