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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25768C433FE for ; Thu, 10 Nov 2022 19:44:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230424AbiKJTo5 convert rfc822-to-8bit (ORCPT ); Thu, 10 Nov 2022 14:44:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229567AbiKJTo4 (ORCPT ); Thu, 10 Nov 2022 14:44:56 -0500 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C1E81572F; Thu, 10 Nov 2022 11:44:55 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 5757261B8B4D; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id nGPtvOKwhp3V; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0B4A66226249; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yQrYoj6s4SOb; Thu, 10 Nov 2022 20:44:53 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id DC57B61B8B4D; Thu, 10 Nov 2022 20:44:53 +0100 (CET) Date: Thu, 10 Nov 2022 20:44:53 +0100 (CET) From: Richard Weinberger To: Daniel Golle Cc: Jens Axboe , Miquel Raynal , Vignesh Raghavendra , Davidlohr Bueso , Matthew Wilcox , "Martin K. Petersen" , Chaitanya Kulkarni , Ming Lei , linux-block , linux-kernel , linux-mtd , linux-efi Message-ID: <1691046252.219046.1668109493753.JavaMail.zimbra@nod.at> In-Reply-To: References: Subject: Re: [PATCH v4 4/5] mtd_blkdevs: add option to enable scanning for partitions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: mtd_blkdevs: add option to enable scanning for partitions Thread-Index: qesM6z2xTDVbTIYuNhENmoux2tHhiA== Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org ----- Ursprüngliche Mail ----- > Von: "Daniel Golle" > + > + if (!IS_ENABLED(CONFIG_MTD_BLOCK_PARTITIONS) || mtd_type_is_nand(new->mtd)) > + gd->flags |= GENHD_FL_NO_PART; I know that NAND should not get used with mtdblock because lack of wearleveling and in general too many writes. But what exactly is the rationale to deny part scanning for NAND? Thanks, //richard 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 21D12C433FE for ; Thu, 10 Nov 2022 19:45:30 +0000 (UTC) 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:Subject:References: In-Reply-To:Message-ID:Cc:To:From:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=l0LOiJrk30dUOMRkwe9rxbls8uFAb75cKk+Z69aTLow=; b=gQiI7AfNZU7nwd4XR+9l7rRpcn aCXlkMcYR6xJlOjAR8bZn6vA9OD1M0Y3uDNpH2O1hlsarXzqdAR2on9THFuD9tVSBF/A7sVePzGm7 mB//YeWPxvMHk9jUeL3y1Og0QC9To/foKIOhB3wKlaImI4tBLzX6J2aaCmKzKy6jXyPZRLsctsSoJ 5/d7yE3vS3Jo5jI5vOl/Pr9UYJ6rwkk7Fi2ud9aqXsEIZOrkdMaWYcaSeUf8aFoooDvRUASqpvXiK enuMP0ekrH7UyOSjGotdYIVAKwFycCeZC3ZVQXuA+JOZDxuHeopx6siCC5ph/VG0MlWmkC9PoVORV QaERp/yA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1otDTv-008v0r-OX; Thu, 10 Nov 2022 19:44:59 +0000 Received: from lithops.sigma-star.at ([195.201.40.130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1otDTr-008uwb-Lo for linux-mtd@lists.infradead.org; Thu, 10 Nov 2022 19:44:57 +0000 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 5757261B8B4D; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id nGPtvOKwhp3V; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0B4A66226249; Thu, 10 Nov 2022 20:44:54 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yQrYoj6s4SOb; Thu, 10 Nov 2022 20:44:53 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id DC57B61B8B4D; Thu, 10 Nov 2022 20:44:53 +0100 (CET) Date: Thu, 10 Nov 2022 20:44:53 +0100 (CET) From: Richard Weinberger To: Daniel Golle Cc: Jens Axboe , Miquel Raynal , Vignesh Raghavendra , Davidlohr Bueso , Matthew Wilcox , "Martin K. Petersen" , Chaitanya Kulkarni , Ming Lei , linux-block , linux-kernel , linux-mtd , linux-efi Message-ID: <1691046252.219046.1668109493753.JavaMail.zimbra@nod.at> In-Reply-To: References: Subject: Re: [PATCH v4 4/5] mtd_blkdevs: add option to enable scanning for partitions MIME-Version: 1.0 X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: mtd_blkdevs: add option to enable scanning for partitions Thread-Index: qesM6z2xTDVbTIYuNhENmoux2tHhiA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221110_114455_926379_1FDF4FF6 X-CRM114-Status: UNSURE ( 4.63 ) X-CRM114-Notice: Please train this message. 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: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org LS0tLS0gVXJzcHLDvG5nbGljaGUgTWFpbCAtLS0tLQo+IFZvbjogIkRhbmllbCBHb2xsZSIgPGRh bmllbEBtYWtyb3RvcGlhLm9yZz4KPiArCj4gKwkJaWYgKCFJU19FTkFCTEVEKENPTkZJR19NVERf QkxPQ0tfUEFSVElUSU9OUykgfHwgbXRkX3R5cGVfaXNfbmFuZChuZXctPm10ZCkpCj4gKwkJCWdk LT5mbGFncyB8PSBHRU5IRF9GTF9OT19QQVJUOwoKSSBrbm93IHRoYXQgTkFORCBzaG91bGQgbm90 IGdldCB1c2VkIHdpdGggbXRkYmxvY2sgYmVjYXVzZSBsYWNrIG9mIHdlYXJsZXZlbGluZyBhbmQK aW4gZ2VuZXJhbCB0b28gbWFueSB3cml0ZXMuIEJ1dCB3aGF0IGV4YWN0bHkgaXMgdGhlIHJhdGlv bmFsZSB0byBkZW55IHBhcnQgc2Nhbm5pbmcgZm9yIE5BTkQ/CgpUaGFua3MsCi8vcmljaGFyZAoK X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCkxp bnV4IE1URCBkaXNjdXNzaW9uIG1haWxpbmcgbGlzdApodHRwOi8vbGlzdHMuaW5mcmFkZWFkLm9y Zy9tYWlsbWFuL2xpc3RpbmZvL2xpbnV4LW10ZC8K