Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp464214ybm; Thu, 28 May 2020 07:19:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0KhAmnqARqb16xZwU8FAcvWtM19pN7bAUw7saFF9vSMLrpRozD4nMmrcX+e3UhrTQXt9s X-Received: by 2002:aa7:cf17:: with SMTP id a23mr3515125edy.128.1590675598500; Thu, 28 May 2020 07:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590675598; cv=none; d=google.com; s=arc-20160816; b=CjulfFIi/UWgkS4ezXhQdEAQu9VKHirbP3lkkcUjoHSuzN2+9u1xdkLIe9F/LysAt4 72a6eemRUp0jQjrz6MkgW2bEYwEuSY/i7qR+EA8cIRv7KyCEff07o4VPGjUQAL298OzU Aq6Ew6etDYFYhxVNhTmOKL3U3fp2XHGDFB63lhUysYJBXJZpBKf0qbXnTeDn1XC3eSWH 4fKz3/Q60lZZCjE3gH9JQ5bjNh45qHnOc33pLWU3o7cQO7BB8Iv98dYz6tFcQT8UIQbe nYMAAJQ1oYoq+Tl4HrEztONd46HZY7k3mYkqvk1QuyPWuno4x+YRvI/zOQr6vwpo8nYv TfLA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=47OATELzdatA1HggQw3A54kP6MuolUXcSmh78zyfPRA=; b=lWxg8saCTBWV/aneiwNb3atQLTaa6mf2MuGooADHWtw+lBd6WMhu3fM63ypZWdx25G D+ct/DM0jLNWbgdRPMJHxJhef6iyOsFTn5maSod5bDREVNMmk0C9QG0G5nNbuh/21vSK 8TMF57Pjl9eQV/mV9H+NyCBPHwBbbgZKKbus1KHc6pUQVNxwFeqLC20z840jRevEMh/Y MeO+5EtDYZMLXbBWyAOLpy9tGPLc2ejZqXPcTK/5c8k5ZNd111thpiM6VhcM2PZbczyr 60vu+jb6hWx+nrCBC8hlcSq9BfLRuK93LVcyMjC+axWO3S5zkuyyZtd3hz14vXdHoTuF nnqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JSs0Frfy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t4si2525238eds.217.2020.05.28.07.19.35; Thu, 28 May 2020 07:19:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JSs0Frfy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390954AbgE1OPI (ORCPT + 99 others); Thu, 28 May 2020 10:15:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390932AbgE1OPG (ORCPT ); Thu, 28 May 2020 10:15:06 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 230D4C05BD1E for ; Thu, 28 May 2020 07:15:06 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id s8so28026779wrt.9 for ; Thu, 28 May 2020 07:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=47OATELzdatA1HggQw3A54kP6MuolUXcSmh78zyfPRA=; b=JSs0Frfy4Zpy9TRTpQojoYjtuRJ3DHViQmWtiRbFxhQVKOt+1z5Rohk+YN37hav4l3 RULlQX+tTLjgBI39buU3w9qzH6eI9DG28rTgs2uVGMLXOB3U53SgaLlbqqZyeyydeB4O LdNxgofLdtUzZYMB/nYE0pUDOiOUzIj+n1wRVP/cm79I3aJpCkDB5oK4QOgHJWulI4fH aLgN2Irs3NSKEvJC7kERtTTPqj9m9scgRBOmO0En2yDQ62xtbyJUCpkmR1IFYxIZhyB7 W9IPUWC9io+3zgbtkEiLcHXxy3VCwqCJl+vWY4wYGhPLVVLw00snMYOh/8fVC1x4wVP3 c0bg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=47OATELzdatA1HggQw3A54kP6MuolUXcSmh78zyfPRA=; b=O3zc43Sfo4+dn6TqsQkBJjRqDiR/twWHIvJpZwC+fxbGPi2Lf12riGH17B0haIku1f 7SE/mi3lBtErSALTNH7AXs5yoo8kk9h88gpyvh+rFURrW+A6o5IzsBppnBklT8/BN2h+ 35GCsUmTxEzxuQpp9U0hCXAKwB4jxST2aVRFS42Mdhfddyrc08e9MZs2c8Q9UFZbJKCh U2Y2r0Vj+gkvEFwLCroTsPO11AR21M8Fd5q2mp2puZaRRp9a0ZLzXjh8bvW0UhAZ8BpH CYgSKPT6Oist7BD3cF0DK3h+ubrYKjrZMKTqN8kqN10bdytC0W83iNh9wWrbr77QZ4qD m2Qg== X-Gm-Message-State: AOAM532ZjNP349y5wpUayg10Mdn6woPm0gSSG/W0IqEN+R8/d0ZdPFIQ e+b48zANfpZbUt70Ej5mJnY= X-Received: by 2002:a5d:4d89:: with SMTP id b9mr4059264wru.210.1590675304940; Thu, 28 May 2020 07:15:04 -0700 (PDT) Received: from ubuntu-laptop.micron.com ([165.225.203.62]) by smtp.googlemail.com with ESMTPSA id r11sm6257982wre.25.2020.05.28.07.15.02 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 May 2020 07:15:04 -0700 (PDT) Message-ID: <829d76189beff5a50ddc56123d22bff3aa6a3378.camel@gmail.com> Subject: Re: [PATCH v6 0/5] Micron SLC NAND filling block From: Bean Huo To: miquel.raynal@bootlin.com, vigneshr@ti.com, s.hauer@pengutronix.de, boris.brezillon@collabora.com, derosier@gmail.com, Richard Weinberger Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Bean Huo Date: Thu, 28 May 2020 16:14:52 +0200 In-Reply-To: <20200525121814.31934-1-huobean@gmail.com> References: <20200525121814.31934-1-huobean@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi, Richard On Mon, 2020-05-25 at 14:18 +0200, Bean Huo wrote: > After submission of patch V1 [1] and V2 [2], we stopped its update > since we get > stuck in the solution on how to avoid the power-loss issue in case > power-cut > hits the block filling. In the v1 and v2, to avoid this issue, we > always damaged > page0, page1, this's based on the hypothesis that NAND FS is UBIFS. > This > FS-specifical code is unacceptable in the MTD layer. Also, it cannot > cover all > NAND based file system. Based on the current discussion, seems that > re-write all > first 15 page from page0 is a satisfactory solution. This patch has overwrite page0~page14, damage EC and VID header boths. I know this is safe for UBIFS, even fastmap is enabled (you fixed this in (ubi: fastmap: Correctly handle interrupted erasures in EBA)). Now, how about jffs2? Thanks, Bean