Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3720619imb; Tue, 5 Mar 2019 17:37:22 -0800 (PST) X-Google-Smtp-Source: APXvYqzE5Z2mf56L0c4Td0h4p0xKYNwrdjHizSc3FWACeGp9a6vE4OuSxzTbAMF0fVI0O2/OQa78 X-Received: by 2002:a63:2682:: with SMTP id m124mr3921452pgm.35.1551836242069; Tue, 05 Mar 2019 17:37:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551836242; cv=none; d=google.com; s=arc-20160816; b=cmiQMXpCtgJvMN5BgWQ1qfG9/yNyzzZ2Fn1jpQS2TZQnbtQrJIX5kgM2sQBSia3hbY gToEsPlTXxs1WhD6je38flIDb2bZ5SBXm3QiJVR9fkAQc0RNkMQ3Z+jc/N4c7R+xhIMx oNKJ6IEB2HYxaqrggdHbdR8K9KAI7VX/j4MjPNilV7E58p4MzKBGkYq5m/h+bm4zCXv8 Q4pxE21ZAe9eSCof1JZMukOwf9eyWtT4SeK1mW7qNLqgC21pOMtZ8TuEQAZ/mmIQ/3AF qku7nLHQLA+6HUr/zE6e2EF6p2Q+pceM0F0eCXtf5HJRK1D1+KAHXO4WSRp/dLu0nkly voIQ== 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:dkim-signature; bh=uF2s2oN/pA5324ShmIRECBh1pVl3sWAB0R8+ZfXphDk=; b=ynqbmjJNi48pbqNouBf4ontc+aC7d27499XTZUHTsBL3ZaMsU6PmuKLkhzN9jC2Cwp P61O3ObEybnJKf49zfiBd/Fy0BpQLeWIGXYC7HjLrCkHCajXhckOVSW4dfFCwN/yrVWm U4L84v84+/T0elROIYoOiPb0jvM/cTZkBz4Wnnonjo7typHPbCtn9Jrwg6ijgaLqPk9X JVmhlOLeOg5Vdfh0mKv7Y7DOBT19jfouuw+D0v52wVY4qDt6brH3GPQCpOspkDZ1zZSg 7s+hNwxYqgOUp9PsX5phBzWRhe0oSN+n6XgIqvvPsiLrBQFXns1zOpI00r2TgkYWlqHz VkqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="av/E9wUz"; 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 d4si154531pla.112.2019.03.05.17.37.06; Tue, 05 Mar 2019 17:37:22 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="av/E9wUz"; 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 S1728376AbfCFBQy (ORCPT + 99 others); Tue, 5 Mar 2019 20:16:54 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:52050 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727725AbfCFBQx (ORCPT ); Tue, 5 Mar 2019 20:16:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To: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=uF2s2oN/pA5324ShmIRECBh1pVl3sWAB0R8+ZfXphDk=; b=av/E9wUzwVagWuKpOKY+hdp4/ A90DIkuzqoq+i8WbCnwv4OMQFonfnpJGaBSz0b/XtvmqY5U6HAADg3fmama72dhOP10wBzlxwkz7F crMC2CnS2a31IiZGu1MOgT32b9DNeU9seT2qx5/MfDt3+GEPtPJDoi786tjsjWt74Y0i0qU9vNCYP 3wK6TT4oAALWD/5avebyR+s00SmVS2HzsOGEp7ACwRrk5s+0zFW6Qm0fqlCAsMSq6M2VyZww5+hph 71NBSG0kwJotHU4ZSENiE9gZFjLZCmBCKNoq6tqQjD5DPvJtpqq1JVrjnATcg8CT8JsFQ6vUwSWxu 7gtWdaicA==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=dragon.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1LAu-0000Km-UL; Wed, 06 Mar 2019 01:16:48 +0000 Subject: Re: [PATCH v12 3/4] pstore/blk: support pmsg for pstore block To: liaoweixiong , 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: Randy Dunlap Message-ID: Date: Tue, 5 Mar 2019 17:16:41 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <1551337948-16451-4-git-send-email-liaoweixiong@allwinnertech.com> 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 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 > + > + 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, > + 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. -- ~Randy