Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2972562iog; Mon, 20 Jun 2022 08:32:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1udj1K+2Hy1U2JGtIuN2Nsm2EF+y7xI1X5S3FNZ/btqhKowitBMpHxNeiIdUxEyxAbIUwdW X-Received: by 2002:a17:903:3296:b0:16a:23ec:75f8 with SMTP id jh22-20020a170903329600b0016a23ec75f8mr6409705plb.121.1655739164407; Mon, 20 Jun 2022 08:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655739164; cv=none; d=google.com; s=arc-20160816; b=q+Hci9lxAJVB0sW7h2244ItZyVgRhTlLCki8dWaGJ7PvCYF54Ky6KnQd3J4E8tNEMx +jq77HuHxQk4OPebbDYGfM9tMD9mKRz4o+gh78+gywPuAjaxE+OdnMFcPMefSuIEC5ao 7mZj265D3zIFppYYk2kNPwJjbind9/4EHODfe6pAMVeNHai9QpggiBvIaS2ivfRu+8Gh AN05gbsNcXQZfz3ccU/TW3NQqYoYZUkypr7fbOKQYM5SJ6/In5+R72/4kSBdwchfYXxP c0/e2pWOzUw2i6c1pSjE88pkdIthdJLSeDI9om9G59jMHpnNnDXl3t7ne+wIQd7wrylo 62Qg== 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=BAf076vfoeBSZ+0dOc1abGr7gkrgPSBGJwYFEHWAqLI=; b=lPM6wV3FK8Y0QTQlJ/MIRYiiU2iOxX0NQiY3xQv26rzDKsDFYb6Gs9CAqFzjENJWNQ xTFulRi1V9PZGeJ/XBvPoXlde6yIo+kVXIM0fe3tb58xw09n/aI0AulfTzmRsBwiIwSA Cd7L4+HsDrxGcbYkT45AZzfy0z8zyrFw8X1jxQzThXh51AEB5GhK7U6W2pOeRhpg5/Eh wqdQBfjlTkMVdN3HLPq38zzItAvoTC1QQQhCB5q5+4sW32baTNqfOKqoc/RQoxYo6xBQ qu/02HgSxBTK4Kqa7jcQs7MAm7xyvsGqAXlVbrO7RBBw3Qrf3lcvJQshkOYtvM5Z8xm0 mdNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="T0jLZ/PB"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a631f4d000000b004052ab25e19si15885593pgm.767.2022.06.20.08.32.32; Mon, 20 Jun 2022 08:32:44 -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=@suse.com header.s=susede1 header.b="T0jLZ/PB"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243691AbiFTPWq (ORCPT + 99 others); Mon, 20 Jun 2022 11:22:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244263AbiFTPW3 (ORCPT ); Mon, 20 Jun 2022 11:22:29 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D54ABBC2 for ; Mon, 20 Jun 2022 08:16:34 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 91FEF1F8D4; Mon, 20 Jun 2022 15:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1655738193; 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=BAf076vfoeBSZ+0dOc1abGr7gkrgPSBGJwYFEHWAqLI=; b=T0jLZ/PBg41vLpGxlChwCCZROZomyYvZnF0w7/gzTFTZUIoAKrOO3NMzdye7JuPmyDKCQJ ET73fl9HvcMQte+TPBXiaZO8WsnbxQEEMB81tqOCHLU2UTvQ7qVjR/wxIn/7MqCoQoRQDZ hnZCllNnLUJ+Llir7j70MosC7Xqscoo= Received: from suse.cz (unknown [10.100.208.146]) (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 6E5B92C141; Mon, 20 Jun 2022 15:16:33 +0000 (UTC) Date: Mon, 20 Jun 2022 17:16:33 +0200 From: Petr Mladek To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Linus Torvalds , John Ogness , Linux Kernel Mailing List , Sergey Senozhatsky , Steven Rostedt , Andy Shevchenko , Rasmus Villemoes , Jan Kara , Peter Zijlstra Subject: Re: [PATCH] printk/console: Enable console kthreads only when there is no boot console left Message-ID: References: <20220619204949.50d9154d@thinkpad> <87r13kwawb.fsf@jogness.linutronix.de> <20220620112936.48fcb2a4@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Mon 2022-06-20 17:14:30, Petr Mladek wrote: > The console kthreads uncovered several races in console drivers. > All problems were in situation when a console was being properly > initialized and registered while an early console, using the same > port, was being used. > > These problems are pretty hard to debug because they often result > into silent boot crashes. It would be nice to fix them but it > looks like a can of worms. > > Prevent these problems by delaying the use of console kthreads > after all early consoles are gone. It might later be optimized. > But let's close this can of worms with a big hammer for now > so that they do not break first impression on the kthreads > that solve other real problems. Marek, could you please try if this patch solves the problem for you? Best Regards, Petr