Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9653574imu; Wed, 5 Dec 2018 08:12:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/WPftRAwBu53TXDBrioC5NY2SRh507ZZlcs1ESeEznHQ0bEq5CMjR621ipTeb64L64m6tCP X-Received: by 2002:a17:902:2904:: with SMTP id g4mr24553473plb.39.1544026350197; Wed, 05 Dec 2018 08:12:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544026350; cv=none; d=google.com; s=arc-20160816; b=S99Evt6vAUa1OQNgvPzRcF9u6harF3CKfZAz+2+NlTdy3kHCZLcYZxPcVNgrWovXOI 004NjW/dhdjoZembR8RTUkQrpiA3iTqW50sNUPuqg1Y/rYHw/OZnG575JZ62Yd5UM6lN ryAHGYqvdzXUIQ8MYAHuqI0lqtgCT1q/j5JXwa4hq7ldSqHX4jTLaXJJe14vX+IzCT1g 12hnOxSr1XV9QW9uPQzsnbJTAwVnnriDNWXErQe4qX150pAQDaDVpTPncawZ1HvKd+Y4 IYDPLb9o6a+Rs9SEiyh8Yw3ZJEwkHXVMq1Y6AC4pY3rCkDTrlVCJ3S3X+Cq5Hc5bPM+3 twCg== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OACKoCcntOtqih+yiyXnucFaI0xis202Bav1NyUfG/4=; b=CcD9U0CTUq4ZDWgkMTHmhbTA/TI5/79Z/Y9qxDQOXRl57LudBEvGTO517BFtQ5hX6B mRoYpm+who1KD11b6vj0aBIPDvefbiN1c2z6Jwi95iihF+UVF8x8FO/hW40pF1JUdhYW Hx7O/+/W282q+zJYldhkOP7HtOB21Z1FFIOkZ9mKDB8RdhvwKEdnhE0p6zcM9fwKb6NQ 2F7KcOSLcoKHVQ3G3HeZB5U9BfdCuhHf4W1rRbudLjvPvbqRilpARRvkYY9cecfzvmBv Qq/KdPoBv/zA58h1k6OYfeaw4uNIUQ7aeukKZjHdM43BoaV0ivX0pHLR40JCU4QYXx/o BO4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Lj5zIWJo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si18865493pgf.450.2018.12.05.08.12.11; Wed, 05 Dec 2018 08:12:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Lj5zIWJo; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728330AbeLEQKx (ORCPT + 99 others); Wed, 5 Dec 2018 11:10:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:35248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbeLEQKx (ORCPT ); Wed, 5 Dec 2018 11:10:53 -0500 Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com [209.85.208.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCC3D20989 for ; Wed, 5 Dec 2018 16:10:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544026252; bh=eqOfNcHX61VS3GDpCujp799MGd6FR/REhoc3IIJwGJo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Lj5zIWJoJFn0NMFfC6mlijB6ysA82GrFZKPfo3iCOeswsdvKoSyXvm/L05d9u2AD/ /tsIUljru1EnhTvyO78XXLkUNz+6kOm7Ro0rJ+LBVcPY4rQZMF5SMKVBR30bLKQPww i5aYTxQyFSxPzHguebbg+wHAIkVjXhgoPmF1i1VM= Received: by mail-lj1-f179.google.com with SMTP id 83-v6so18836429ljf.10 for ; Wed, 05 Dec 2018 08:10:51 -0800 (PST) X-Gm-Message-State: AA+aEWaqniv1x8TTo9hJzD7XA+anX51YIDO0AAf6TFkn9CqNxKBwuIYp BN3Nln2XcpC0kNpNjK4S3jXtqL7fNPNwcQ2NiWc= X-Received: by 2002:a2e:5d12:: with SMTP id r18-v6mr17684070ljb.89.1544026250013; Wed, 05 Dec 2018 08:10:50 -0800 (PST) MIME-Version: 1.0 References: <20181120113326.0d4f061e@xps13> <20181120130859.78d53da3@bbrezillon> In-Reply-To: From: Krzysztof Kozlowski Date: Wed, 5 Dec 2018 17:10:38 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [BUG BISECT] Missing MTD NAND partitions - mtd: rawnand: Move the ->exec_op() method to nand_controller_ops To: boris.brezillon@bootlin.com Cc: miquel.raynal@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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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=C5=82owski wrote on Tue, 20= Nov 2018 > > > > 10:46:33 +0100: > > > > > > > > > Hi all, > > > > > > > > > > Since few days linux-next has problem on Freescale VF500 - MTD se= ems > > > > > to be broken. > > > > > > > > > > Bisect pointed me to commit 7c27338c728e39ef47c83d101959aa3325069= 69d > > > > > ("mtd: rawnand: Move the ->exec_op() method to nand_controller_op= s") > > > > > as reason of failure to find MTD partitions. > > > > > > > > > > Toradex Colibri VF50 on Iris board (ARMv7, UP, Cortext-A5, NXP VF= 500, > > > > > 128 MB RAM, 128 MB NAND, Systemd: v232) booted from NFS root (NFS= v4) > > > > > 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 discuss= ed > > > > with Boris and we think it should fix your setup (and all others al= so > > > > 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. Best regards, Krzysztof