Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38486137rwd; Wed, 12 Jul 2023 08:16:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlEzHY64BYy1zr1gle/yNBDnSWNYw1cUoimM8G7j2A7UjF2jSZzsXifAT+N/CXz3EMbw7+Q5 X-Received: by 2002:a05:6512:33ce:b0:4f8:5600:9e5e with SMTP id d14-20020a05651233ce00b004f856009e5emr19750046lfg.47.1689175007959; Wed, 12 Jul 2023 08:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689175007; cv=none; d=google.com; s=arc-20160816; b=KBlur9ZACzDfVxpCr2NEmcmk3n+u9PXoIzFlB8F5ag28pqEKKL1z5a2cQeDlvbEg0j iLiT9u4b7LwxviFWdlQf62tEG5FispsDQ2D4VlbT9CXAN82xFx4EE6DnulttFcfcJCUc TJJDTNv8BNmUZjQi2yfD/zlyi8CUq0IywtZKS6+a1E1TpV8D43Zk3uhgcuwRNDAc6Nog nQcB7qZNVQVLO9FZ1hqiJY1mPBJRT5i/KUnPDVZ1q7zO9xosAKW31xKgEOsO/lFp6hIV 236G1Z4dsMJtcP31XkTq6n9s6xBuQYVi3hvqjnirgCuvboH1zAgJziQzS1dGRrpNtqyF mbOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:message-id:in-reply-to:date:references:organization :subject:cc:to:from:dkim-signature; bh=sk+FPXXnrjQY//r/C0seGC8cejqHanoKfLCIbFRF9IQ=; fh=qjlzC1C0a9OSQtSuDfda/5ibtSshk3NP4gjftv+BBNg=; b=CNIO81lxceHE9oMQ1HR2uIBrMNZ1SeDCGOK/O9n2c9TLVVwby2TdGlcoavQftB9W8/ RJR+W4jhKHTfkDiAOUHj1AumKBUbUIZGvHeQ5hbtJgqAz9iNul+zZDlWqGdefHWyqwfq /wJVQ40UMlKvxA/lTEwYhx9r6hLoL7WTlrdLauQTaQmkqB1IMMY0hu3rVmMgfFs8JCqW gOzgZl3aZmm7uTCZpFGTRWA3pd/7AzNqO09o5VkIs3T0gDA2HjqKNkzDQxIuWZTJIrmL 6P4e4bH5NzwlDLf9TL9M54dtGb+3g6qXlQXpnR9ABaUkoZmm15G8snp5gt+XHgWDk604 kCSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mork.no header.s=b header.b=Yy4uQ1YA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mork.no Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n21-20020aa7c455000000b0051d91303c5fsi4609938edr.677.2023.07.12.08.16.22; Wed, 12 Jul 2023 08:16:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mork.no header.s=b header.b=Yy4uQ1YA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mork.no Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232291AbjGLOkJ (ORCPT + 99 others); Wed, 12 Jul 2023 10:40:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229829AbjGLOkH (ORCPT ); Wed, 12 Jul 2023 10:40:07 -0400 X-Greylist: delayed 655 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 12 Jul 2023 07:40:05 PDT Received: from dilbert.mork.no (dilbert.mork.no [IPv6:2a01:4f9:c010:a439::d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1AEF19B; Wed, 12 Jul 2023 07:40:05 -0700 (PDT) Received: from canardo.dyn.mork.no ([IPv6:2a01:799:964:4b04:3697:f6ff:fe5d:314]) (authenticated bits=0) by dilbert.mork.no (8.17.1.9/8.17.1.9) with ESMTPSA id 36CESiBO564786 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Wed, 12 Jul 2023 15:28:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mork.no; s=b; t=1689172119; bh=sk+FPXXnrjQY//r/C0seGC8cejqHanoKfLCIbFRF9IQ=; h=From:To:Cc:Subject:References:Date:Message-ID:From; b=Yy4uQ1YAqHcj2pchhpLv0u4XG6Zm8/rVCIRaMFjPxsHU+imwdk5Cr5LQFT+gfzT6Q Tey9PR5rte1qmKegvGpOFBGGL1gnAOENBA0Y8vBywk2/LK8LhkERm1Oh1lUgYKgJlZ U+RdMqYCK1EgrACfgBJQe3dJg7oEI828QcsuWNnk= Received: from miraculix.mork.no ([IPv6:2a01:799:964:4b0a:9af7:269:d286:bcf0]) (authenticated bits=0) by canardo.dyn.mork.no (8.17.1.9/8.17.1.9) with ESMTPSA id 36CESduU2250823 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=OK); Wed, 12 Jul 2023 16:28:39 +0200 Received: (nullmailer pid 588999 invoked by uid 1000); Wed, 12 Jul 2023 14:28:39 -0000 From: =?utf-8?Q?Bj=C3=B8rn_Mork?= To: Pintu Agarwal Cc: open list , linux-fsdevel , linux-mtd , linux-fsdevel@kvack.org, ezequiel@collabora.com, Miquel Raynal Subject: Re: MTD: Lots of mtdblock warnings on bootup logs Organization: m References: Date: Wed, 12 Jul 2023 16:28:39 +0200 In-Reply-To: (Pintu Agarwal's message of "Wed, 12 Jul 2023 19:29:39 +0530") Message-ID: <877cr5yzjc.fsf@miraculix.mork.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: clamav-milter 1.0.1 at canardo X-Virus-Status: Clean X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pintu Agarwal writes: > Kernel: 5.15 ; arm64 ; NAND + ubi + squashfs > We have some RAW partitions and one UBI partition (with ubifs/squashfs vo= lumes). > > We are seeing large numbers of these logs on the serial console that > impact the boot time. > [....] > [ 9.667240][ T9] Creating 58 MTD partitions on "1c98000.nand": > [....] > [ 39.975707][ T519] mtdblock: MTD device 'uefi_a' is NAND, please > consider using UBI block devices instead. > [ 39.975707][ T519] mtdblock: MTD device 'uefi_b' is NAND, please > consider using UBI block devices instead. > [....] > > This was added as part of this commit: > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/d= rivers/mtd/mtdblock.c?h=3Dv5.15.120&id=3Df41c9418c5898c01634675150696da290f= b86796 > https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/d= rivers/mtd/mtdblock.c?h=3Dv5.15.120&id=3De07403a8c6be01857ff75060b2df9a1aa8= 320fe5 You have 5.15.what exactly? commit f41c9418c5898 was added in v5.15.46. Your log looks like it is missing. FWIW, commit f41c9418c5898 was supposed to fix exactly that problem with commit e07403a8c6be01. But to catch actual mounts it will still warn if the mtdblock device is opened. This can obviously cause false positives if you e.g have some script reading from the mtdblock devices. If you are running v5.15.46 or later then there *is* something accessing those devices. You'll have to figure out what it is and stop it to avoid the warning. Bj=C3=B8rn