Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3745106iog; Tue, 21 Jun 2022 05:14:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7dO66fG54BboFBtk4SG6q9sFyn/w6POS57FiJ3x7bK6dFyGlcAVzBUPkL/p2vxX7A28OX X-Received: by 2002:a17:906:149:b0:712:502:bc62 with SMTP id 9-20020a170906014900b007120502bc62mr25862956ejh.720.1655813647138; Tue, 21 Jun 2022 05:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655813647; cv=none; d=google.com; s=arc-20160816; b=wrLCsyKdjvpKT5KcgxjmVTpIi77NwbVnRy/G8bZjHCy7aCj+GxYQef/pNegx5zYGh1 GlpnXro/ZP7cM0cpx9dJljEtgFJ+dU1IpctTB+qkWO7ehgHb72MzwSx9hY04cxNLRzHx FdEqPajMiw8eTgK4ygoAgyJFV+Afke6GqJXWrhS+RAipUvtqVrtI9Cxmgg1nHDITN6Nu wYYW7N6j4+1J5Jd/X1t5jZIyLY86ukrCaPmIjZXXmqULOMbYrNFRl4qwB3zUUhArCJJB Vzj3MuPTsaVhBzW8T4NKEAA4NtLA3JIOUIBtUMIUo9V/HA3q/XAIrSp7Gt8u8p5uXdeK 1COA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=XsOPQXuW6wpuHbz+/8q/+YnnNNH09/T0pbD7HutKQxc=; b=lBk/2csbCjHqe4RATORV+O1AUxDZql/+ZsS1bgrgObs8avdf5HZ/lVOh/YvVB8BCRx BZSnTM2pTDHFXC51xmV5BaWWYmxi+/GxipkSE9D3SYmagJ9rHAzwVse8KgXsldqUUvAF Yb0lxNsbh9G2HF9/BGliikQ2bKIBgbc1al/NfgjIwRnnxEAcP0YJkAV7g4S4Bn4ZfTJL b0W1frEy0x8kDxji5GeSUlQ+QYcCvuidnY40B10wrFmiNtw6nVfkW8RqXLuNi1gz2pOX YS0pEwMHK3ryIMWXKNu5GTerSOHJD/1zbNRubXciTfplF2HFWB1p0zfQcepSRScNTP9T r9XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Sz1gzaPo; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a17090673d300b006fef8c40049si14827482ejl.202.2022.06.21.05.13.39; Tue, 21 Jun 2022 05:14:07 -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=@0x0f.com header.s=google header.b=Sz1gzaPo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349544AbiFULmQ (ORCPT + 99 others); Tue, 21 Jun 2022 07:42:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348826AbiFULmP (ORCPT ); Tue, 21 Jun 2022 07:42:15 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A047DDD for ; Tue, 21 Jun 2022 04:42:14 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id n197so9795694qke.1 for ; Tue, 21 Jun 2022 04:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=XsOPQXuW6wpuHbz+/8q/+YnnNNH09/T0pbD7HutKQxc=; b=Sz1gzaPoKooK6lJ035FYSAzsHrJPh7CKkgb9ZoDm0ZZRbb6K/vyHM64SuyImpH+0sB uvB+VOLvajVFsxb9/v30u683U1LFuT6sG4YX+cILEg2sajO5Bkwcxg29QtdpqvfCoW60 X7EDe9ocJgNeBbrOWZ40IyTPWvCXyWJkFiqS0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=XsOPQXuW6wpuHbz+/8q/+YnnNNH09/T0pbD7HutKQxc=; b=OATxL9UWXvIDJ2XSeLMBlKvG71SqB93bdfp2qqTbukUr7K1mQS8Qatk7GKO5+p0cXA jEANSTkii6MKSXM2LyC2yBJVKyOz9gbqb1ovOz0KYKtv7r2MUuf9zd6uHo3Tin6QWZkl oB9KRbVOnHOQQC61dwLwL3384DYg8hZEYvUCEwL0LIc/XZHszhM0SFsnlgAqC4zyjRB0 gPlDZ6yGU2ICeW19AlQnAq4tiCPej58Asqdf7YXEUhB4lk1s/WTjW/ClQ+Yzzi3O6do2 V7OWaCFVpPHcdHDaEHdELueavjhZJ/dxuKNdLPqML4gzyK6xNZupuN640h1YGeO979bP hSQQ== X-Gm-Message-State: AJIora8Oj0pLqgK1iDfWVXEA0fhxHMjnnUTnr5joWobrK7tDmoeY7MFN Ig3oV1RzLVg71SmAEaJWm08JP/z7feczlDEV/v0MqAa8Fy1ydA== X-Received: by 2002:a05:620a:40c9:b0:6a7:84a6:11a3 with SMTP id g9-20020a05620a40c900b006a784a611a3mr19352541qko.331.1655811733449; Tue, 21 Jun 2022 04:42:13 -0700 (PDT) MIME-Version: 1.0 References: <20220621090900.GB7891@pathway.suse.cz> In-Reply-To: <20220621090900.GB7891@pathway.suse.cz> From: Daniel Palmer Date: Tue, 21 Jun 2022 20:42:02 +0900 Message-ID: Subject: Re: [PATCH v2] printk/console: Enable console kthreads only when there is no boot console left To: Petr Mladek Cc: John Ogness , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Linus Torvalds , Linux Kernel Mailing List , Sergey Senozhatsky , Steven Rostedt , Andy Shevchenko , Rasmus Villemoes , Jan Kara , Peter Zijlstra Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_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 Petr, On Tue, 21 Jun 2022 at 18:09, Petr Mladek wrote: > > Threaded console printing does not take into consideration that boot > consoles may be accessing the same hardware as normal consoles and thus > must not be called in parallel. > > Since it is currently not possible to identify which consoles are > accessing the same hardware, delay threaded console printing activation > until it is known that there are no boot consoles registered. > > Link: https://lore.kernel.org/r/20220619204949.50d9154d@thinkpad > Link: https://lore.kernel.org/r/2a82eae7-a256-f70c-fd82-4e510750906e@sams= ung.com > Link: https://lore.kernel.org/r/20220619204949.50d9154d@thinkpad > Reported-by: Marek Beh=C3=BAn > [john.ogness@linutronix.de: Better description of the problem.] > Signed-off-by: Petr Mladek > Tested-by: Marek Beh=C3=BAn > --- > Changes against v1: The lockups on boot seem to be gone on my boards with this patch. So FWIW: Tested-by: Daniel Palmer