Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3641770imm; Mon, 2 Jul 2018 02:57:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeRu2lajisQwMhHVdnuuhMMVddPhQ7oHuuPKGW24Qs1ZFPYv9i3RR8hOjVT3U+iYdk1sUXK X-Received: by 2002:a65:618c:: with SMTP id c12-v6mr19046031pgv.411.1530525425627; Mon, 02 Jul 2018 02:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530525425; cv=none; d=google.com; s=arc-20160816; b=ZW8j9fZs3p8bvQO1NppD42ndN0eJmC7PVtqMTWppVuVdnblOr+T4BEjdIL/oNJZwvH yDcjB9he3wj1/eNNbWNKRTrKkDOASFE6ChiA+p/Ovy77zQSwxCZQ7U+WaDTt590ZjscW HNC6mWxN5SXWiI8Z7DRL7YvT649XvWdXDHNq8vFEo2RQ4xqv9RwIUs2A4rRWwuEi7WPh 11lmxozfs7YQ3+gq2bnXZ7C61Wbl+3fMpouzJ5kiQEbbOP+8nA9nPjlnqGLXNKqzfsK/ ga3lVdrla8oQUzHyZumQSQVg7gR1EuO/rC7B2N4h46VldrswNqCJOynK5nU0rVUpvch2 9tCQ== 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 :arc-authentication-results; bh=GbCXnge7rMn1t6B3U6DEPMT/pqNdJnEUnvb3E+FB3PE=; b=OPluJre+9UdWfBesF/wpB2E/E9VHBAIjqKNbh30nxmYChb7UdWubyOPNButy/geSGm PJQxMiSaUSRuzLOzJI0FfneY8fImBSWjQ7/sHoBaGK9hhWdB/qWy24RpmXQfuaYHJ/iv H495KKbx3qFjAispMNvKWDIQ1Vk684V7n8lh4zWcV51ccpZCUqtF7yLlf3uFDgcr/TdW +Go92hz+PBKnMWZeT8oGrGP9BPsF10Fi/XskGmpFfek6+BNCsGuH9FQ9jVUWOQREgALN Cajlv9ipZE3K578/ccdr05Q9IbYrqTqjWWM/iYgJZ9F15vs1nkpnLT0F4ZEFmv44T5xZ /ywg== 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 f16-v6si320948pff.13.2018.07.02.02.56.51; Mon, 02 Jul 2018 02:57:05 -0700 (PDT) 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 S1754509AbeGBJok (ORCPT + 99 others); Mon, 2 Jul 2018 05:44:40 -0400 Received: from mail.bootlin.com ([62.4.15.54]:50823 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752893AbeGBJoh (ORCPT ); Mon, 2 Jul 2018 05:44:37 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 3B394207DA; Mon, 2 Jul 2018 11:44:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (AAubervilliers-681-1-39-106.w90-88.abo.wanadoo.fr [90.88.158.106]) by mail.bootlin.com (Postfix) with ESMTPSA id EC001206ED; Mon, 2 Jul 2018 11:44:24 +0200 (CEST) From: Quentin Schulz To: dedekind1@gmail.com, richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@bootlin.com, marek.vasut@gmail.com Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Quentin Schulz Subject: [PATCH v5 0/2] ubi: add possibility to skip CRC check for static UBI volumes Date: Mon, 2 Jul 2018 11:43:49 +0200 Message-Id: X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some users of static UBI volumes implement their own integrity check, thus making the volume CRC check done at open time useless. For instance, this is the case when one use the ubiblock + dm-verity + squashfs combination, where dm-verity already checks integrity of the block device but this time at the block granularity instead of verifying the whole volume. Skipping this test drastically improves the boot-time. mtd-utils patches are already merged. See: http://git.infradead.org/mtd-utils.git/commit/9095d213f536aec0f3c37f6666177f3b907afde7 http://git.infradead.org/mtd-utils.git/commit/7b4a65a27d2621b58c634d02c6a068ed9562383c http://git.infradead.org/mtd-utils.git/commit/5e9bc0daa41d84ce5de81c4a1665d65f51893c10 http://git.infradead.org/mtd-utils.git/commit/8ba21ab75b41a1f9a6e27eed3ea80c9829669c5a I forgot to address Artem's comment in v4, sorry for the noise. Thanks, Quentin v5: - add comment for vol_cdev_write ignoring skip_check flag, v4: - add a valid flags mask and check the given volume flag is valid when doing verify_mkvol_req(), v3: - fix a few typos, v2: - use volume flags instead of arguments on the kernel command line as suggested by Richard, Quentin Schulz (2): ubi: provide a way to skip CRC checks ubi: expose the volume CRC check skip flag drivers/mtd/ubi/cdev.c | 11 +++++++++++ drivers/mtd/ubi/kapi.c | 2 +- drivers/mtd/ubi/ubi-media.h | 6 ++++++ drivers/mtd/ubi/ubi.h | 4 ++++ drivers/mtd/ubi/vmt.c | 12 ++++++++++++ drivers/mtd/ubi/vtbl.c | 3 +++ include/uapi/mtd/ubi-user.h | 18 ++++++++++++++++-- 7 files changed, 53 insertions(+), 3 deletions(-) base-commit: 69877f06915f1c7a9f1704442993bcc12c13ace2 -- git-series 0.9.1