From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C48C2C5AC7A for ; Fri, 7 Aug 2026 14:01:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:References :In-Reply-To:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wrW+Z1cC0ML7pdOAX4Qza0O9LIktp6/xpT9i/6ENvPo=; b=U02fnRGyWnJRHG AuN9jIFZ3S4Y7UJXboxxDL0K2h15tMBIBNOWOj7s6wQPe4gbgH0o833D7jX9ekf3F6GOiZsRlEuMo Au7eef1Y12Hb0rKJDeQayZtr844uh+R6NJ/oXEata0XDj5/gSP2V/kJKIRH9Y2ih9d31CEPTvZTFR J8U3bjL1Tl/+oqPlEPRvDBMR/Nu2nw2YqW5jDoGpQxUT388981RU9wdcmZRYHoQnwa+73S04M8d5/ xQ1Ctwd5Nn9k8Y3lg3xHFNsYDuXVk4yl8s+8aw/e7y//39LAMgeRilrOAj5P1vehzQcmRLtR66Obi Gbw/m1OLTQosYkHtnWog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wsL8b-00000008DlC-1cjt; Fri, 07 Aug 2026 14:01:29 +0000 Received: from smtpout-03.galae.net ([185.246.85.4]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wsL8Y-00000008Dkn-0dFD for linux-mtd@lists.infradead.org; Fri, 07 Aug 2026 14:01:27 +0000 Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id A081E4E4113C; Fri, 7 Aug 2026 14:01:24 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7596D603F0; Fri, 7 Aug 2026 14:01:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E49A911C3795D; Fri, 7 Aug 2026 16:01:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1786111279; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=8RffSfqXyqSVxqzscXTkTjqd76AQPP3M+wo2+zNYwfo=; b=byG7ApHXk4jnf4WYK3tg1LylDfclX/KCeVEJJ9QumgdmrxMonwP7doNFwZiVJM0V+jZk9q S4/q+a/sbGQypLZyn7uP/9zHeXzpoTmY31yPXS7Ghb3AHWPKw9i62pylxhx5QT/AHPj/0x vmKZPh7oD2EruiBylijKdnylSIeibQ835DM/6A7jcdKx4XaUcNyWt5FiDeW6Qu3qX3TRtk f2fcflSmcEA3FJrTtOW+tmKrqtFISbFoSteXYEyh1fqp9aC+XXB61e+9B9LokE7ERO3OCt INnQApxc9+TDvnfJtQegWvOg5bwI1apQn9sb1TLyr8r2NcKxh/mhYzlDTZYYIw== From: Miquel Raynal To: Bastien Curutchet Cc: Richard Weinberger , Vignesh Raghavendra , Michal Simek , Thomas Petazzoni , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 0/4] rawnand: pl35x: Implement mixed ECC In-Reply-To: <20260723-mix-ecc-v1-0-7361c3baeb07@bootlin.com> (Bastien Curutchet's message of "Thu, 23 Jul 2026 15:41:00 +0200") References: <20260723-mix-ecc-v1-0-7361c3baeb07@bootlin.com> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Fri, 07 Aug 2026 16:01:17 +0200 Message-ID: <87cxvuav2q.fsf@bootlin.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260807_070126_350112_C4859CA9 X-CRM114-Status: GOOD ( 12.63 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org SGVsbG8gQmFzdGllbiwKCk9uIDIzLzA3LzIwMjYgYXQgMTU6NDE6MDAgKzAyLCBCYXN0aWVuIEN1 cnV0Y2hldCA8YmFzdGllbi5jdXJ1dGNoZXRAYm9vdGxpbi5jb20+IHdyb3RlOgoKPiBIaSBhbGws Cj4KPiBUaGlzIHNlcmllcyBhZGRyZXNzZXMgdGhlIFBMMzUzIGVycmF0YSAiU0xDIEVDQyBtaXNz ZXMgc2luZ2xlIGVycm9yIHRvCj4gYml0MCBieXRlMCBhbmQgZmFpbHMgdG8gZGV0ZWN0IHNvbWUg ZG91YmxlIGVycm9yIGNhc2VzIiAoc2VlIDcyMTA1OSBpbgo+IFsxXSkuCj4KPiBUaGUgRUNDIEhX IGVuZ2luZSBpcyBrbm93biB0byBiZSBicm9rZW4gb24gdGhpcyBjaGlwLCBpdCBmYWlscyB0byBk ZXRlY3QKPiBzb21lIGJpdGZsaXBzIG9uIHJlYWRzLgo+Cj4gVGhpcyBzZXJpZXMgaW1wbGVtZW50 cyBhIG1peGVkLUVDQyB3a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g== From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD59A385D7C for ; Fri, 7 Aug 2026 14:01:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786111295; cv=none; b=LHJ/TIL/PDW28xbSchGzAe79EgEoJCJBHbEkd4zbFkoYS0flSO7fDXeMZHQRsMyweK1waKjqDIuRHp4El813ckm4Q6QQSHOX5cJA0nTQNYh/qCgPvvn0rNQauHGEOyMLlB7wP3hKJcozOwrXNgws3/1kapHIF29jrxHTsTbSA5A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786111295; c=relaxed/simple; bh=8RffSfqXyqSVxqzscXTkTjqd76AQPP3M+wo2+zNYwfo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Np69qNFkAXJMI5/ihuQrpTMoDwcTufA26pe0t5ohiJku9JisFS6MB1AleftjM8VD8Os+90mbfGhI+wONnaUYnP6MR2bp8yrrpRbAqm9IA2LiHuhuXHsGeT2TSqR+VwbJMc3uueLhuPvrmD5u/L8zm8DXNnME/fdPndMFNidNxqU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=byG7ApHX; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="byG7ApHX" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id A081E4E4113C; Fri, 7 Aug 2026 14:01:24 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7596D603F0; Fri, 7 Aug 2026 14:01:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E49A911C3795D; Fri, 7 Aug 2026 16:01:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1786111279; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=8RffSfqXyqSVxqzscXTkTjqd76AQPP3M+wo2+zNYwfo=; b=byG7ApHXk4jnf4WYK3tg1LylDfclX/KCeVEJJ9QumgdmrxMonwP7doNFwZiVJM0V+jZk9q S4/q+a/sbGQypLZyn7uP/9zHeXzpoTmY31yPXS7Ghb3AHWPKw9i62pylxhx5QT/AHPj/0x vmKZPh7oD2EruiBylijKdnylSIeibQ835DM/6A7jcdKx4XaUcNyWt5FiDeW6Qu3qX3TRtk f2fcflSmcEA3FJrTtOW+tmKrqtFISbFoSteXYEyh1fqp9aC+XXB61e+9B9LokE7ERO3OCt INnQApxc9+TDvnfJtQegWvOg5bwI1apQn9sb1TLyr8r2NcKxh/mhYzlDTZYYIw== From: Miquel Raynal To: Bastien Curutchet Cc: Richard Weinberger , Vignesh Raghavendra , Michal Simek , Thomas Petazzoni , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH 0/4] rawnand: pl35x: Implement mixed ECC In-Reply-To: <20260723-mix-ecc-v1-0-7361c3baeb07@bootlin.com> (Bastien Curutchet's message of "Thu, 23 Jul 2026 15:41:00 +0200") References: <20260723-mix-ecc-v1-0-7361c3baeb07@bootlin.com> User-Agent: mu4e 1.12.12; emacs 30.2 Date: Fri, 07 Aug 2026 16:01:17 +0200 Message-ID: <87cxvuav2q.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Hello Bastien, On 23/07/2026 at 15:41:00 +02, Bastien Curutchet wrote: > Hi all, > > This series addresses the PL353 errata "SLC ECC misses single error to > bit0 byte0 and fails to detect some double error cases" (see 721059 in > [1]). > > The ECC HW engine is known to be broken on this chip, it fails to detect > some bitflips on reads. > > This series implements a mixed-ECC where the HW engine is used on writes > and reads are done by software. To make it work, the software ECC has to > use the same layout for the ECC bits than the HW engine. Patches 1 & 2 > add the PL35x ordering to the available orderings for soft ECC. Patches > 3 & 4 make use of this ordering to implement the mixed-ECC for the PL353 > controller. > > Note that this series is based on top of nand/next. > > [1]: https://developer.arm.com/documentation/rlnc000227/a > > Signed-off-by: Bastien Curutchet > --- There are several interesting Sashiko findings for this series, can you please have a look? Thanks! Miqu=C3=A8l