From patchwork Tue Aug 30 06:54:31 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 9304931 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 0C5CA601C0 for ; Tue, 30 Aug 2016 06:52:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC3F628A9D for ; Tue, 30 Aug 2016 06:52:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC99828ABC; Tue, 30 Aug 2016 06:52:50 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5052328A9D for ; Tue, 30 Aug 2016 06:52:50 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bectE-0002q4-5g; Tue, 30 Aug 2016 06:51:20 +0000 Received: from mail-pa0-x22b.google.com ([2607:f8b0:400e:c03::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1becqQ-0007wX-Lo for linux-arm-kernel@lists.infradead.org; Tue, 30 Aug 2016 06:48:30 +0000 Received: by mail-pa0-x22b.google.com with SMTP id cy9so4537608pac.0 for ; Mon, 29 Aug 2016 23:48:06 -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=g9IQMtdzb0OQc9YWUyx/ZUMWtx1LHVyC7s/TWyjkwcXYj5ZQlwJB8UjwVsMvi+8owe jG6odr7Tk5jzYsTl3ni8/Bz/rG45aOYKcNROCQPmLikIHyGxN6mZNrkzuA/0r2uwsNri YAySx4iWA8GSigqmjsCutxuNYuWmc42SuQpQ4= 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=W7B27wPVzxUXMmUQ0gYJs6tXsklqygxY/qpBTvXs/4PaTDM0BrzDeYcr2EdKtgI+Q6 2LVs99aplnUC8sF3OCpcegMvjtQ1+8RZ5n1Cvj7IPbmyApZKPWGYKd5F8aXXh6T2YqK+ BY7+D0wb/ns4Im57ZPGUWuWWsVGBadagNzYvjTwVSCCx5nGgoenuPe1nvIKo7kR3v23f Zc9pDH58axWT3/4rBui9kxbk0RdBHSBL5ueLfKV56rTwrGcbTupcUTkqIHrdk3Rob5E2 j7bzirO8pvNsBFty9OuWd1kJeWPjI/U9Dp5OWXPxTVX756mNH38IWy1wRvnn0ke+BO+9 uQ6A== X-Gm-Message-State: AE9vXwMfBfdk9ENQw6RzHoXfzM9VOABoRfJrOeXg7LikOhbQnUdcVLd5WfyehoSs0lnCxYna X-Received: by 10.66.76.106 with SMTP id j10mr3453221paw.122.1472539685478; Mon, 29 Aug 2016 23:48:05 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id x184sm53795885pfd.70.2016.08.29.23.48.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Aug 2016 23:48:05 -0700 (PDT) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, frowand.list@gmail.com Subject: [PATCH v25] 9/9] Documentation: dt: chosen properties for arm64 kdump Date: Tue, 30 Aug 2016 15:54:31 +0900 Message-Id: <20160830065431.19663-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160830064941.19452-2-takahiro.akashi@linaro.org> References: <20160830064941.19452-2-takahiro.akashi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160829_234826_938152_F075FF6E X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, geoff@infradead.org, kexec@lists.infradead.org, AKASHI Takahiro , james.morse@arm.com, bauerman@linux.vnet.ibm.com, dyoung@redhat.com, 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 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>; + }; +};