From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,UNPARSEABLE_RELAY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95BCBC282C2 for ; Wed, 23 Jan 2019 12:06:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6BA5521841 for ; Wed, 23 Jan 2019 12:06:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727386AbfAWMGL (ORCPT ); Wed, 23 Jan 2019 07:06:11 -0500 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:44080 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727222AbfAWMGK (ORCPT ); Wed, 23 Jan 2019 07:06:10 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0898988|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03301;MF=liaoweixiong@allwinnertech.com;NM=1;PH=DS;RN=17;RT=17;SR=0;TI=SMTPD_---.Dpe2eW5_1548245156; Received: from PC-liaoweixiong.allwinnertech.com(mailfrom:liaoweixiong@allwinnertech.com fp:SMTPD_---.Dpe2eW5_1548245156) by smtp.aliyun-inc.com(10.147.41.178); Wed, 23 Jan 2019 20:06:05 +0800 From: liaoweixiong To: Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , Jonathan Corbet , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , Greg Kroah-Hartman , "David S. Miller" , Andrew Morton , Nicolas Ferre , Arnd Bergmann Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, liaoweixiong Subject: [RFC v7 2/5] dt-bindings: pstore-block: new support for blkoops Date: Wed, 23 Jan 2019 20:05:13 +0800 Message-Id: <1548245116-6360-3-git-send-email-liaoweixiong@allwinnertech.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1548245116-6360-1-git-send-email-liaoweixiong@allwinnertech.com> References: <1548245116-6360-1-git-send-email-liaoweixiong@allwinnertech.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Create DT binding document for blkoops. Signed-off-by: liaoweixiong --- .../devicetree/bindings/pstore-block/blkoops.txt | 32 ++++++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/pstore-block/blkoops.txt diff --git a/Documentation/devicetree/bindings/pstore-block/blkoops.txt b/Documentation/devicetree/bindings/pstore-block/blkoops.txt new file mode 100644 index 0000000..a25835b --- /dev/null +++ b/Documentation/devicetree/bindings/pstore-block/blkoops.txt @@ -0,0 +1,32 @@ +Blkoops oops logger +=================== + +Blkoops provides a block partition for oops, excluding panics now, so they can +be recovered after a reboot. + +Any space of block partition will be used for a circular buffer of oops records. +These records have a configurable size, with a size of 0 indicating that they +should be disabled. + +"partition-size" and at least one of "dmesg-size" or "pmsg-size" must be set +non-zero, but are otherwise optional as listed below. + +Blkoops will take value from Kconfig if device tree do not set, but settings +from module parameters can also overwrite them. + +Required properties: + +- compatible: must be "blkoops". + +- partition-size: size in kbytes, must be a multiple of 4. + +Optional properties: + +- partition-path: strings must begin with "/dev", tell blkoops which partition + it can used. If it is not set, blkoops will drop all data when reboot. + +- dmesg-size: maximum size in kbytes of each dump done on oops, which must be a + multiple of 4. + +- pmsg-size: maximum size in kbytes for userspace messages, which must be a + multiple of 4. diff --git a/MAINTAINERS b/MAINTAINERS index 0abecc5..91c70df 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12055,6 +12055,7 @@ F: drivers/firmware/efi/efi-pstore.c F: drivers/acpi/apei/erst.c F: Documentation/admin-guide/ramoops.rst F: Documentation/devicetree/bindings/reserved-memory/ramoops.txt +F: Documentation/devicetree/bindings/pstore-block/ K: \b(pstore|ramoops) PTP HARDWARE CLOCK SUPPORT -- 1.9.1