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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT 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 18FC4C282C0 for ; Wed, 23 Jan 2019 18:19:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E4F9821850 for ; Wed, 23 Jan 2019 18:19:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726385AbfAWSTy (ORCPT ); Wed, 23 Jan 2019 13:19:54 -0500 Received: from emh04.mail.saunalahti.fi ([62.142.5.110]:36522 "EHLO emh04.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbfAWSTx (ORCPT ); Wed, 23 Jan 2019 13:19:53 -0500 Received: from darkstar.musicnaut.iki.fi (85-76-66-19-nat.elisa-mobile.fi [85.76.66.19]) by emh04.mail.saunalahti.fi (Postfix) with ESMTP id DD6DC30118; Wed, 23 Jan 2019 20:19:49 +0200 (EET) Date: Wed, 23 Jan 2019 20:19:49 +0200 From: Aaro Koskinen To: liaoweixiong , Kees Cook Cc: Anton Vorontsov , Colin Cross , Tony Luck , Jonathan Corbet , Mauro Carvalho Chehab , Greg Kroah-Hartman , "David S. Miller" , Andrew Morton , Nicolas Ferre , Arnd Bergmann , "open list:DOCUMENTATION" , LKML Subject: Re: [RFC v5 1/4] pstore/blk: new support logger for block devices Message-ID: <20190123181949.GC2792@darkstar.musicnaut.iki.fi> References: <1546862462-19640-1-git-send-email-liaoweixiong@allwinnertech.com> <1546862462-19640-2-git-send-email-liaoweixiong@allwinnertech.com> <1497804b-f921-b0cf-1327-3b17beaf9ce7@allwinnertech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1497804b-f921-b0cf-1327-3b17beaf9ce7@allwinnertech.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Sat, Jan 19, 2019 at 04:53:48PM +0800, liaoweixiong wrote: > On 2019-01-18 08:12, Kees Cook wrote: > >> MTD (drivers/mtd/mtdoops.c). > > > > Would mtdoops get dropped in favor of pstore/blk, or do they not share > > features? > > We can show them what pstore/blk do. I think they will be interested in it. > They should do a little work, including make a function for panic read, > then they gain enhanced features, including present logs as a file, > record multiple logs. mtdoops has been in use over a decade and known working. What benefits this new framework would offer? (BTW I don't see MTD as "block device".) Why should there be a panic read? That adds complexity. This codes runs on panic path, so it should be as simple and fast as possible. Also compatibility has to be there. E.g. user upgrades an old system (with mtdoops and related userspace) to a new kernel. Upgrade fails, so the old software must be able to read the panic dumps properly to tell the user why. A.