From patchwork Tue Aug 9 01:57:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 657057 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3s7cj62sB7z9srZ for ; Tue, 9 Aug 2016 11:52:10 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=VSi2vDl6; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751944AbcHIBwJ (ORCPT ); Mon, 8 Aug 2016 21:52:09 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:36203 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751596AbcHIBwI (ORCPT ); Mon, 8 Aug 2016 21:52:08 -0400 Received: by mail-pa0-f53.google.com with SMTP id pp5so132121pac.3 for ; Mon, 08 Aug 2016 18:52:08 -0700 (PDT) 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=vlsdDd7rnuyKOZQz1hJSb8nGV8er6Vv/y1hRa1MIFvo=; b=VSi2vDl6ePjvalVRqi2gAv5+Qx0C/2U69TnX+1D/pcFTM0UTbQrZ/ARorCMGczFUON hZVGvoL3jTe6prDUhBOYsgfVq3uNHy1HOipoHUsOVEB0fQU6YULGlEuHYxr2/mZ5Ilg5 pTSPgLKg2u5eGJanFaWoJ6SXiibok6OWuKKyI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vlsdDd7rnuyKOZQz1hJSb8nGV8er6Vv/y1hRa1MIFvo=; b=Usw8FgM+bWDcsqcBRFuybiH77FBj4tQKOZKdO4uKgIBRCoVCqXe4tvsszWoOUMgJwb 0vVN6EnfWxTSURwaguETzmOS8MglMMe0La4MlraYsZqeo+EBfQZaTiVIkYjsjoSsdQJl wOz2G/y2MfvzA2iL9QbHa8SJZXo/BRZdcQ20RPGtKZQA/uS+xY+myezaHYv85GYhp5Nz Cc1J87/8cZ+Uge1SXotc6h+vpeqpGRPK3vXVfIVXDau2KuR0M69o+k00kfTp0x/ZO6rj DRko6euVJJ+cpBFvrlSrM/rR8b7AikAWw6BIUHEBSm8WB8GwYI7acj95YZ7d1PyHS5Iw ou2w== X-Gm-Message-State: AEkoouvZF65gXey6d6aoCbT4xBWU0EXdCXB3wbwok+7OpaiPA/OO5xshI0Af/bQCXA+rdnLG X-Received: by 10.66.242.166 with SMTP id wr6mr167559357pac.147.1470707527652; Mon, 08 Aug 2016 18:52:07 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id e187sm50957040pfg.43.2016.08.08.18.52.06 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 08 Aug 2016 18:52:07 -0700 (PDT) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, frowand.list@gmail.com Cc: james.morse@arm.com, geoff@infradead.org, bauerman@linux.vnet.ibm.com, dyoung@redhat.com, mark.rutland@arm.com, kexec@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, AKASHI Takahiro Subject: [PATCH v24 9/9] Documentation: dt: chosen properties for arm64 kdump Date: Tue, 9 Aug 2016 10:57:47 +0900 Message-Id: <20160809015747.28591-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160809015248.28414-2-takahiro.akashi@linaro.org> References: <20160809015248.28414-2-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 linux,crashkernel-base and crashkernel-size, linux,usable-memory-range, and linux,elfcorehdr used by arm64 kexec/kdump to decribe the kdump reserved area, and the elfcorehdr's location within it. Signed-off-by: James Morse [takahiro.akashi@linaro.org: renamed "usable-memory" to "usable-memory-range", added "linux,crashkernel-base" and "-size" ] Signed-off-by: AKASHI Takahiro --- Documentation/devicetree/bindings/chosen.txt | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/chosen.txt b/Documentation/devicetree/bindings/chosen.txt index 6ae9d82..236188a 100644 --- a/Documentation/devicetree/bindings/chosen.txt +++ b/Documentation/devicetree/bindings/chosen.txt @@ -52,3 +52,53 @@ 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,crashkernel-base +linux,crashkernel-size +---------------------- +These properties (currently used on PowerPC and arm64) indicates +the base address and the size, respectively, of the reserved memory +range for crash dump kernel. +e.g. + +/ { + chosen { + linux,crashkernel-base = <0x9 0xf0000000>; + linux,crashkernel-size = <0x0 0x10000000>; + }; +}; + +linux,usable-memory-range +------------------------- + +This property (currently used only on arm64) holds the memory range, +the base address and the size, which can be used as system ram on +the *current* kernel. Note that, if this property is present, any memory +regions under "memory" nodes in DT blob or ones marked as "conventional +memory" in EFI memory map should be ignored. +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 in elf format. +e.g. + +/ { + chosen { + linux,usable-memory-range = <0x9 0xf0000000 0x0 0x10000000>; + linux,elfcorehdr = <0x9 0xfffff000 0x0 0x800>; + }; +};