Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4751925ioa; Wed, 27 Apr 2022 10:16:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbKJDQFWl6yurgt5PPdCbAtDuhjopX1U/90Dgz3tk71+3gd4nqoXUOFDRZG8hmY0p/L4NX X-Received: by 2002:a17:902:ce0a:b0:156:72e2:f191 with SMTP id k10-20020a170902ce0a00b0015672e2f191mr28903775plg.76.1651079818955; Wed, 27 Apr 2022 10:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651079818; cv=none; d=google.com; s=arc-20160816; b=IPt7+p9wJw6Xy4VKk/OwIFoPbwaE3v24y9RfyU5psMEnnd8X8uzC56KOV60M0Gl6H+ Ko1wyhVEnj9WQm3Fa0rtbUNVNsd4NWnIBfC4ur91i0OR58Q9oIRBVrGtun+uF8tP/8DB 1IteUsr89zW9oap5rWewNXzLSV0obkGZ4R62iEfN+iFTFs/y9LvYaDC4FWqE4t/81vI+ wrNLiEEwgMwY5FjUIOzMEJgWpfY81xyLnDOOXzUHRD8VtWI1G1O3qCjtRT7uGJWkJ36Z vS+iWTcwtm2oPtLVvHYG90IJikYeKTQUA4gYPsVZPRJHi6vuBGooGxk3PgDAO+GuScHz lW8g== 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:dkim-signature; bh=k4uwkTTpLjGf9jLW7bBMGO3SMfacleIQxRESSfxLAow=; b=FBrDU9PQJdFy+cTQDXRyxFwWCgdsi176SEuLEzfK+xOYv3izaqyqRtcpWsnD55DKmG 4G03hipJjLUKmv1mvv1PILu605yd6Fg7iL9GDcW5BcE1ESX8ZJ0LLRYYL8IA88sXdSFT y5WcVCd2AaVAybjWWIzZT9GLsFBeF7NKplWwfleTTV21+j2hfNbLlamFvuYvTSOYD4QY tdm2iTIfbLH69MRnLqH2fIfJb8s5qhBJI/AU0DERHRQMJuPDs1vkWvX3W+nP/D4Ui3o+ cDef00Ru/LiTPCdChCHKjQRhpV655meDOICQ1zvO++EY9x0DB8MVb6aRx8C3qqL4mwT+ xQKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=jtmJxFlr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id u16-20020a63f650000000b003c14249f5bcsi2065333pgj.187.2022.04.27.10.16.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 10:16:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=jtmJxFlr; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9475F4071A9; Wed, 27 Apr 2022 09:48:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243581AbiD0Qve (ORCPT + 99 others); Wed, 27 Apr 2022 12:51:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243570AbiD0Qvc (ORCPT ); Wed, 27 Apr 2022 12:51:32 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8F022BE67 for ; Wed, 27 Apr 2022 09:48:19 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 925FF21107; Wed, 27 Apr 2022 16:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1651078098; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=k4uwkTTpLjGf9jLW7bBMGO3SMfacleIQxRESSfxLAow=; b=jtmJxFlrnPeIVUqUn3cdH/SbeO7NLKovXD2iVIO7YWrFJrYPJdaiDDRyS+ZFhJyzyT+GPI zfsmyPOSSgnSJk0r3mqsYyyl81+8atEe8s7EBZW55Q/E1HjN6pBf7r+HYD6JBWSRZQ77GQ ysikTkdTv11Q1KGip4G6tVOVROMI00s= Received: from suse.cz (unknown [10.100.216.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id E4B662C145; Wed, 27 Apr 2022 16:48:17 +0000 (UTC) Date: Wed, 27 Apr 2022 18:48:15 +0200 From: Petr Mladek To: John Ogness Cc: Marek Szyprowski , Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , linux-amlogic@lists.infradead.org Subject: Re: [PATCH printk v5 1/1] printk: extend console_lock for per-console locking Message-ID: References: <20220421212250.565456-1-john.ogness@linutronix.de> <20220421212250.565456-15-john.ogness@linutronix.de> <878rrs6ft7.fsf@jogness.linutronix.de> <2a82eae7-a256-f70c-fd82-4e510750906e@samsung.com> <87fslyv6y3.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87fslyv6y3.fsf@jogness.linutronix.de> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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 On Wed 2022-04-27 18:21:16, John Ogness wrote: > Hi Marek, > > On 2022-04-27, Marek Szyprowski wrote: > > Here is the full serial console log: > > > > https://pastebin.com/E5CDH88L > > Here are a few ideas from me: > > 1. For next-20220427 the printk-threaded series was slightly changed. I > do not expect it to work any different, but I would prefer we are > debugging the current version. If possible, could you move to > next-20220427? > > 2. I noticed you boot with the kernel boot arguments "earlycon" and > "no_console_suspend". Could you try booting without this? I expect this > will make no difference. > > 3. It looks like the problem happens quite late in the boot process. I > expect it is due to some userspace process that is running that is > interacting with printk (either /dev/kmsg or /proc/kmsg) and is causing > problems. If you boot with init=/bin/sh then I expect the system is > running fine. (You don't have much of a system running, but it should > not hang.) We need to isolate which userspace process is triggering the > issue. Interesting idea. > 4. Have you tried issuing magic sysrq commands on the serial line? (For > example, sending a break signal and then the letter 't' or sending a > break signal and then the letter 'c'?) That might trigger various dumps > so that we can see the system state. I see that sshd is started. If you are able to connect the system with the frozen login via ssh then it might be easier to trigger sysrq via procfs, for example: #> echo t >/proc/sysrq-trigger "sysrq t" should print state of all processes. It might show what process is hanging and where. > 5. You are not running a VT console, so the graphics driver should not > be affecting the printk subsystem at all. I expect your autologin is > also starting various services and programs. If you disable the > automatic login and instead manually login (perhaps as another user) can > you manually start those services one at a time to see at what point the > system hangs? Yeah, I am not able to reproduce it and some more clues would help. Best Regards, Petr