Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp11788944imu; Tue, 1 Jan 2019 06:53:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN4mKzYbcVubX4856kvF+B8cCiwHXTjtlR7WbUZUTMgV4BbKI1pfBbwMC2UwkiHfESHUX8cs X-Received: by 2002:a63:cc12:: with SMTP id x18mr10688031pgf.33.1546354417278; Tue, 01 Jan 2019 06:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546354417; cv=none; d=google.com; s=arc-20160816; b=Whz94+/PuZCDBuTOiWa7p2Fli36IKokRRGx+430g9cCJRgIzuHiq+QjpR0IlZPUfd3 HRgmTjJ9GGLRIP1/B1eLOgasBbrqEOQhgFu/qECXiMPSwiTSz1q2nj9voxhC61jmHCZP f+pd5M+CGjvP/SAg4ZK44h47WkcJzWfnTXAXHhUMS3df8w2D+5H+44/+vrpwTA7iPpBo UEbcZtaLL8LNsqowxAaKIb8fzb8+c+Jkzil/iM0GxVtKQZ2Y3ezCAk53BQ0Llw2nmavS WVIRpOb6Ku3R3hMwOSgqwKMu8p5Ad/frEmd8nNPf7eVBNFIOgMW700bhTq5C3mGWj0LM 47NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=9hN4YM6W0VMjqKg/UwJ8g3NkBD+Dh22JZovi083r6Ic=; b=RDAQ9idXqQSJR2OSeFbXgIjZie3J+RpRiIYwxhFbRo/IxouToe722XV2GHnMi+OaSx 3zBA1MYGiUknjgqam5GNpLNdd7bQIWhMgaQyuEfxn80yNY8Q6SiaX7qzZRcOtmicRk5a cQm20Gu5qstSFNZ/rQbMgNUU9OAmlAR/egRK+Kt3BQhp3cU40hDxR4t+cAYOaA+cb8Og 38nmLdgU5HvRTbNor8JEzxtE5hvJC1pgtA3K8/N90uaOxgpTz5OcXx6+lMXEOBkoLsh9 k259Cp+3+8SnqVS0iEJkcjmBxUKwGFmF3FaF4Tge8VFDCkW3pzvm0FrGhM6hIqSACgN8 NBcA== 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 w189si47257611pfb.151.2019.01.01.06.53.05; Tue, 01 Jan 2019 06:53:36 -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 S1728653AbfAAJ1g (ORCPT + 99 others); Tue, 1 Jan 2019 04:27:36 -0500 Received: from smtp2207-205.mail.aliyun.com ([121.197.207.205]:39119 "EHLO smtp2207-205.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728466AbfAAJ1g (ORCPT ); Tue, 1 Jan 2019 04:27:36 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07773841|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e01l10423;MF=liaoweixiong@allwinnertech.com;NM=1;PH=DS;RN=6;RT=6;SR=0;TI=SMTPD_---.Dg-i0Ha_1546334844; Received: from PC-liaoweixiong.allwinnertech.com(mailfrom:liaoweixiong@allwinnertech.com fp:SMTPD_---.Dg-i0Ha_1546334844) by smtp.aliyun-inc.com(10.147.41.120); Tue, 01 Jan 2019 17:27:32 +0800 From: liaoweixiong To: Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck Cc: linux-kernel@vger.kernel.org, liaoweixiong Subject: [RFC 0/2] pstore/rom: new support logger for block devices Date: Tue, 1 Jan 2019 17:27:23 +0800 Message-Id: <1546334845-24255-1-git-send-email-liaoweixiong@allwinnertech.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pstore_rom is similar to pstore_ram, but dump log to block devices rather than persistent ram. Why should we need pstore_rom? 1. Most embedded intelligent equipment have no persistent ram, which increases costs. We perfer to cheaper solutions, like block devices. In fast, there is already a sample for block device logger in driver MTD (drivers/mtd/mtdoops.c). 2. Do not any equipment have battery, which means that it lost all data on general ram if power failure. Pstore has little to do for these equipments. On patch 1: Core codes of pstore_rom, which works well on allwinner(sunxi) platform. On patch 2: A sample for pstore_rom, using general ram rather than block device. liaoweixiong (2): pstore/rom: new support logger for block devices pstore/rom: add sample for pstore_rom fs/pstore/Kconfig | 16 + fs/pstore/Makefile | 5 + fs/pstore/rombuf.c | 46 +++ fs/pstore/romzone.c | 965 +++++++++++++++++++++++++++++++++++++++++++++ include/linux/pstore_rom.h | 68 ++++ 5 files changed, 1100 insertions(+) create mode 100644 fs/pstore/rombuf.c create mode 100644 fs/pstore/romzone.c create mode 100644 include/linux/pstore_rom.h -- 1.9.1