From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6F90AC43334 for ; Tue, 14 Jun 2022 02:52:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=v8PLv+2QNPNgSBGYCYRHaT3W8PEIHhWsC6i4xVYsYls=; b=FZsIGzHh7LVZtw Vu60+GH8kjzVadaTUPmOrTlZqTxDavrI4afTa45zawg+kRm9PJgrzhMY4MVag2mVf8JF4UdNeTk3h cdNm84dGVYLLlD5vQWsIIpHNyjc5OiHnoCeVhI+ir8efCEa/tm8z2MW1eba7UEWOz+38QAUAfIoey GmeoLTdCotpOh+QIVq0fkpG/ftW23EoPo5ehw+7CPIbkXy+V/EehH3BrrQscfmUyFzUieGCZUVDko nAzMiTsDhkDyUEmHJik3dlRLT9m63VFQx3U+UKMWQl7bHSAydOqZ2kCWUWiyGfjkkqfPxuibcNkN8 fa6/IWDeby5yulKfhh5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0weR-006nZ4-BW; Tue, 14 Jun 2022 02:51:31 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0weO-006nXv-6x for linux-arm-kernel@lists.infradead.org; Tue, 14 Jun 2022 02:51:29 +0000 Received: by mail-pf1-x430.google.com with SMTP id e11so7406395pfj.5 for ; Mon, 13 Jun 2022 19:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9f3QGTquyPNqt5Y0ehbeYkFH6SxKJFf9weR2+dr9JWE=; b=P1BYcRUky4pTlBCXgymwrbeyuxVeejqaqw+JSs0ELqecgtAA8S1wQVXLUSyIUEfVnh QvMMpYuen89Ix6WBpHx6Kn6lpOsQnahN1rKirs2nmFI1OBmwttSk7YBJoDBo69aI4mVu Fia2AXw9sK523hRAkVZ0hak767LdTjO9ysOgk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9f3QGTquyPNqt5Y0ehbeYkFH6SxKJFf9weR2+dr9JWE=; b=dF5CjviaQxPpABQujNSlCgiiPh/RUBuRbtOhb5XaoL7PByuXtRnLBfcbRvhRXxQASk R9mFr7HmrBPya2T/vhJZaOAOB/u1p0vSKDmaJcL2eAE11EQ5okSjfDyrrJ4rAstG8vlC Vn1ej+SS9rfNdytlrHi/mYDb05Pk0xATjBOrLMfuH5AJHy6n3+cReED2nYiqKlhLYJi/ mGYOTVoWKsGsjiwD1g+4intg+IrIOmrGvxIHqgnM42t1+9Ne55Ytu2IgKqRSX7oJC7/c dBIfkqja6S9PJ2/QKNv+MJFlnWlRBaikAjicBVaFkotWw3tMeLt0Xeh/zdMKw36l5Evt qwIg== X-Gm-Message-State: AOAM5338wGt7hxvYO16sw7uaEtpo4RMnIMSydQ8pWezU+X3lYaVe41g1 cH/wmji6+OfbyH8Rn53lwZEWeA== X-Google-Smtp-Source: ABdhPJylGhOEry1IwuOWykOk7USTnbbJcg+B07vWOeXChI+8gMoxe5N2wMpODJvV4Ll+IIRjj6BF5w== X-Received: by 2002:a63:89c1:0:b0:3fc:6001:e871 with SMTP id v184-20020a6389c1000000b003fc6001e871mr2528817pgd.14.1655175086959; Mon, 13 Jun 2022 19:51:26 -0700 (PDT) Received: from google.com ([2401:fa00:8f:203:580a:28cf:a82b:5610]) by smtp.gmail.com with ESMTPSA id a10-20020a62d40a000000b0051b416c065esm6147718pfh.8.2022.06.13.19.51.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 19:51:26 -0700 (PDT) Date: Tue, 14 Jun 2022 11:51:19 +0900 From: Sergey Senozhatsky To: Alexandru Elisei Cc: sunjunchao2870@gmail.com, jack@suse.cz, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, pmladek@suse.com, 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: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_195128_322544_8B38D13D X-CRM114-Status: GOOD ( 14.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On (22/06/13 17:54), Alexandru Elisei wrote: [..] > [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns > [ 0.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns > [ 0.005107] Console: colour dummy device 80x25 > [ 0.005549] printk: console [tty0] enabled > [ 0.005956] printk: bootconsole [uart0] disabled > > Config can be found at [1] (expires after 6 months). I've also built the > kernel with gcc 10.3.1 [2] (aarch64-none-linux-gnu), same issue. > > I've bisected the build failure to commit 10e14073107d ("writeback: Fix > inode->i_io_list not be protected by inode->i_lock error"); I've confirmed > that that commit is responsible by successfully booting the board with a > kernel built from v5.19-rc2 + the above commit reverted. Hmm, interesting and puzzling. If you disable console kthreads (__printk_fallback_preferred_direct) and keep 10e14073107d, are you able to successfully boot the board or does it boot to a panic? > I tried to do some investigating, it seems that the kernel is stuck at > printk.c::console_init() -> drivers/tty/vt/vt.c::con_init() -> > printk.c::register_console() -> unregister_console() -> console_lock(). Is it console lock (console_kthreads_block() -> mutex_lock(&con->lock)) that we cannot grab or is it console semaphore? _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel