From patchwork Fri Feb 23 11:55:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 1903242 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Th7lN1Q2bz23q0 for ; Fri, 23 Feb 2024 22:56:25 +1100 (AEDT) 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:Subject:Cc :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=93NFVXIL1Jzyw2xSmn7T2Ef93cb+4ue7xDNGUXGX4IU=; b=T8N4WNJyyHKZGk RuUACUl1p7LhcMxqYFAK/HH2jfYazAJalKvtfQj3cIVAP0nuZOcYKYcIgWtBEIeuw63mhjMvq30G+ 1EddmBKIIZf8VhHFK2byfGfPXB2QoA/HPU8Dpm2bHHDlNIYBLe+o2CNsiAV1ITOkISQZwou0Mylt9 gFFNmpaPPgN7wbkZGopJrK3piOEw260vUvV1/o14LnqM1BB5fMcUuqPa4Z8GafcFmAdiaF4K7AILc Ka/pFxVbspLRdUGGTLsWxrUh7YmEyBdTOmiHO1K8G2+GeSGTWJYCEmIMBQCt2//Qr1lW31qQvd287 44hru2QSEiWPLpV5eT6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdU9o-00000009EdB-3R71; Fri, 23 Feb 2024 11:56:00 +0000 Received: from relay6-d.mail.gandi.net ([2001:4b98:dc4:8::226]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdU9i-00000009Eb3-2HeE for linux-mtd@lists.infradead.org; Fri, 23 Feb 2024 11:55:56 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 4CA12C0004; Fri, 23 Feb 2024 11:55:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1708689349; 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; bh=uqPqRsroU2HM/uhxZbflZOFz5dy1nibvmQlzJ0Wiyg8=; b=haGrWRU851oapURs97ehMMkvDhF+beDfP0dmLsRcaFxuG0eQhBkXrIzZRryxny1MJ4/Vjq 5ZXhmz1JH13s0xjDy6S4XX7sl7GhvBhaKr9waUzHQjk8lhPUOwX+wtOE8h1HbMVo9peSMZ VaDBp41OlgVIEg7inDr121dYLQAhU4cIc+XNlacZ085vYnwktKBW0jQLvB6vuMP/LhFeWF U1p/Updx8nrti84FqEzCv0BCnYxjNE44ch0jlQbQg9HFunZJxBY9TjW0EgWmOjlkDzRySO FvcrgdnQCr4hM9dEK38D0Frd/W81lpZiAHHe7V6cts86EoCBBjrjUy0BE4F0JA== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , Cc: Thomas Petazzoni , Julien Su , Jaime Liao , Jaime Liao , Alvin Zhou , Christophe Kerello , eagle.alexander923@gmail.com, mans@mansr.com, martin@geanix.com, =?utf-8?q?Sean_Nyekj=C3=A6r?= , Miquel Raynal Subject: [PATCH 0/3] mtd: rawnand: More continuous read fixes Date: Fri, 23 Feb 2024 12:55:42 +0100 Message-Id: <20240223115545.354541-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-GND-Sasl: miquel.raynal@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240223_035554_971272_68CA33BF X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello, Following Christophe report I manually inserted many different conditions to test the logic enablingand configuring continuous reads in the core, trying to clarify the core and hopefully fix it for re [...] Content analysis details: (-0.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [2001:4b98:dc4:8:0:0:0:226 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 T_SCC_BODY_TEXT_LINE No description available. 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: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hello, Following Christophe report I manually inserted many different conditions to test the logic enablingand configuring continuous reads in the core, trying to clarify the core and hopefully fix it for real. I am pretty confident regarding the first patch but a bit more in the fog for the second/third. Even though I'm pretty sure they improve the situation there might still be corner cases I don't have in mind. Link: https://lore.kernel.org/linux-mtd/20240221175327.42f7076d@xps-13/T/#m399bacb10db8f58f6b1f0149a1df867ec086bb0a Cheers, Miquèl Miquel Raynal (3): mtd: rawnand: Fix and simplify again the continuous read derivations mtd: rawnand: Add a helper for calculating a page index mtd: rawnand: Ensure all continuous terms are always in sync drivers/mtd/nand/raw/nand_base.c | 77 +++++++++++++++++++------------- 1 file changed, 47 insertions(+), 30 deletions(-)