Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp37398ybv; Tue, 18 Feb 2020 17:13:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwXkQJZEp96ambS9I4145ZKGsNaLTlJo/6n5V0ELzQpmATWCLk8gHv82EARctnVF07vHl7v X-Received: by 2002:a9d:6301:: with SMTP id q1mr17282710otk.299.1582074805198; Tue, 18 Feb 2020 17:13:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582074805; cv=none; d=google.com; s=arc-20160816; b=NajwEC29zIW1WeE3Bok1M/tSku+7iVvSQRA9NFm7+CKcJBAvJ0On5C4KALquLMp9W5 v9oBijEFYAJ1jdfY68PU9DZP7suBqG1jsmsWFNhCQgbJc56LFUQSmgBNJ1q3zmdE9klf SIiTlB5RBds/T+u3JlwsGsRglATDNoypu7aLpr+1h8tFJ7N+Ug51Anj0oLicVaRHkRiu VfIM7mDjuplycbli9K31rJ8cNhgSLEFNuiVXixOKzUXbksci7FSJhYRuuyC4Gl8BqWNH LyV1UYwZ8lwkM2jBTIObF4qUljQFzce0JSffDqBotCpLFaNb13cCFc21tIRYriM5lutK EWGg== 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=RExeYVITATwQxjNOuBHqazA403evZWogPMeTC4/q5c4=; b=zlvY7+zY+6SBbHrfzYf7K3ANDZRAN+QOPznjeibmyJ1FDNl1S3BvyPJFpdSi1eg2Mn Dvr3I2KhAL5CcKkohmyR8pAoHXBz6eDF6mQm2kM43uoawX4R+PsmqEKp07vRCuK4G+Y8 naMDWF/rlRupyipemrOWdX08TWV7aBswVkcbrbhE7YNSKIVoEZgLPW8nKs4urgIxht1/ 90sowptTmjw7DFaNlLOdn8WiC7GRZRTuWks/6YzmxF6FM+HF/RbHTxuI7B2tMh+iSrGx zIAcuHAkBhUdcBaojNzFTvro9y2PA33gGXf/e8u5Zhoo4VE2uf7NXCGAP6n3LVBmUacO V9rQ== 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 k16si1180357oiw.128.2020.02.18.17.13.13; Tue, 18 Feb 2020 17:13:25 -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 S1727206AbgBSBMu (ORCPT + 99 others); Tue, 18 Feb 2020 20:12:50 -0500 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:46063 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbgBSBMt (ORCPT ); Tue, 18 Feb 2020 20:12:49 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07472768|-1;CH=green;DM=CONTINUE|CONTINUE|true|0.264101-0.0159969-0.719902;DS=SPAM|spam_other|0.930438-0.00178347-0.0677784;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03310;MF=liaoweixiong@allwinnertech.com;NM=1;PH=DS;RN=16;RT=16;SR=0;TI=SMTPD_---.GpVrOsg_1582074763; Received: from 172.16.10.102(mailfrom:liaoweixiong@allwinnertech.com fp:SMTPD_---.GpVrOsg_1582074763) by smtp.aliyun-inc.com(10.147.40.44); Wed, 19 Feb 2020 09:12:44 +0800 Subject: Re: [PATCH v2 11/11] mtd: new support oops logger based on pstore/blk To: Miquel Raynal Cc: Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , Jonathan Corbet , Richard Weinberger , Vignesh Raghavendra , Mauro Carvalho Chehab , "David S. Miller" , Rob Herring , Greg Kroah-Hartman , Jonathan Cameron , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org References: <1581078355-19647-1-git-send-email-liaoweixiong@allwinnertech.com> <1581078355-19647-12-git-send-email-liaoweixiong@allwinnertech.com> <20200218113449.5ac44955@xps13> From: liaoweixiong Message-ID: <5e95d596-3ba1-09e6-1777-007a5257f1cc@allwinnertech.com> Date: Wed, 19 Feb 2020 09:13:14 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20200218113449.5ac44955@xps13> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi Miquel Raynal, On 2020/2/18 下午6:34, Miquel Raynal wrote: > Hi WeiXiong, > > WeiXiong Liao wrote on Fri, 7 Feb > 2020 20:25:55 +0800: > >> It's the last one of a series of patches for adaptive to MTD device. >> >> The mtdpstore is similar to mtdoops but more powerful. It bases on >> pstore/blk, aims to store panic and oops logs to a flash partition, >> where it can be read back as files after mounting pstore filesystem. >> >> The pstore/blk and blkoops, a wrapper for pstore/blk, are designed for >> block device at the very beginning, but now, compatible to not only >> block device. After this series of patches, pstore/blk can also work >> for MTD device. To make it work, 'blkdev' on kconfig or module >> parameter of blkoops should be set as mtd device name or mtd number. >> See more about pstore/blk and blkoops on: >> Documentation/admin-guide/pstore-block.rst >> >> Why do we need mtdpstore? >> 1. repetitive jobs between pstore and mtdoops >> Both of pstore and mtdoops do the same jobs that store panic/oops log. >> They have much similar logic that register to kmsg dumper and store >> log to several chunks one by one. >> 2. do what a driver should do >> To me, a driver should provide methods instead of policies. What MTD >> should do is to provide read/write/erase operations, geting rid of codes >> about chunk management, kmsg dumper and configuration. >> 3. enhanced feature >> Not only store log, but also show it as files. >> Not only log, but also trigger time and trigger count. >> Not only panic/oops log, but also log recorder for pmsg, console and >> ftrace in the future. >> >> Signed-off-by: WeiXiong Liao > > Acked-by: Miquel Raynal > > Richard, your PoV on this is welcome. > > I suppose this patch depends on the others to work correctly so maybe > we should wait the next release before applying it. > Of couse, thank you for your review > Thanks, > Miquèl > -- liaoweixiong