Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2694451imi; Mon, 25 Jul 2022 06:01:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vALTxa1YR1l42xRrXPNFDRN3siWGqXDBgdHVUFz7FsaqPKAn4MYJyfpiQmXambHlram3Ud X-Received: by 2002:a17:902:a613:b0:168:a216:f3ff with SMTP id u19-20020a170902a61300b00168a216f3ffmr12018678plq.21.1658754078411; Mon, 25 Jul 2022 06:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658754078; cv=none; d=google.com; s=arc-20160816; b=h0hH4l0utsRue9LkKHfLYjPlRD4B96go0Qpx7V185ykUo9E0zFY40NmddSrD0m7TCG UOWJfXQW4f+LPixiPU7HTGTY2QebyXdze6qXVG/x5D5BM/aFsG7UXpdS5ovwjXr+1o9Y 5FVBOAvWyg0oLzSHbWY2xly1EKhckgDwK1mE+0rE/Q/EMQKFqSc4GCGGQahdVI1+CJLk HZGolQcCoR2aYFvM9OQ9TqjtQeg8BP8gWww+vQBOEpLAeYmLHbkSWJPZAhFCEMybR/8+ M6pB4lYhbPV6IqAc0Nw8Y+fKI/Rnplu8LNK6eraibBZBSLobI7fmtHoIqWJc+7zRN/xL XcbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=+DLSbK+uqqfR9tgBy7PVplOD816TsUxhQgdpTNoL8a4=; b=CIUQSUePj+c+g9AlUjty89PuMgNjBwne02/jelD4C5mQFLhNlYKn+s31XiXX86Vr7S whRBPKbAnd04kOqCD52vNDvkUzTEF5NdbnGj0T4d3sdXzbP/apw2uxvzHJVYgi3/7H0S YH6rDOhPcPrvhYeMy76uKb6AdjV6lu6DKyKCKe4twD5rDNMAa97dCnUhIBDX4pCQOrOv mpn+csb01e0DV4WOSKgq8Y4bFIipQY4biyvoe5l/UTKd892EDCWOdswrEvg7cplC6ifw yo4+VeAp6Sz8bXa/8jTHSeTF68VLxfuYTz74l5WidvD32gpMJb0YWiNEx/kVP6tgcbVf kqLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SHP1mc3Q; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="m8e/Nt2T"; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi11-20020a170902bf0b00b0016a675f7afdsi12340506plb.445.2022.07.25.06.01.00; Mon, 25 Jul 2022 06:01:18 -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=@linutronix.de header.s=2020 header.b=SHP1mc3Q; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="m8e/Nt2T"; 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=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235259AbiGYMvl (ORCPT + 99 others); Mon, 25 Jul 2022 08:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234269AbiGYMvj (ORCPT ); Mon, 25 Jul 2022 08:51:39 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA6EB65B9 for ; Mon, 25 Jul 2022 05:51:38 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1658753497; h=from:from:reply-to:subject:subject: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=+DLSbK+uqqfR9tgBy7PVplOD816TsUxhQgdpTNoL8a4=; b=SHP1mc3QcooOL8oEqqaq7tVM2b2zDSro9NXni6e0b0/z8oR33P7bymSraNtTllU4PtJwFh gR1/1rimJtiQyaNiHTAe9ssU5Hb3GrMDwcyBxE3oRAsXSYcydAhlbAvH1dxht9I4iYV7fa 47LkzGYbtPpaMJNHnf9LU7mPeOiIUSY+N9uUzrdAVjeCL6Si5QuUlDxn1Fn1kiyF1fx87h erepK/AyjPUNfHztmZYEFDeRTvxA/VtnRY2Ue9b+74T/N4yn7FC+QuKza4+liQIsqekPug 5Bloe2qSEAJ9ZqEuTDR22Z/rzrqVxsUfR5vpIsI+k1iF7KC0ZNjpsT7hoCj3ig== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1658753497; h=from:from:reply-to:subject:subject: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=+DLSbK+uqqfR9tgBy7PVplOD816TsUxhQgdpTNoL8a4=; b=m8e/Nt2TA/yLOa6we65bLhaa41UXA9Z18cYiXyazITlq4etMLAf4XZ/07dJxsJMh39Dm1M ZxZV2D5IgcNLVJAA== To: Petr Mladek , Sebastian Andrzej Siewior Cc: linux-kernel@vger.kernel.org, Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner Subject: Re: [PATCH v2] printk: Skip console drivers on PREEMPT_RT. In-Reply-To: References: <87y1wn3g3g.fsf@jogness.linutronix.de> <87ilnrn06u.fsf@jogness.linutronix.de> Date: Mon, 25 Jul 2022 14:57:36 +0206 Message-ID: <87zggxgxt3.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 2022-07-25, Petr Mladek wrote: > From my point, this patch does not make much sense. IMHO, it will > not make mainline usable with PREEMPT_RT. Any serious RT user will > need to revert it and apply a better printk solution from > the out-of-tree RT patchset. The problem is that direct console printing cannot work with PREEMPT_RT, even in a panic situation. And it never will (using "normal" console drivers). PREEMPT_RT is basically mainline now except for the kthread printers and atomic consoles. But these features will not be available in mainline so soon. (Atomic consoles have not gone through the LKML review process at all yet.) We see value in allowing PREEMPT_RT to be available now, even if it means no console printing. You claim "any serious RT user" needs console printing, but for production RT systems, the console is probably disabled anyway. We could solve this with kconfig tricks, making console kconfig options depend on !PREEMPT_RT. But that would cause the console config of users to be disabled, making it more inconvenient for them to turn it back on once these features are available. A software switch (as implemented by Sebastian's patch) may provide the simplest transition. A 5.20 PREEMPT_RT would not have console printing, but a later version (using the same config) would. John