From patchwork Wed Mar 15 10:00:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 9625157 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 8199A60244 for ; Wed, 15 Mar 2017 10:00:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6641D28464 for ; Wed, 15 Mar 2017 10:00:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5AC7128607; Wed, 15 Mar 2017 10:00:47 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E712F28464 for ; Wed, 15 Mar 2017 10:00:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=48luLSoCvg8rjdwV0zrfLA7VbSJSaRf7CCDXv8YuVbE=; b=ZRjKUlJSFDTew7svQBCSmz5/vg wOJmrrgj4GbLt38/UXtEn9XxflxW+nPqFMUdE9GagjHmZEuGn/t4O4ZN/G3UzETf5Fn2ATIXCVPef VWOwLVh4XTyQoR8qyklWPQxP6xKc7oBVwKbO80SJyfVctny3eg3Psau3v86WZpCFhFH9jUsNwrCaD nVk3SHPCERssycc/x4hdVUbJN3OgV76iEkJE51NL65hV9gJK+VB81i5EffCsVYqLj32OsKyq8RKWZ vijZjhAyqFTb6lHj2rIu2YhbjqusPIxM5gT8S9KPmsRDVtCIzlkcPHQv0t7XbHyXLf5ulAAuN1vu5 6tMu96Sg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1co5jX-0007l2-7H; Wed, 15 Mar 2017 10:00:43 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1co5i4-0005AF-7k for linux-arm-kernel@bombadil.infradead.org; Wed, 15 Mar 2017 09:59:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=qoGTX5qJmqJbCg9RP9uc/PJG8OTVrm/xdcL56EzL+VQ=; b=h3D076MwHgzO6XGaDo2Otx+NZ k0601SEVd5IlG5tVHKP3q3uwKSDtUuAA+at1WPEzZCeLJYv80qATIzg9vkJTp5K/XNuTxXH/u5QbT fe/hH3MrZYkvbwWb7cVf1eVYwPE6I3DjgT7jrAsG43waUVMpaqFjmEkWGnsrhCLd8ELQlOISFYPi4 0JooXm52M5zsClUC091C67XtcRtV3sDNT64XUtpmKOzzpgML6HL1YryjwtgY/dLhK+Y1tTIaOpDIp LRClmDEc/pa3I47NAkQPKklxkCCs8fnDn5iGRnv7O4cSGnK25IjfOmdfec3QhvcZWDMhHrvfJDnET SwKG4qiTA==; Received: from mail-pg0-x233.google.com ([2607:f8b0:400e:c05::233]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1co5hc-0006H2-OQ for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2017 09:59:10 +0000 Received: by mail-pg0-x233.google.com with SMTP id 141so7010840pgd.1 for ; Wed, 15 Mar 2017 02:58:24 -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=qoGTX5qJmqJbCg9RP9uc/PJG8OTVrm/xdcL56EzL+VQ=; b=dD5rAu0mh6IZjUN2qD/vmpPNvsy3foxfBYuuqx559u89hI29WW0rnOTorpeVCoN7vT IHihHGk6yMndKMySyERZyDSVscdaClo7Wluoy0KjAEi5//pNMmSEJpHcYeJw08g+0n+v RnDvZOAs9zwbdj9ZVEnFkq4HNS7ZkxC33CbCk= 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=qoGTX5qJmqJbCg9RP9uc/PJG8OTVrm/xdcL56EzL+VQ=; b=VjrxqGTFk0hyveD66FACmWfjc0n3Z99HltK0KrghZMV9+BzvcfjuDHoMdwvQ8sAnYr K+vJaBEFGHnLIz9EBWk1dpUrolYNlzaVk/xNxUTQi+5CNgWGrSsc83FxPhG5+FGymnmT 17BrAnwq/SJ+rpT37+nBKIoCPLAjbQxiJTvwmuV0RNeas3sNVAWwJ+9sGnyXIS2VqxYX NsE+BNxoeKMhXYygAipBZ4EJIElfgfHhDqHEmsW0tiTwmuUB76IlFc5oBrBQoVL9XUL3 JIbFTNstg0ACfUkIzDWgX63hhxRLPLI16KZUUN4lXrLCm9Hj2+0jOnpQ7uLk7Bgf6Lya ddFw== X-Gm-Message-State: AFeK/H3kG7AZ1+0Yb0MznElst0m0PmPhG+/QjmP/QbYcfZKzb3JXM19YfcxFr5wbufDnbEdf X-Received: by 10.99.102.135 with SMTP id a129mr2657209pgc.220.1489571902943; Wed, 15 Mar 2017 02:58:22 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id t133sm3235752pgc.24.2017.03.15.02.58.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Mar 2017 02:58:22 -0700 (PDT) From: AKASHI Takahiro To: catalin.marinas@arm.com, will.deacon@arm.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH v33 13/14] Documentation: dt: chosen properties for arm64 kdump Date: Wed, 15 Mar 2017 19:00:49 +0900 Message-Id: <20170315100049.25206-1-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.11.1 In-Reply-To: <20170315095656.24992-1-takahiro.akashi@linaro.org> References: <20170315095656.24992-1-takahiro.akashi@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170315_095844_948347_4E4190EC X-CRM114-Status: GOOD ( 14.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 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 DT properties: linux,usable-memory-range linux,elfcorehdr used by arm64 kdump. Those are, respectively, a usable memory range allocated to crash dump kernel and the elfcorehdr's location within it. Signed-off-by: James Morse [takahiro.akashi@linaro.org: update the text due to recent changes ] Signed-off-by: AKASHI Takahiro Acked-by: Mark Rutland Cc: devicetree@vger.kernel.org Cc: Rob Herring --- Documentation/devicetree/bindings/chosen.txt | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Documentation/devicetree/bindings/chosen.txt b/Documentation/devicetree/bindings/chosen.txt index 6ae9d82d4c37..b5e39af4ddc0 100644 --- a/Documentation/devicetree/bindings/chosen.txt +++ b/Documentation/devicetree/bindings/chosen.txt @@ -52,3 +52,48 @@ 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. + +While this property does not represent a real hardware, the address +and the size are expressed in #address-cells and #size-cells, +respectively, of the root node. + +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>; + }; +}; + +While this property does not represent a real hardware, the address +and the size are expressed in #address-cells and #size-cells, +respectively, of the root node.