Received: by 10.223.185.116 with SMTP id b49csp4770533wrg; Wed, 7 Mar 2018 00:13:48 -0800 (PST) X-Google-Smtp-Source: AG47ELtl7v1iNU0uuBRS6QnnhGN9xEZFYGQHyGb8hE4Wvoc3Ylj3FMfPY3laoSGP1poA76YlDRZG X-Received: by 10.99.55.70 with SMTP id g6mr17463407pgn.284.1520410427994; Wed, 07 Mar 2018 00:13:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520410427; cv=none; d=google.com; s=arc-20160816; b=JjO05Y0zpkJZbaWGH+v2lP9XaEz5FP0Xds+DuOdZ+mtlxL0+lsWYkGeNdnVZOQdhvi rQgV4ItK7Df8voBAlBIipO8UToEgDlIXv2SjhvCOTMNKokaBxkgS5wmmRajK+K2xM3Sr pgo8FspRtkJ7VL9g+hNNyfkz7PnlgoGN1IEAv2lQhEgVXlEgs319b4OgmiWXi/EPm37B gLqHkKKW7n0F9+MkcT7va/wISKL/0rxiYyqQmZAom+XWT+PrgAHQlSnI1f0eseDICnwS Gwg/bLRzV6MJ8zP2x4or7pagbXWtK+rQss2+4U4sE03wHjmhWSK2Zh2TL5TyOFMWSGex gqCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=/djtCjwOBadZGIMktBS0wXNUPkiztTBZ+T4bpd9fApM=; b=GBgwxMZ/XWUy6ou+SxYYKxPbtTTCI2pNUs6lqDDAkkIppHepfI+1eCovnMK/hsiseu AfqjjXPo3SSy69vUGFknTZi4eXX6lMGTn3sHM6YTRRhzArm4n3+aP7I64LdKB+rv74TK wcGwoN7yJhIONOvQQSzuAr3iczQgmjQQyaH5YxOB4vcqFd8LFtFr5j8w5II25QTyW4P4 J876IWziQognCN2zAhLyh2n2tcseFJapxr0GrXEZgFXhqOLGVSMUG0VmucldOX/lDHgW H5KaB1OHy1DqdfAyu/xcSb/4FX917KM0oC4pis+RA6938z91nC8ESdZ/hbVtDSuTBW4b H7WA== 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 j14si283107pfn.150.2018.03.07.00.13.33; Wed, 07 Mar 2018 00:13:47 -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 S1751151AbeCGIMk convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Mar 2018 03:12:40 -0500 Received: from mail.bootlin.com ([62.4.15.54]:57378 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750989AbeCGIMi (ORCPT ); Wed, 7 Mar 2018 03:12:38 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id AC2D62075C; Wed, 7 Mar 2018 09:12:35 +0100 (CET) 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 bbrezillon (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 2F3EB203A5; Wed, 7 Mar 2018 09:12:35 +0100 (CET) Date: Wed, 7 Mar 2018 09:12:36 +0100 From: Boris Brezillon To: Ben Hutchings Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Sascha Hauer , Richard Weinberger , Boris Brezillon , Sasha Levin Subject: Re: [PATCH 4.4 03/34] mtd: nand: gpmi: Fix failure when a erased page has a bitflip at BBM Message-ID: <20180307091236.741b7fd2@bbrezillon> In-Reply-To: <1520371350.23626.23.camel@codethink.co.uk> References: <20180302084435.842679610@linuxfoundation.org> <20180302084436.171257760@linuxfoundation.org> <1520371350.23626.23.camel@codethink.co.uk> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 06 Mar 2018 21:22:30 +0000 Ben Hutchings wrote: > On Fri, 2018-03-02 at 09:50 +0100, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.  If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Sascha Hauer > > > > > > [ Upstream commit fdf2e821052958a114618a95ab18a300d0b080cb ] > > > > When erased subpages are read then the BCH decoder returns STATUS_ERASED > > if they are all empty, or STATUS_UNCORRECTABLE if there are bitflips. > > When there are bitflips, we have to set these bits again to show the > > upper layers a completely erased page. When a bitflip happens in the > > exact byte where the bad block marker is, then this byte is swapped > > with another byte in block_mark_swapping(). The correction code then > > detects a bitflip in another subpage and no longer corrects the bitflip > > where it really happens. > [...] > > This seesm to be a bug fix for commit bd2e778c9ee3 "gpmi-nand: Handle > ECC Errors in erased pages". That's not in 4.4 so the bug fix is not > needed, though it doesn't appear to do any harm. I wonder why the fix was backported to stable releases in the first place. AFAICS, there's no Cc-stable or Fixes tag in the original commit. It's probably something in the backport-to-stable process I'm not aware of. Anyway, not an issues since the changes seems to be harmless. -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com