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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 58FDEC433F5 for ; Fri, 11 Mar 2022 19:32:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA2F083093; Fri, 11 Mar 2022 20:32:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="AGkx9uZ2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CBF4383AFA; Fri, 11 Mar 2022 20:32:30 +0100 (CET) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9346783093 for ; Fri, 11 Mar 2022 20:32:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-ej1-x631.google.com with SMTP id qa43so21036117ejc.12 for ; Fri, 11 Mar 2022 11:32:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=L3tqWR3ulNw8kxiuTai5JZ2qJZ7jSPAL9kz0MeDN/DY=; b=AGkx9uZ2ItEPTy1bqUCdcSHzWIDp9+6886sJQXR7CqCyFjZ9tVgmasi/o3O2hpDC3N xeZUgCt15VNFXYRkcEMhmupm6zEVCqtpLaeIVeC4s5XxL3DLtm3I4H10DFySh6Aevjcl s6K832j/NHUx1gez7dVL4vzPG05TZlYa8/4aU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=L3tqWR3ulNw8kxiuTai5JZ2qJZ7jSPAL9kz0MeDN/DY=; b=3IyEHSz9IVao9EnBKN+pfTsYYGfir577E2v3t/Rkv64CjjrjSH9fpgAzF/PWZZusbz deCQD8kTTj2Dg2ADfd662jsk1UaJXDT3RR2+rp90Cr3Jpykg+HKj4xiKdv7vpEDtlPAe ISV+FMeghR27/lQkXtjOT0lmVY5nPpPFt8OYM26r65D0yoTofbVdYQ4a50nwYC33UNF2 kLMaoSkikSVO5fN+uqTPChKMWoZ/MxkIjJCPyNj9KXPrqnHktTHJGmggQ0sxHDosrg4g u80Brnu6SpxG7XvTUrY+x/rNOxMiu2UMssVaEKfkKKzkSsvFwiwsNEpxNdJ6YJpwlicP 8WvQ== X-Gm-Message-State: AOAM5332q2ox2nDDciM3zvVhB4K3snPYKBGRUr2JwrQQuo6pGQ7XKpcN Swl1d8m1fksFPi2hpWZgfdP5qkXrbKM4GhE2AAsqPw== X-Google-Smtp-Source: ABdhPJz7LbS8NtGZ7BUTy1QtCmc2b+gV+0iSd4l7//V2nq/efb0e8LEExx/ml88pUMEnjzzRu7+7juPsKYzGOqGimV0= X-Received: by 2002:a17:907:968f:b0:6db:a3c5:ae3e with SMTP id hd15-20020a170907968f00b006dba3c5ae3emr4019738ejc.770.1647027147141; Fri, 11 Mar 2022 11:32:27 -0800 (PST) MIME-Version: 1.0 References: <20211216184448.27193-1-macroalpha82@gmail.com> In-Reply-To: From: Jagan Teki Date: Sat, 12 Mar 2022 01:02:16 +0530 Message-ID: Subject: Re: [PATCH v4 0/3] mtd: Support slc-mode for NTC CHIP To: Chris Morgan Cc: Chris Morgan , u-boot@lists.denx.de, miquel.raynal@bootlin.com, wd@denx.de, sjg@chromium.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Thu, Mar 10, 2022 at 8:57 PM Chris Morgan wrote: > > On Thu, Mar 10, 2022 at 05:30:17PM +0530, Jagan Teki wrote: > > Hi Chris, > > > > On Thu, Jan 20, 2022 at 6:44 PM Jagan Teki wrote: > > > > > > On Fri, Dec 17, 2021 at 12:14 AM Chris Morgan wrote: > > > > > > > > From: Chris Morgan > > > > > > > > Add support for slc-mode implemented in Linux for the Toshiba > > > > TC58TEG5DCLTA00 NAND and Hynix H27UCG8T2ETR NAND flash found on the NTC > > > > CHIP. This requires the addition of a paired-pages scheme, a new > > > > parameter for MTD partitions of slc-mode, and setting the correct > > > > paired-pages scheme for the TC58TEG5DCLTA00 and H27UCG8T2ETR flash > > > > chips. > > > > > > > > Changes since V3: > > > > - Rebased against master branch as of 2021-12-16. > > > > - Added slc mode support for mtdparts command. > > > > > > > > Changes since V2: > > > > - Copied upstream Linux implementation of mtd_erase to fix an issue > > > > with creating new ubi partitions. > > > > - Implemented paired page scheme and added support for Hynix flash > > > > chip. Based on a cursory reading of the datasheet it appears to use > > > > the same pairing scheme as the Toshiba chip. > > > > > > > > Changes since V1: > > > > > > > > - Updated mtd_read and mtd_write to match upstream Linux. > > > > - Additional mtd_get_master to match upstream Linux. > > > > - Removed notes about ubifs not working, because it is now. > > > > > > > > Signed-off-by: Chris Morgan > > > > > > > > Chris Morgan (3): > > > > mtd: Add support for Linux slc-mode for MLC NAND > > > > mtd: Add pairing info for Toshiba TC58TEG5DCLTA00 NAND > > > > mtd: Add pairing info for Hynix H27UCG8T2ETR NAND > > > > Do you have any updated version for this or it is final itself? > > Should be final, but I can rebase it again if need be. I've been > running this successfully for the better part of about 3 months > now with no more visible issues on my end. I never got fastboot > to talk to the mtd subsystem the way I was hoping, but in the end > was able to sidestep the issue with an swupdate based flash tool. Please rebase and send. Thanks, Jagan.