Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7425952rwd; Tue, 6 Jun 2023 10:30:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5sfjGoHNa7bDUVobB//UchQAgawdCHnf/cX6Ee/AbfUKhl8mQfwlLnE+vfSpEn89o1gWqu X-Received: by 2002:a05:620a:f0c:b0:75b:23a1:3646 with SMTP id v12-20020a05620a0f0c00b0075b23a13646mr550180qkl.7.1686072625668; Tue, 06 Jun 2023 10:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686072625; cv=none; d=google.com; s=arc-20160816; b=nBHkEQEC8JFcqTj7xZA4vFSvJOUfwa3qgD+4PUn/FggbqdsGPV54NlPxwk8xm16Q7q uou9EWwbjdficPwbJKco+EKkDst+PbnBZlTXTotcYks1/d4ICxRZkKeOa4Gw9Ydm0HJO r/QWo3PFVTy1MdvpR403OBSKz/LNJDf0T/rxKxhGLzmD4dFz+ABNZ6Hu3R7CTW72ya2S qzv+mZho8fNO0x98YSRabBXydXzExpZQN+BYLeE7f6i9RThFsJU80txbCOSuJJVXMhBL 7UX9G+MIpWMi/POSQOVZ3GjOEmEnA9GdrttnghZKmBzCWTALJ7BmTmQ0+tnufo26ykfg rRwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=AWS/TQzpHSLsmYu/BJTW8HUHDr6qHBCd1sE1crEhp64=; b=GEuOYlPn/uJD5A+I/ub7rn6LvK/mDicSfHvW0F1E2lwmT7LOPm3Pju8f7gt4FF/NL0 3RDsWqeO2vDWHAM7fEMjBhMUgrxQBl14USM+boj1Cb448BFTbzuQx9BVb2v07r1FvJlT D8+BKWTeOAuhGppVrTL43gxD8UK2D7o10hytoNyA6uL/TSuqs1A5UdW2yU8r3nyBtn0/ EKl73faeeNtO/RY4Exf32/dSAe1e1JYh2B4ZJoPKcyRrUFp8hi/eigpKNm397KQXHajG RhyCv3WVxhWUBA5Y8HwhAaMSUkoR6ByTR94/X26O6nb89UW77oJccGCFCBToSFBoheLT +eyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=jA4M8vPh; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a37de13000000b0075b2f6649f6si6208188qkj.741.2023.06.06.10.30.08; Tue, 06 Jun 2023 10:30:25 -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=@gmail.com header.s=20221208 header.b=jA4M8vPh; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237056AbjFFRJ7 (ORCPT + 99 others); Tue, 6 Jun 2023 13:09:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238554AbjFFRJ4 (ORCPT ); Tue, 6 Jun 2023 13:09:56 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B1D410FD for ; Tue, 6 Jun 2023 10:09:52 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id 98e67ed59e1d1-2564ced644bso1297900a91.0 for ; Tue, 06 Jun 2023 10:09:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686071391; x=1688663391; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=AWS/TQzpHSLsmYu/BJTW8HUHDr6qHBCd1sE1crEhp64=; b=jA4M8vPhhrY+KnfkDL7mxgNqOdz0Y/DZuZoEsxIZi1WlWdHzHQx9EviYKZgQoFN3/d SO9dGP2y/94WO3lPO7jtMkHywSpJcrfJMM5sv8dSIa0lFVaBsua0FlMFZ5KEm31fnjyw yywIZ0AbYgEjtAxuAziaF+9Zmi+h6vSKFRyJZlKjaPvrAgtEOambWFVIG/ioCynjMVri hF8h8rnmWq+6M/vqT0p41gRna46XlpWoYFLdUVwe8pKNPIV1L5jRTtVJEndi8IaZf+1k 6H7mO6gT/J3wFSky+pe9GJ6v5euBh3/oQ8LJEEHroNcyGIiW7A7k906+uDIMO4OW4Jnu m7vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686071391; x=1688663391; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=AWS/TQzpHSLsmYu/BJTW8HUHDr6qHBCd1sE1crEhp64=; b=YDhnEg1h52QvWUaTuuVi77qcGpJcOW8EqR/OjR1GJu2Oh+pMFwF47YkIjBG39AlXYq 0f5kacDZww9jveSbrwiUVFl5YlzqpgQYHKQzhAVNmm4dS/L06oU6Dx3rM1mfxKXIe5KN z2mkJ+D0vhlJ3j0Aqj+Zhfv+kUyR88AQOYrFPL2iPLaHdOheL4hEU6flzYP+IL2V5ZQE Jy1I2ll5nNGRhCNbGeu/R1z/2qot5/H+14mY4OyQjtRX+gz0ONboUDr0cKkcaAJQ9Ddf lOS0C3ERE2/YKFvVjJMHgH41xLoYNLbIGdIqKDET+04IEUggffW08UtdLp8GxoQaSFFX ghPQ== X-Gm-Message-State: AC+VfDwTl+abHBjlPnF0WWzOg4swxIQuWEI4gGrSAQckdd/t5ui1b4dQ QhXWPhuDa4jYD5MxtRv5dsN7HV/7rxxbMsDjc90= X-Received: by 2002:a17:90b:4f84:b0:259:8305:5d6e with SMTP id qe4-20020a17090b4f8400b0025983055d6emr3144592pjb.0.1686071391092; Tue, 06 Jun 2023 10:09:51 -0700 (PDT) MIME-Version: 1.0 From: Fabio Estevam Date: Tue, 6 Jun 2023 14:09:39 -0300 Message-ID: Subject: rootwait regression in linux-next To: Christoph Hellwig Cc: Jens Axboe , linux-kernel Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Christoph, I observe the following boot regression in linux-next 20230606: [ 1.757719] ALSA device list: [ 1.760705] No soundcards found. [ 1.774453] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA [ 1.786190] Disabling rootwait; root= is invalid. [ 1.792548] /dev/root: Can't open blockdev [ 1.796689] VFS: Cannot open root device "/dev/mmcblk1p1" or unknown-block(0,0): error -6 [ 1.804886] Please append a correct "root=" boot option; here are the available partitions: [ 1.813270] 1f00 32768 mtdblock0 Kernel command line: root=/dev/mmcblk1p1 rw rootwait If I try an ugly hack like this: --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -412,7 +412,7 @@ static dev_t __init parse_root_device(char *root_device_name) return Root_RAM0; error = early_lookup_bdev(root_device_name, &dev); - if (error) { + if (0) { if (error == -EINVAL && root_wait) { pr_err("Disabling rootwait; root= is invalid.\n"); root_wait = 0; Then the board boots fine: [ 1.790845] Waiting for root device /dev/mmcblk1p1... [ 2.058169] mmc1: host does not support reading read-only switch, assuming write-enable [ 2.097079] mmc1: new ultra high speed SDR104 SDHC card at address aaaa [ 2.104925] mmcblk1: mmc1:aaaa SP32G 29.7 GiB [ 2.113269] mmcblk1: p1 p2 p3 [ 2.154538] EXT4-fs (mmcblk1p1): recovery complete [ 2.160651] EXT4-fs (mmcblk1p1): mounted filesystem 3e7994a8-04cb-45d2-a6f5-64462aa0ea05 r/w with ordered data mode. Quota mode: none. [ 2.172828] VFS: Mounted root (ext4 filesystem) on device 179:97. What is the appropriate fix for this issue? Thanks