Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp374728iog; Wed, 29 Jun 2022 01:56:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v8yN+SjGyAza5hGhSsYR4oc6/RJAzBZg2aWzBsSh/1dGO4OwW0YuZFTxGGAp6UECI9FbcO X-Received: by 2002:a17:907:7211:b0:722:e200:5410 with SMTP id dr17-20020a170907721100b00722e2005410mr2152214ejc.614.1656492984701; Wed, 29 Jun 2022 01:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656492984; cv=none; d=google.com; s=arc-20160816; b=E47csmxtFgHKBBo/Fqv7mXraR4uMUKMcw9W4ZDu2V44dnYwjVgXNNhAKHsV1l5bt4j wEd23ee0PguE0GRXS2tnp0qqrRMOYCsHfE4uTu3oSz9eo0vh8AAMbZ6XF0fvkM79kXfw TgeRFkoG91SLw49EJnm9GlES3nXtEB4RqR2T2O3piNnpLJ6Bsuy+Nl9SFbkaNTegVetV dBAmRF2fOf54Z1JR8AfVpF8J1hqOS6UwXrmGXnVshocZ9bU/DVZzS9M+8FyQfJWag7m3 2hQT5wAkpHQq9sO9aU3UAXx49kLJxuV7RI4gZy4VXQ6Lr3T44wsR/EKoPYnNPi/8BrlI aeCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IHyLFuUf3RdyGXhrYnMdLaANuV96sYIzvJl/tz37qDU=; b=qlz0aF42wk2gVO1nzqrXVU4kuyNuy8zNh91bqsFH4mpwiZxpc9xVqnwI/IVZJKZl4l gSu0YkT8DazWpE/R7cknBGO6/jQCuae8j7wVVADHz4RcvohAZJHbQDQ609K5/g9GKqv9 xFPAKaXgeGWCvJjBIgtha5LtS2p03fdsr4zCOWykxN1HII71eTqyO3pybZ0plQCcIMeF xDqWMnBuGYK3ZauiKGODik0KO6cYW9d24Q/Vnv/ZjuMDS/EQC82V3upTQdZucCQmSUkL T2+DtXvG0silV+lWvE8BoOyBTW7sgqpGPSBUZOyqwgDhBFNYil9ElLrD8d/UEzf15YJd /mAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=OVDPj70d; 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 s3-20020a17090699c300b00712ae69fac3si22353205ejn.878.2022.06.29.01.55.59; Wed, 29 Jun 2022 01:56:24 -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=OVDPj70d; 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 S232745AbiF2IaD (ORCPT + 99 others); Wed, 29 Jun 2022 04:30:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232641AbiF2I36 (ORCPT ); Wed, 29 Jun 2022 04:29:58 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1693719011 for ; Wed, 29 Jun 2022 01:29:58 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id C204121E33; Wed, 29 Jun 2022 08:29:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1656491396; 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=IHyLFuUf3RdyGXhrYnMdLaANuV96sYIzvJl/tz37qDU=; b=OVDPj70dL/BvwbwDwwsegFN/YQ1viQvqUAxp1IQ+MeZOaah/94fSTsYURx9+vLARDfnMJK NzDLfhSJ1V5Jai/peiiJJ4g7aFPbv5nIEZz6Yi4YpS0GRmibbJnIXOqrlb6n07Xgxr8qIq OxTLcot60syJQWdD1YXcUjZDJWM/u+k= Received: from suse.cz (pathway.suse.cz [10.100.12.24]) (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 62CFA2C141; Wed, 29 Jun 2022 08:29:56 +0000 (UTC) Date: Wed, 29 Jun 2022 10:29:56 +0200 From: Petr Mladek To: Steven Rostedt Cc: John Ogness , Marek =?iso-8859-1?Q?Beh=FAn?= , Linus Torvalds , Linux Kernel Mailing List , Sergey Senozhatsky , 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: <20220629082956.GB3111@pathway.suse.cz> References: <20220619204949.50d9154d@thinkpad> <87r13kwawb.fsf@jogness.linutronix.de> <20220620112936.48fcb2a4@thinkpad> <875ykvaqzm.fsf@jogness.linutronix.de> <20220624184136.4aab12fb@rorschach.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220624184136.4aab12fb@rorschach.local.home> User-Agent: Mutt/1.10.1 (2018-07-13) 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 Fri 2022-06-24 18:41:36, Steven Rostedt wrote: > On Tue, 21 Jun 2022 00:57:09 +0206 > John Ogness wrote: > > > Since early printing does not use the kernel driver model, I do not see > > a clear solution at this point. But since using early printing is not a > > typical use, I am OK with this patch. > > Does this patch still work if you add the "keep" flag to the > earlyprintk kernel parameter? It works. If the boot console stays then the console kthreads will never get enabled. Well, I hope that we will be able to add the synchronization and remove this constraint. I think that the port->lock should be usable in most cases. Best Regards, Petr