Received: by 10.223.185.116 with SMTP id b49csp5595843wrg; Wed, 7 Mar 2018 14:43:08 -0800 (PST) X-Google-Smtp-Source: AG47ELuBomb7PeIS0viljcb6dNkXTE3zDvK6d2GosOxKwHH0vNCIyJrsuc0khDOXscrpGcUADXHU X-Received: by 10.101.82.10 with SMTP id o10mr8218532pgp.271.1520462587967; Wed, 07 Mar 2018 14:43:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520462587; cv=none; d=google.com; s=arc-20160816; b=qHdslNrTv4Ujx7ghOCbaXZVx1ppMnMiJc8dX4d9LPrRtgUpRl7OYnY8rWOXsHUf3Ir /YcqZHh45iPCmlB7IP0luW9gkfm5Hwy5pvuhgOwLV0q82eYoUiu9LoSl3ZeKchwSEyUA 2TfI228OznuRDdeRF417zPeXhTjDsHCWOR2lpa2OM47zEQcUIDUGAUdMteNUfHt+kPME Hevtdv0JN1Y7shHetjq2fhCWGTN03GD7WMhLw9Ogtp64GXP7DseN1vCB+SWm/TvQNNqs VWZ8T7gXw4d+MwnoZOO15hsj/VYa4Neu/Cr0aZ0HsFwVCWlTx9ocg4W3i5e0xGmf0nVa 703Q== 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:message-id:subject:cc:to:from:date :arc-authentication-results; bh=0fgQTNMnSxbjF+1EeXKTMIwnNGJH7OcID+ZNREO+kVA=; b=fk5iRGmWPbgENJLtNXskN9fB8nxHSLlDea9s+/bnskX0S/UgbF33umLM+6JUydP44Q 3KRMJm7GbZR3sEi1H2duwvnUcxrfVeRwmdjq1+YSAmk9n1n9KJe4MvABQ7IKeGxnfkCt FhUVtf6DB2idKGng0n8QcjWfWNzvcNyMKh4GABXCN17AEkT+CP2mEXfpPE+rAQJEIV7L 0rLSofd2mUKewmxJV/j+AOiTzeLs544j4AYI6m8PJBOFAvB/BGYIKr9dnnnd8iJAAkrM UidohnSCoawP0tcEpONu57hxCCNX1adEWXL2/XuJCaQQctrfi2pfUYKPeWZokmJT8E+i 5DBw== 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 k91-v6si13632535pld.361.2018.03.07.14.42.53; Wed, 07 Mar 2018 14:43:07 -0800 (PST) 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 S934366AbeCGWl3 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 7 Mar 2018 17:41:29 -0500 Received: from mail.bootlin.com ([62.4.15.54]:56319 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933537AbeCGWl2 (ORCPT ); Wed, 7 Mar 2018 17:41:28 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 5C676206FB; Wed, 7 Mar 2018 23:41:25 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 64D132087E; Wed, 7 Mar 2018 23:40:50 +0100 (CET) Date: Wed, 7 Mar 2018 23:40:51 +0100 From: Boris Brezillon To: Pavel Machek Cc: Richard Weinberger , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, cyrille.pitchen@wedev4u.fr, marek.vasut@gmail.com, boris.brezillon@free-electrons.com, computersforpeace@gmail.com, dwmw2@infradead.org, dedekind1@gmail.com, tharvey@gateworks.com, stable@vger.kernel.org Subject: Re: [PATCH] ubi: Reject MLC NAND Message-ID: <20180307234051.479d9eed@bbrezillon> In-Reply-To: <20180307214342.GA9852@amd> References: <20180303104554.5958-1-richard@nod.at> <20180306231805.GA28183@amd> <6772577.AmT7QaWTNU@blindfold> <20180307214342.GA9852@amd> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; 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 On Wed, 7 Mar 2018 22:43:42 +0100 Pavel Machek wrote: > On Wed 2018-03-07 09:01:16, Richard Weinberger wrote: > > Pavel, > > > > Am Mittwoch, 7. März 2018, 00:18:05 CET schrieb Pavel Machek: > > > On Sat 2018-03-03 11:45:54, Richard Weinberger wrote: > > > > While UBI and UBIFS seem to work at first sight with MLC NAND, you will > > > > most likely lose all your data upon a power-cut or due to read/write > > > > disturb. > > > > In order to protect users from bad surprises, refuse to attach to MLC > > > > NAND. > > > > > > > > Cc: stable@vger.kernel.org > > > > > > That sounds like _really_ bad idea for stable. All it does is it > > > removes support for hardware that somehow works. > > > > MLC is not supported and does not work. Full stop. > > If someone manages to get it somehow work, either with hardware or software > > hacks they are on their own. > > Having it in stable is the only chance we have to get it into vendor > > kernels. > > Can you show how it meets the stable kernel criteria? They are > documented in tree. This should not be in stable. > > And I'd like to see changelog improved. Real reason MLC is not > supported is upper/lower page parts on MLC. And real fix to work with > bigger pages in UBI. Come on! Don't you think this would have been fixed already if it was that easy?! Have you looked at an MLC datasheet to see how paired pages are combined? If you had you would now that paired pages are almost all the time not contiguous, thus preventing the trick you're suggesting here. Please document yourself before doing such presumptuous statements (you can have a look at these slides if you want some details about why this is not so simple [1]). I'm definitely not saying supporting MLC NANDs in Linux is impossible, and if you're interested in working on this topic I'd be happy to help. But please don't block this patch without understanding what supporting MLC NANDs implies. [1]https://events.static.linuxfound.org/sites/events/files/slides/ubi-mlc.pdf -- Boris Brezillon, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com