Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3041236ybd; Fri, 28 Jun 2019 01:45:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwN601og+nGSj8dWpZZ+GmCaM9O9UJeyIiyDiVfk5B1Rar20469/aC1v2O6lkfRNWmJsN6K X-Received: by 2002:a17:90a:258b:: with SMTP id k11mr11217724pje.110.1561711508837; Fri, 28 Jun 2019 01:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561711508; cv=none; d=google.com; s=arc-20160816; b=UF9ypXc7eDQtrYvScEkXT86EZz0tdty0hLCh6mQybb2fFqnqo5MDgqN3RrK0bhq3Wq Lpp/4OhvGlEMWIWpTP/H/X1cqIH1lqTo5zem3K0ZYCJ32fsgbZWlr6kSTi2S20HEaQX8 AEVTyHTP4BIy1QlJ6YmgW6lwQFpTmqP8jM/Xw6XBa31MFvNV7emchtmnBtqzZYFoI87y CpFooVEzF994Rg4Au6pxgoAwAmxUJ8ulq7Ws8A119yXF2xmMxDB8khjwFsVclHs9qWUL 3h5TYmhvFT5QfIkii7f9cBaTMReGZ4kKhpYZgq9RqQ16JDM8dVDBYnqOgbsZcQ991FVf qg6w== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=uy8Wwfoqm+1EyzA7tDsu03JjlcPsNcRaBY7vL4kV7Cc=; b=lfP7Zs+/SmKZqg2pMoSsoxIl8zHgEb4HGlkFfG/FJT3XitEf6e90E1y9PPEYHKHQ1N 75bVbjf+j8eKD7mZzrBfmeINVHhbIwqORfRzQ2jHCs3eyvqyjVGymPHlPg4jT0GxgjbG LbBedbzATiXLcuerihyygML3Tcz3GSneuMUtvj5MeoniCZv2Vz8llQXPF35GbWW04bE0 uumsglYfta2XrMKxs/2eVX3gctdgoGm1ygcWsp+UDUgfhMEyeklFEp6490VH570dHIiO 4CjyuYqqkgPecPk1Sfbb8ekQkARvV4l4TSdTpm9PdXoarqjvyUI7JUgW9y/adPk9LAi2 oZEQ== 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 1si1657372ply.180.2019.06.28.01.44.52; Fri, 28 Jun 2019 01:45:08 -0700 (PDT) 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 S1726566AbfF1Ioh convert rfc822-to-8bit (ORCPT + 99 others); Fri, 28 Jun 2019 04:44:37 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:53737 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbfF1Ioh (ORCPT ); Fri, 28 Jun 2019 04:44:37 -0400 X-Originating-IP: 86.250.200.211 Received: from xps13 (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: miquel.raynal@bootlin.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id D638BFF813; Fri, 28 Jun 2019 08:44:23 +0000 (UTC) Date: Fri, 28 Jun 2019 10:44:23 +0200 From: Miquel Raynal To: masonccyang@mxic.com.tw Cc: anders.roxell@linaro.org, bbrezillon@kernel.org, broonie@kernel.org, christophe.kerello@st.com, computersforpeace@gmail.com, devicetree@vger.kernel.org, dwmw2@infradead.org, jianxin.pan@amlogic.com, juliensu@mxic.com.tw, lee.jones@linaro.org, liang.yang@amlogic.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marek.vasut@gmail.com, paul@crapouillou.net, paul.burton@mips.com, richard@nod.at, stefan@agner.ch, vigneshr@ti.com Subject: Re: [PATCH v4 1/2] mtd: rawnand: Add Macronix Raw NAND controller Message-ID: <20190628104423.5eb3058a@xps13> In-Reply-To: References: <1561443056-13766-1-git-send-email-masonccyang@mxic.com.tw> <1561443056-13766-2-git-send-email-masonccyang@mxic.com.tw> <20190627193635.29abff43@xps13> <20190628091836.3148d450@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; 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 Hi Mason, masonccyang@mxic.com.tw wrote on Fri, 28 Jun 2019 16:31:16 +0800: > Hi Miquel, > > > > > > > > > Add a driver for Macronix raw NAND controller. > > > > > > > > Could you pass userspace major MTD tests and can you > attach/mount/edit > > > > a UBI/UBIFS storage? > > > > > > mtd_debug passed and using dd utility to read and write > > > with md5sum checking passed. > > > > Please don't use dd, use nanddump/nandwrite/flasherase/nandbiterrs and > > run the other tests from the mtd-utils test suite (available in > > Buildroot for instance). > > > > Got it. > > But may I know why 'dd' utility is not preferences ? > I generate a random data file and write to Flash by > using dd with bs=page size and read data back from Flash. > Checking data by md5sum. Because dd works on block devices. MTD devices are way different. You cannot write to OOB with dd. You cannot erase before write with dd. And dd does not know about bad blocks. Please simply avoid using dd. > The write and read testing data size is easily adjustable. So are the MTD utils. Thanks, Miquèl