Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9660223imu; Wed, 5 Dec 2018 08:17:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/UTIGQSq0+U42IYdUEUpkumY4mN92iV2MgJ2xcZoCEYNmSGFJxm8w81jZTFBkEiHpIQ7A2X X-Received: by 2002:a17:902:b03:: with SMTP id 3mr24611257plq.91.1544026665418; Wed, 05 Dec 2018 08:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544026665; cv=none; d=google.com; s=arc-20160816; b=SLOn8Pwhucta6u8KonrEJvlWjQVtGD3mF/i0j0ww7AV2zJSkbZg3Yw7bQ1qQ2FEosI qJbjpUJrT2CBHvunUWkCNYBtpSEq6Kzh1fnIh11qDD0QjeVY3ldrCkAks3agitBOIvnq IufMTebTtJr8EfCSP9vGBVlN1gR2iiBQ5Rld8YGfAdCYMC4slJafLO5mrpVARHbqvm37 UkyCaFSdq3g1wKIjhKus7unZJ18TyrqQbvcd6IwpUMgrao/Hq6sfXfbMm2QKTvNLRB57 q5FzGNhBby5jtdPgDak3B+qHnia6MDVWIN2xmWn/5Yk1U9FtJhnZRsP9aH/C7UfUI5nw S33Q== 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=E4rkfkwMDC7qyKerYAjcxuIiw+UaDV839AdnGDxoq28=; b=rz5i4SHTp9vb9R2yp9Cn0DSGyaFZXVl7R6vjNWzMj/cuFMRStbb5XE+Pl1ASctCmty eh7lGD802lYgwaNKMy0cVEn5eQFI8JvaKalXF2M0W46cB6pdvjjSWTatOUEtOrCmouVK vTYVgCgZ8fgOr9mN0O2024jl8SXvb5inYXRSw2SiarphNpZVsdztH87AGhiNXT51/pwv cYYfEmz/lMe8YlMwy/5Imz5wEdGCtwsIFX0gRZjVtyPVabZTmgArDdfLuvYKYnM3uZ2z s8VBrhSNtlw4YU90qZbOLjhASk/ih6H6e8Uo3a/LH43ci+4FZH7E3P7lI4klmfmIX+Y+ aizQ== 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 m7si17862049pgi.547.2018.12.05.08.17.30; Wed, 05 Dec 2018 08:17:45 -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 S1728209AbeLEQP1 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 5 Dec 2018 11:15:27 -0500 Received: from mail.bootlin.com ([62.4.15.54]:32956 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728014AbeLEQP0 (ORCPT ); Wed, 5 Dec 2018 11:15:26 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 30ABF20726; Wed, 5 Dec 2018 17:15:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 Received: from xps13 (aaubervilliers-681-1-79-44.w90-88.abo.wanadoo.fr [90.88.21.44]) by mail.bootlin.com (Postfix) with ESMTPSA id 04A992073D; Wed, 5 Dec 2018 17:14:35 +0100 (CET) Date: Wed, 5 Dec 2018 17:14:35 +0100 From: Miquel Raynal To: Krzysztof Kozlowski Cc: boris.brezillon@bootlin.com, jmkrzyszt@gmail.com, Stefan Agner , richard@nod.at, dwmw2@infradead.org, computersforpeace@gmail.com, marek.vasut@gmail.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [BUG BISECT] Missing MTD NAND partitions - mtd: rawnand: Move the ->exec_op() method to nand_controller_ops Message-ID: <20181205171435.499c1488@xps13> In-Reply-To: References: <20181120113326.0d4f061e@xps13> <20181120130859.78d53da3@bbrezillon> 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 Krzysztof, Krzysztof Kozlowski wrote on Wed, 5 Dec 2018 17:10:38 +0100: > On Tue, 20 Nov 2018 at 13:15, Krzysztof Kozlowski wrote: > > > > On Tue, 20 Nov 2018 at 13:09, Boris Brezillon > > wrote: > > > > > > On Tue, 20 Nov 2018 12:48:46 +0100 > > > Krzysztof Kozlowski wrote: > > > > > > > On Tue, 20 Nov 2018 at 11:33, Miquel Raynal wrote: > > > > > > > > > > Hi Krzysztof, > > > > > > > > > > Krzysztof Kozłowski wrote on Tue, 20 Nov 2018 > > > > > 10:46:33 +0100: > > > > > > > > > > > Hi all, > > > > > > > > > > > > Since few days linux-next has problem on Freescale VF500 - MTD seems > > > > > > to be broken. > > > > > > > > > > > > Bisect pointed me to commit 7c27338c728e39ef47c83d101959aa332506969d > > > > > > ("mtd: rawnand: Move the ->exec_op() method to nand_controller_ops") > > > > > > as reason of failure to find MTD partitions. > > > > > > > > > > > > Toradex Colibri VF50 on Iris board (ARMv7, UP, Cortext-A5, NXP VF500, > > > > > > 128 MB RAM, 128 MB NAND, Systemd: v232) booted from NFS root (NFSv4) > > > > > > trying to mount UBIFS from NAND/MTD. Board uses VF610 NAND driver. > > > > > > > > > > > > The MTD partitions are missing entirely (nothing under /dev/mtd). > > > > > > In the logs you can also see: > > > > > > [ 1.232161] UBI error: cannot open mtd ubi2, error -2 > > > > > > > > > > > > Attached - dmesg.log > > > > > > > > > > > > Let me know if you need defconfig or any other information. > > > > > > > > > > Thank you very much for testing and reporting the bug! > > > > > > > > > > Could you please test with this diff applied [1] please? We discussed > > > > > with Boris and we think it should fix your setup (and all others also > > > > > impacted). > > > > > > > > > > [1] http://code.bulix.org/r1m99i-509201 > > > > > > > > error: patch failed: drivers/mtd/nand/raw/nand_base.c:4399 > > > > error: drivers/mtd/nand/raw/nand_base.c: patch does not apply > > > > > > > > Maybe you have a git tree with this somewhere? > > > > > > Yep: https://github.com/bbrezillon/linux/tree/nand/next-fix > > > > Works fine now, thanks! > > Tested-by: Krzysztof Kozlowski > > Although the patch fixed the issue... but it seems it is not in > linux-next. The next is broken since almost two weeks. > Sorry, this is definitely in my TODO list, I need to put the NAND branch in shape this week anyway. Thanks, Miquèl