Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4566134imb; Wed, 6 Mar 2019 17:05:58 -0800 (PST) X-Google-Smtp-Source: APXvYqy0W4qEHBN2WUlIZkKgihRotX0pqjTCIekQdJahnUYSMhCyD4GvF69A37vE1VC1tEJEoFHO X-Received: by 2002:a63:e90f:: with SMTP id i15mr8973794pgh.430.1551920758177; Wed, 06 Mar 2019 17:05:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551920758; cv=none; d=google.com; s=arc-20160816; b=EmGj/80eG96qPmtCukh6fsb9zuHsAfE/k2ZeHoa6akk0Xq0qVPr3DiOyuBCd5LZUUL BG3pOZbi+hyrR/FVhPrEIcsWFWdwq36mcXWRlTQHKt4Fy3zBeDvtkXpgZMbx6wPPAI5A BWmt00UEXOOKI/OAf/DLzkRcbvEo6Jm6IlLFwjkIZqNEvOmnTtGylCP6GfDOwvxBl6pb 6KWbADrR3QkWFfr+EoY0qqNYsFqMQF3Iuoy5q6qEJVYv0N5oTjf8xFXkYTYioDnx8qSD rgJKVwsM5jsRTjJ2aMFSHlO0plUDPyinGelGNC3LOp7npn1gFxS1AsIFEbZki6ID4z/f PIjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=0Iwehk214oKuNFlTgNJVSeVqqrdsYsHhmGFZFSYgp2c=; b=Ns7ESggUZffMqIi2zatx8BzFz89AXI0u9+gqs426RwnN2Cyd7oR7LdOYWF5FujbOVZ dXvLld/Zu56pWyx/OAs0X4Op7xRsEK790+wzTuu6xYR0NVF66GAoV0L6669j6MAAepjn fcFXOX2w50Y7/1WDNMZoC6G0E625mqvjqJlgyWdIDyWku3xulUYdYUs3DzF/TRXz9w0H o3O/PYZYdGEmB8EZsQHkCIVm60e7uXbSddqlp9ZKP3PS76MQzd+Q7bWDuXdYm7tNlLaT AF83CH4vNGvscL2BCyxBw8aLBIscLdBIF9qLW+ngP+CdcmA0/eTcQvLDb6DcNVJs88sm kyQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si2947714plz.22.2019.03.06.17.05.42; Wed, 06 Mar 2019 17:05:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726260AbfCGBFJ (ORCPT + 99 others); Wed, 6 Mar 2019 20:05:09 -0500 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:53174 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfCGBFI (ORCPT ); Wed, 6 Mar 2019 20:05:08 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07447757|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.229133-0.10439-0.666477;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03278;MF=liaoweixiong@allwinnertech.com;NM=1;PH=DS;RN=14;RT=14;SR=0;TI=SMTPD_---.E4ziVM4_1551920701; Received: from 172.16.10.102(mailfrom:liaoweixiong@allwinnertech.com fp:SMTPD_---.E4ziVM4_1551920701) by smtp.aliyun-inc.com(10.147.41.137); Thu, 07 Mar 2019 09:05:02 +0800 Subject: Re: [PATCH v12 3/4] pstore/blk: support pmsg for pstore block To: Randy Dunlap , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , Jonathan Corbet , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Nicolas Ferre , Arnd Bergmann , Rob Herring Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <1551337948-16451-1-git-send-email-liaoweixiong@allwinnertech.com> <1551337948-16451-4-git-send-email-liaoweixiong@allwinnertech.com> From: liaoweixiong Message-ID: Date: Thu, 7 Mar 2019 09:05:32 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2019-03-06 09:16, Randy Dunlap wrote: > Hi, > > On 2/27/19 11:12 PM, liaoweixiong wrote: >> diff --git a/fs/pstore/Kconfig b/fs/pstore/Kconfig >> index 7dfe00b..b417bf5 100644 >> --- a/fs/pstore/Kconfig >> +++ b/fs/pstore/Kconfig >> @@ -210,6 +210,27 @@ config PSTORE_BLKOOPS_DMESG_SIZE >> It is the first priority. Take care of that blkoops will take lower >> priority settings if higher priority one do not set. >> >> +config PSTORE_BLKOOPS_PMSG_SIZE >> + int "pmsg size in kbytes for blkoops" >> + depends on PSTORE_BLKOOPS >> + default 64 >> + help >> + This just sets size of pmsg (pmsg_size) for pstore/blk. The value must >> + be a multiple of 4096. Pmsg work only if "blkdev" is set. > > works > Fixed. >> + >> + NOTE that, there are three ways to set parameters of blkoops and >> + prioritize according to configuration flexibility. That is >> + Kconfig < device tree < module parameters. It means that the value can >> + be overwritten by higher priority settings. >> + 1. Kconfig >> + It just sets a default value. >> + 2. device tree >> + It is set on device tree, which will overwrites value from Kconfig, > > overwrite the value from Kconfig, > Fixed. >> + but can also be overwritten by module parameters. >> + 3. module parameters >> + It is the first priority. Take care of that blkoops will take lower >> + priority settings if higher priority one do not set. >> + >> config PSTORE_BLKOOPS_TOTAL_SIZE >> int "total size in kbytes for blkoops" >> depends on PSTORE_BLKOOPS > > cheers. > Thank you. Cheers. -- liaoweixiong