Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5017577rwb; Wed, 21 Sep 2022 01:52:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5HpGDU2Lrd+CxB61zGwvdnS3gL5PjMR3n8/sQ5NJSJFUUZlntLsPjwngjnkEWBzAHg78gg X-Received: by 2002:a05:6402:3890:b0:451:ef52:8f9e with SMTP id fd16-20020a056402389000b00451ef528f9emr24242618edb.107.1663750327590; Wed, 21 Sep 2022 01:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663750327; cv=none; d=google.com; s=arc-20160816; b=pCqFMsgFl8N4Lu772J9rOiL4jXhJEUAwV8zlh8P8jKnHmyLAv+D3y5UOQ+uv49aBuK /rbtToUJaCu/ZsnftcTut3OVmS7Vy4+38xQvVk2js7CMP4hjtpBJjZhhW8OeS5WhECU1 KH6eA+KzhIOFdmZsgbV2WHOjGNNRclOwGpDFREnxL8QlViHhXi/bubIqQqNO1MFPhnfd QkZu17/VIjnpjr8SH4S72wNbGK/Cz78frNQpAEtvI8mwuIIvtRKqDWvJ/J1qMvmTX3xz gMf5w6kUCHjuu3NzThyEI3Hx3F3W6nmeE9ttqXBz2czlpq9VOsGCMIstNav/0a0250oh sRUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RkIYDz0g1aDOn6XHJK7GdoNw26KyCG2dLZgmn/ut9Q8=; b=mZrlZ/ovkCLlo4r7cfH0OMY8m1qlC/yIiugF+wRr3mR4HOzOLow3y8FlRyGBXiAfqX GgzvZeBTnRo34Oi4vxmc3JqrWEynIC2sT/quRGVbAoFRIChjpB52Qj6dd71bI6wHuU0G zegEp4TTHKS6bbZmqTkgoeI8KxWlshJA3FAzLR+fezwT9p8YYAzWGn20rUPvhQN34cgP S7L83LX9G8+QaQmjIkbYV6sL4h5ysY3+Y3mL5TO3DTCL73LyyNaDjHRsyf3kzfT4MjvH iQu3BeT35bI8rM7p1PpCtxi/M1fX3FTeRIvkc91Y49/4gDyDKVrAHqXI/EFwJb3RALRu gPtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="YJK5n+/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k21-20020aa7d8d5000000b0044f020a2df0si1719096eds.290.2022.09.21.01.51.42; Wed, 21 Sep 2022 01:52:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="YJK5n+/q"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231423AbiIUIlf (ORCPT + 99 others); Wed, 21 Sep 2022 04:41:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231310AbiIUIlZ (ORCPT ); Wed, 21 Sep 2022 04:41:25 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 774FF67465 for ; Wed, 21 Sep 2022 01:41:24 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 09DE8FF807; Wed, 21 Sep 2022 08:41:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1663749683; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RkIYDz0g1aDOn6XHJK7GdoNw26KyCG2dLZgmn/ut9Q8=; b=YJK5n+/qK2TnS6XJ2Gmp4n7EtE/tOjmztMshZcUB51PzZR4mosZT5tLStt650DlOB0UL2Z WSTh9CDEeROZNuRQKV7HrtP/BkqrVl2GwQ5WBIDYpD/XM3eq+leZR9Wv2BtSapaWWcJJxa eWOFhz1BeM5/jFmKQD5PFaHfbFUrzqBauYRGbcyO78oBbzwclh9Dm8JtehTcEoThN0rTrW Z8kIeumwURgOLtlmnFUWh9dmjbHoGfrqBQU/RGzgL7ZiacYGVxq1+YcVkWES8AxirZWNlY U2v57beoNmzYkTP50h5tLbcT9GMeNypEYHNuhxBLunGCzpuDKkGm2T6oK3bhVw== From: Miquel Raynal To: =?utf-8?b?TWljaGHFgiBLxJlwaWXFhA==?= , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: Boris Brezillon , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/4] mtd: track maximum number of bitflips for each read request Date: Wed, 21 Sep 2022 10:41:20 +0200 Message-Id: <20220921084120.733357-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220629125737.14418-2-kernel@kempniu.pl> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'65394169bdae073bfb2c6816f5bf095bd7d53e61' Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2022-06-29 at 12:57:34 UTC, =?utf-8?b?TWljaGHFgiBLxJlwaWXFhA==?= wrote: > mtd_read_oob() callers are currently oblivious to the details of ECC > errors detected during the read operation - they only learn (through the > return value) whether any corrected bitflips or uncorrectable errors > occurred. More detailed ECC information can be useful to user-space > applications for making better-informed choices about moving data > around. > > Extend struct mtd_oob_ops with a pointer to a newly-introduced struct > mtd_req_stats and set its 'max_bitflips' field to the maximum number of > bitflips found in a single ECC step during the read operation performed > by mtd_read_oob(). This is a prerequisite for ultimately passing that > value back to user space. > > Suggested-by: Boris Brezillon > Signed-off-by: Michał Kępień Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel