Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1243475iog; Tue, 14 Jun 2022 02:07:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+4BCN6f8pfhf5QJ3PAFjG8Exj057Bc3sqKqY0E+mePifwvairPP0wvDz+JxtJyGguR/cZ X-Received: by 2002:a17:907:16a2:b0:711:d048:7d41 with SMTP id hc34-20020a17090716a200b00711d0487d41mr3327472ejc.126.1655197637443; Tue, 14 Jun 2022 02:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655197637; cv=none; d=google.com; s=arc-20160816; b=fWkAzuSTmV/g+fR0I0PjBEF/n8ZzQgSpJ8Dhm1Fy9ztRaSGxgSB4LMeJ/bRbpg1FKE GD3z3gwLDrwBMgq7gdMO+hCGU2ZJ0IBqNO7lW0scrIrrONVklJzu55NK8gYpC02BeQQI PzwNla6lGadaxe5RdTmg5CqdIBWhkZiosgL5rJRc7UUGsYof51jQiEt83xvck8oyRBTX ZfcEtfdqyyo/V94PAwzyrOCUo+5XsG/lXCC4x5gscOXuHeWu+uLkvMvsLLmYIf/JjSAo b2mYRTwCE9w/kX8z7rKO0mhZ14/bVg9j2GB3n2pNTW8x1EthW4rksc+n6OoOuQfQ0mKn 6qXw== 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=9VAXCbvSpeZ6BQdmzTuroDUERnJvufcYFBzvcgCeZIc=; b=nSAbMj4D5K61J02PehdXnFfFV61AZG13fjUvuBo9Uq/ZL1B8Kgp1D1z/8Ns6RpTg7d lXE692azGnd+MWS/TxTwLyVeaDuX8KUVjY5ijs19dtl1p6+CXqx5L7w1kCMyhprv4ZV3 fLEgw6P3sD5dKCkkabQw3710PPhlb5SlCrSv6rIwrr6ZxGkWrcozphATFZtxNmKEN51M gqB4cy+AK8dB8qI27knzYNXC5qKpwJDAgRTkp6sMIF7Q5fpWTATJBAHcAW3Oqe61dmHY itBlUEcEMRKfzLu18NczzzD9/R/aNvuitbq0vmhpJk9MUVquojCzk+QLcbl0rpWPmXMo 7CgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=dJBi3Ve8; 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 y13-20020a170906518d00b007156d6e22c3si9201170ejk.473.2022.06.14.02.06.51; Tue, 14 Jun 2022 02:07:17 -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=dJBi3Ve8; 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 S1355679AbiFNIiP (ORCPT + 99 others); Tue, 14 Jun 2022 04:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355548AbiFNIhT (ORCPT ); Tue, 14 Jun 2022 04:37:19 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5055B427C7 for ; Tue, 14 Jun 2022 01:37:18 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id EFEF71F894; Tue, 14 Jun 2022 08:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1655195836; 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=9VAXCbvSpeZ6BQdmzTuroDUERnJvufcYFBzvcgCeZIc=; b=dJBi3Ve8G9tUZpeQpfb4pVExJQ4QWW6xsgUbeN2qFwkEVdPxRDnhFu33OgfsShQGAQo79j WlROAXt3O4Xr0VmIfgi2O4OthbiAn6h1BkDFLfwDGK3pPwwb9FpzoSypd5V4jRVClVDcHp sYIqi7Jcy2pR6lomxZvMH9EXUUsY10c= Received: from suse.cz (unknown [10.100.201.202]) (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 BF3282C141; Tue, 14 Jun 2022 08:37:16 +0000 (UTC) Date: Tue, 14 Jun 2022 10:37:13 +0200 From: Petr Mladek To: David Laight Cc: Sergey Senozhatsky , John Ogness , Peter Geis , Linux Kernel Mailing List , "open list:ARM/Rockchip SoC..." Subject: Re: [BUG] Threaded printk breaks early debugging Message-ID: References: <87y1y48spg.fsf@jogness.linutronix.de> <8735g9mqo0.fsf@jogness.linutronix.de> <87wndlge43.fsf@jogness.linutronix.de> 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-13 16:11:19, David Laight wrote: > From: Petr Mladek > > Sent: 13 June 2022 11:14 > ... > > Another interesting alternative is the Peter Zijlstra's mode > > where all messages are printed to the console "immediately". > > They are serialized only by the CPU-reentrant lock. > > > > This mode is not good for production system. But it might > > be good for debugging. The good thing is that the behavior > > is well defined. > > ISTM that all messages should be output (even if this means > that cpu spin waiting for a serial console) until userspace > has a chance to set an option to change the behaviour. There are systems that do not boot because of softlockups caused by slow consoles. I am pretty sure that we will add the option to disable printk kthreads sooner or later. But we prefer to improve the code so that it works out of box. If we add the option already know then people will disable kthreads and do not report problematic scenarios. > Oh, and can someone stop the distros hiding the console output. > I want to see the 'oops' traceback when I break the kernel! Different users have different needs. AFAIK, distros hide the messages because they scare users and overload support. It is probably more effective to enable them only for debugging when users notice some malfunction. I do not know the details. I guess that there were years of evolution. The default in SUSE was probably set by some project managers or people taking care of boot splash, installation, ... Best Regards, Petr