Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp697613iog; Wed, 15 Jun 2022 10:17:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uT4GrVB1TTXbVY9hJ9/1fxesDZ+623F5wNLqRILHs8yfoA6N6os2J2aTMT4rua7UksH7+f X-Received: by 2002:a05:6a00:4503:b0:51b:de97:7f2c with SMTP id cw3-20020a056a00450300b0051bde977f2cmr444896pfb.12.1655313454833; Wed, 15 Jun 2022 10:17:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655313454; cv=none; d=google.com; s=arc-20160816; b=ro0m1SD84+Q7d9+kkNRoHJO1JB6dmMfAzICIQrhrxsJsBMef03drStqHMDklH3Yjsr X4wWR7DzcoG93s3UuCav8vMRsIQLKrR9bnP8y8wbP/wSLD0O0hkB77n0xkqwKBh7vpu7 Ht0LEyaR1/1x8A8wrMRHTq6TsRdfgkznT46Q2gFar4BLs7AVzV/J4nrp/uC23I27a/3W vKd2h0Sfc0IoYDwIouNB+shJ7BmGQwIs3fAUC+RA/q+cRTCUHxr2iQJPByvGHfyYaGHx BBrM7wi1Qfhbq2NI34FvL4OC0iG1bwDRnCnEx451Jnz3Mxt8g/Hk2Goy1pz5R0bcDEMr JM6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=RIHMSZ1ICo+F9X0FnpLvByutKAnFbzVYVDZMg+ThGvU=; b=F38tKvCb5fv43F8kPrO+BZSPxsFnLAcnFQ8FjlluiwP8IHXaga+jNwfGZM/4OMeVam BGfDO/BpQUoFuun3AYP/mW7DyTbvmaLjUzXvH9DxZIHhrkfe7mzVt4TkwlslQaUcN7Nm ouHVGd2N8EnqnC2IIxgzaiCRDwuvMD0+VIoDNLzd3KZU8dlOQ2oPXBkD3Y8VQuOBf65n y3UvkQWKGYM+QJii5kxPLo9sLn0Vj6v4CW3OprlvNBxi/Me/zgsfa7BDBUXmhDvdLQB5 e1e4R3b6CdB5WAudlhxKOfVDXNZuC4hSE7MT1kzp7wTzYd4A0Cnq6G2M6qd4pi7G+2mF 3png== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020a056a0010d500b0050e0530cfe4si17465934pfu.279.2022.06.15.10.17.21; Wed, 15 Jun 2022 10:17:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349611AbiFOQtl (ORCPT + 99 others); Wed, 15 Jun 2022 12:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiFOQtk (ORCPT ); Wed, 15 Jun 2022 12:49:40 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E11612CDC7; Wed, 15 Jun 2022 09:49:39 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 691F2153B; Wed, 15 Jun 2022 09:49:39 -0700 (PDT) Received: from monolith.localdoman (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CE5EA3F7F5; Wed, 15 Jun 2022 09:49:35 -0700 (PDT) Date: Wed, 15 Jun 2022 17:49:58 +0100 From: Alexandru Elisei To: Jan Kara Cc: Petr Mladek , sunjunchao2870@gmail.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, senozhatsky@chromium.org, rostedt@goodmis.org, john.ogness@linutronix.de, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com, heiko@sntech.de, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, maco@android.com, hch@lst.de, gregkh@linuxfoundation.org, jirislaby@kernel.org Subject: Re: [BUG] rockpro64 board hangs in console_init() after commit 10e14073107d Message-ID: References: <20220615163949.z22puioui322ktla@quack3.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220615163949.z22puioui322ktla@quack3.lan> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,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, On Wed, Jun 15, 2022 at 06:39:49PM +0200, Jan Kara wrote: > Hi Alexandru! > > On Wed 15-06-22 13:50:24, Alexandru Elisei wrote: > > On Tue, Jun 14, 2022 at 05:00:04PM +0200, Petr Mladek wrote: > > > > > > I've booted a kernel compiled with CONFIG_PROVE_LOCKING=y, as the offending > > > > > > commit fiddles with locks, but no splat was produced that would explain the > > > > > > hang. I've also tried to boot a v5,19-rc2 kernel on my odroid-c4, the board > > > > > > is booting just fine, so I'm guessing it only affects of subset of arm64 > > > > > > boards. > > > > > > > > > > You might try to switch the order of console_init() and lockdep_init() > > > > > in start_kernel() in init/main.c > > > > > > > > Did so above. > > > > > > Unfortunately, it did not print anything :-( > > > > With this patch [1] I was able to succefully boot the board. So I guess > > problem should be fixed. > > > > [1] https://lore.kernel.org/all/20220614124618.2830569-1-suzuki.poulose@arm.com/ > > Can you please try booting with the patch I've posted at [2]? After some > discussion with Linus that would be a preferable fix... Thanks! > > [2] https://lore.kernel.org/all/20220615133845.o2lzfe5s4dzdfvtg@quack3.lan The patch works for me, thank you! Do you also need me to reply to the discussion? Alex > > Honza > > -- > Jan Kara > SUSE Labs, CR