From patchwork Wed Dec 28 04:37:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 89148 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp5294787qgi; Tue, 27 Dec 2016 20:37:23 -0800 (PST) X-Received: by 10.99.209.5 with SMTP id k5mr65091831pgg.145.1482899843619; Tue, 27 Dec 2016 20:37:23 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s137si48557976pfs.170.2016.12.27.20.37.23; Tue, 27 Dec 2016 20:37:23 -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 dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750766AbcL1EhR (ORCPT + 7 others); Tue, 27 Dec 2016 23:37:17 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33940 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbcL1EhQ (ORCPT ); Tue, 27 Dec 2016 23:37:16 -0500 Received: by mail-pf0-f177.google.com with SMTP id c4so57022711pfb.1 for ; Tue, 27 Dec 2016 20:37:16 -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=NetFFjA18+OcdiZ3cRecaBAEbXd/8NeaNZLcN1XucFk=; b=dEbWltpOZ6DJkEME419VIrtJp2XUPYeYFXI1Ez7XLM/RY4zcNi5KyFjIRf3oVM4/LW kbzQwss6J+yxAdFK1yPDQDe0oTKRKOl0Idj+0h1NI/+77eBZVHZ5c+KrDLM6dWT5RO+y 1+8oF6vUFWt0oHP593GqPjdHTtF8SVkA8nkNk= 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=NetFFjA18+OcdiZ3cRecaBAEbXd/8NeaNZLcN1XucFk=; b=fYMYilnc5IFF+1z/I2/l1xwnvI6LjLUUDnSkvHTYMk6YRN23RmfyOfhLH3GNtLFKfO trd8wqNXNoqw0KZyDuCrJWxf7fhGWHUDOFC1h75Hj7SIH7tzNl3Awx815ikLh0l0hggj 2ZMgAu++UmoVFJZUPjKIOjoQ00loaZm0mQ3LmjTFQPcLiOmdjIK/qlmWF4XDVOiqbnn7 66B2XMr34jHlD20+hv/2diSyfOsE7k2e4Ho39KSqXsi+nShj3k3CB7lFiTJxJuMC92t+ jRCcByFNY+pwZEOkBwa0gqr4ygnu+WqYu9Lj5LEXF5EuTXBDlR5Kn0ArB8T04xpcjRaF nVBA== X-Gm-Message-State: AIkVDXJICb/MUdAnmS8PyiHJR8UF6Neup5TZnrc6H9Sy06VqrhoSaB5nUyihTnf+HuVs15xx X-Received: by 10.98.113.201 with SMTP id m192mr26208315pfc.42.1482899836092; Tue, 27 Dec 2016 20:37:16 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id 64sm92946404pfu.17.2016.12.27.20.37.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Dec 2016 20:37:15 -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 v29 9/9] Documentation: dt: chosen properties for arm64 kdump Date: Wed, 28 Dec 2016 13:37:34 +0900 Message-Id: <20161228043734.27535-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161228043347.27358-1-takahiro.akashi@linaro.org> References: <20161228043347.27358-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 linux,crashkernel-base and crashkernel-size, linux,usable-memory-range linux,elfcorehdr used by arm64 kdump to decribe the kdump reserved area, and the elfcorehdr's location within it. Signed-off-by: James Morse [takahiro.akashi@linaro.org: added "linux,crashkernel-base" and "-size" ] Signed-off-by: AKASHI Takahiro Cc: devicetree@vger.kernel.org Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/chosen.txt | 50 ++++++++++++++++++++++++++++ 1 file changed, 50 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..7b115165e9ec 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 as PT_LOAD segments of elf format. +e.g. + +/ { + chosen { + linux,elfcorehdr = <0x9 0xfffff000 0x0 0x800>; + }; +};