From patchwork Wed Dec 6 08:50:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dirk Behme X-Patchwork-Id: 845071 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="I6I+r3Ti"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=de.bosch.com header.i=@de.bosch.com header.b="URvtAtTr"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3ysCHp4zj8z9s4s for ; Wed, 6 Dec 2017 20:00:22 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8M5F1+TRzAUpLXhKJKkb/gIG2XOshTgjWGWBbsT2sJE=; b=I6I+r3TiOkScDx JIkeeeBsm//0Yjs7J7NUPV1N6DPxq94EdE+Z5VYNWBznlgU/Xp6bsAhaItIhfftuGVs/p7w7OE25w Qqkr0KyP979yTpiPkv+eYhb0rDzcjcGv0lp2pUIct/TgTiOEGd4g2RHGCJodZCZq9m80Q8m3+JO/6 Ab7tcLXa4ZhAWQlEijLFm01eLXBxtmMGgHaYWTCDoEZTQx4wyEdB00hcRXqokjHXFtV5WIc/Bej7E GwEltaiY0eASmVveblNAkVRZGed8qwG69QwWnHGF/cUObI4g40aCKKTHUrK+v+0n/GZkZ4O0H+tFQ xFNBZ6S4rBTnje5bNJrw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eMVYs-0007DG-TD; Wed, 06 Dec 2017 09:00:15 +0000 Received: from imta22.fe.bosch.de ([139.15.243.26]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eMVXs-00068j-6J for linux-mtd@lists.infradead.org; Wed, 06 Dec 2017 08:59:20 +0000 Received: from smtp6-v.fe.bosch.de (imta23.fe.bosch.de [139.15.243.227]) by imta22.fe.bosch.de (Postfix) with ESMTP id A5173840476 for ; Wed, 6 Dec 2017 09:50:32 +0100 (CET) Received: from vsmta12.fe.internet.bosch.com (unknown [10.4.98.52]) by imta23.fe.bosch.de (Postfix) with ESMTP id CB28315801E8; Wed, 6 Dec 2017 09:48:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=de.bosch.com; s=2015-01-21; t=1512550088; bh=eQksyDOgK9eUOo6EfpSEeZh5Z0StvM2J6rFWqp5v52Y=; l=10; h=From:From:Reply-To:Sender; b=URvtAtTrKNMZU+7ZhQkHroTZbqSaIIF6I3a5fI88SoUw6c6nkOun/wFGAmlsmjWNa IesKVWUVl5RDiI4piqD81QOtJaiC1c4rrVaPdKhfF1BvYnYAn3ByK5oLPtfGkWPkfR m/26xnyO9pBifTenPsovpQz5vvLTRjIpfeHkcrB4= Received: from SI-HUB1001.de.bosch.com (vsgw23.fe.internet.bosch.com [10.4.98.23]) by vsmta12.fe.internet.bosch.com (Postfix) with ESMTP id CE9CE1B80752; Wed, 6 Dec 2017 09:50:41 +0100 (CET) Received: from HI-Z0EVG.hi.de.bosch.com (10.34.218.219) by SI-HUB1001.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 14.3.319.2; Wed, 6 Dec 2017 09:50:41 +0100 From: Dirk Behme To: , Richard Weinberger Subject: [PATCH 0/5] Add flight recorder to MTDRAM Date: Wed, 6 Dec 2017 09:50:34 +0100 Message-ID: <20171206085039.27164-1-dirk.behme@de.bosch.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-Originating-IP: [10.34.218.219] X-TM-AS-MML: disable X-TM-AS-Product-Ver: IMSS-7.1.0.1679-8.0.0.1202-23510.005 X-TMASE-MatchedRID: D6vXl0StbRSrS9MAWgPxvrttJwl7IC+WmyqQJWNsuklI7YhsiSUzzBpU JOgv093x761f9S75s1V+zocdNMkQ4duz/TmKWd6aaK+MsTwM+1mwR/wKmchi2cj0QMA/92m27fK xaM2xqkAyktOUG+7XMzNl76jsC5TwB7W827nnV40ZXJLztZviXCseSAhqf1rRWltirZ/iPP4BXJ d59uW12aS5a0PGMQ+dgDLqnrRlXrZ8nn9tnqel2DsAVzN+Ov/sDcg2f07lmk8HGs3eBWMzXa0VT yWaM2EXHg3qhgaCgzhVjbEqn5NP3Q== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171206_005912_986887_B1406653 X-CRM114-Status: UNSURE ( 6.18 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.0 (-------) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-7.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [139.15.243.26 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [139.15.243.26 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dirk.behme@de.bosch.com, manfred@colorfullife.com Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Manfred Spraul Hi, The series adds a flight recorder to MTDRAM. This allows very efficient power fail testing: From the flight recorder output, it is possible to recreate every image that might have existed between the start of the recording and the end. Obviously, a user space tool is required, it is attached as the last mail in the series. Patches: 0001-mtdram-expose-write-size-and-writebuf-size-as-module: An initial cleanup: write_size and writebuf_size are hardcoded in the source code. Convert that to module parameters. 0002-mtdram-Add-flight-recorder.patch: Initial flight recorder 0003-mtdram-Allow-to-enable-disable-flight-recorder-mode-.patch: For the preparation step, or for evaluating dumps, the flight recorder doesn't make sense. Thus allow to disable it at runtime by writing to debugfs/mtdram 0004-mtdram-Convert-the-flight-recorder-to-a-ring-buffer.patch: The initial flight recorder is very simple, cleanup 1: Convert the kernel buffer to a proper ringbuffer. 0005-mtdram-flight-recorder-Add-checksums.patch: When using tool to simulate something, there is always the risk that the issue is in the tool and not in the production code. Thus add checksums, to detect tool issues. --- Manfred