Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp2993364img; Mon, 25 Mar 2019 01:15:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxE7oOkeiGLMvobZfu2ciK8qx0VOJ1qpRSOofiD8/9k0SZBm3HQOx4NUg79rKp6nmeM1GYP X-Received: by 2002:a17:902:32b:: with SMTP id 40mr22960656pld.122.1553501732842; Mon, 25 Mar 2019 01:15:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553501732; cv=none; d=google.com; s=arc-20160816; b=H+AVyB14U+sQvnIvKoxMVnl+8CpBsjnugC5BSVTVc/hXXH3nc/nM+CtkUHaJbPcCbO ovfsgASIupcx4ynCPyva9I4WqRcMeoIZ8veywGxtEazvPXqRHrw+OKooujRs1947+fAQ /PrKmXxP8+yAIbDdNyf9ihw/0FyLsQJNZNSc/6ZCDqlEoNVfa/f4LfPMXg/A4usTy0EG yVPO6LomIn0Yu7ZTmLstYeY8kGAiJhUHG4JZpMoJ/F80V3LR1m3fWccLPStQS2wMnuJx UGM4jn6oPmc5y4W2B9Htyn6L3EOmH60CD/+WVJJLFQ6ph0g+eGsL85ufwNdhpWIukEl9 ppng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=y+xfPFAIZ9NGi6vKKQzh/bsI/oLzlELtbNw6l25wylo=; b=rISRTt/rrml3ENrkIT30uo6ikKu8LjYSG62LUs5AffOsX7RbnswUPAQ0SRn5rldmmy d/vqqWvE0boqAPgMyFIStSyOB1Se/9oMh8VtxNLLvHLUghenBLMLd35/DIGOkxK4qr1/ 6aKkL1Y0LokZbxAAIPV4EX7Ra+QOEvWZ7ti+opM8hbELA7P1wwzLJ/Fr09II2O3mIkI4 x6yLsGV/0FvYpqi9z421YH2YPALyzIGudfo9Ir7zmuND+1C2rUbko0Vjcze6bF0zklNK uQND3AaXhKOJkeOuRTTeQnJ22Ji7Qz1xKbjG72FTdtUiPv/jwSmSq6dQUGfxVVSU5+Lo eZFw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si4216553pgv.453.2019.03.25.01.15.17; Mon, 25 Mar 2019 01:15:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729990AbfCYINP (ORCPT + 99 others); Mon, 25 Mar 2019 04:13:15 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:44953 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729950AbfCYINP (ORCPT ); Mon, 25 Mar 2019 04:13:15 -0400 Received: from localhost ([127.0.0.1] helo=vostro.local) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1h8KjF-00052Y-TW; Mon, 25 Mar 2019 09:13:10 +0100 From: John Ogness To: Julien Grall Cc: Sebastian Andrzej Siewior , Thomas Gleixner , LKML , linux-rt-users , Steven Rostedt , Dave P Martin Subject: Re: [ANNOUNCE] v5.0.3-rt1 References: <20190320171511.icjhdlulgal2yeho@linutronix.de> <791056c4-3575-0bd8-031e-44d0e3b21e54@arm.com> Date: Mon, 25 Mar 2019 09:13:08 +0100 In-Reply-To: <791056c4-3575-0bd8-031e-44d0e3b21e54@arm.com> (Julien Grall's message of "Fri, 22 Mar 2019 18:52:48 +0000") Message-ID: <87tvfrs76z.fsf@linutronix.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-03-22, Julien Grall wrote: > Apologies for a possible stupid question. It's an important question because the behavior of console printing has changed. (Or, rather, is in the process of being changed. Depending on complaints/approval, it may change some more.) > On 20/03/2019 17:15, Sebastian Andrzej Siewior wrote: >> - Applied John Ogness' prinkt rework. One visible change is the >> output during boot. Under the hood and for RT: By default, output >> that is created at KERN_WARN[0] or higher is printed immediately if the >> console supports "atomic" print (currently the 8250 driver does). >> This output is printed immediately (and visible) even from IRQ-off >> or preempt-disabled regions which wasn't the case earlier. This will >> raise the latency at run-time *but* there should be no WARNING, >> ERROR or PANIC messages at run-time on a fully working system. >> Messages with lower severity are printed "later" by a kthread. > > Using 5.0.3-rt1, I get some warning message completely mangled with > the rest of the output (e.g systemd message) but also between > them. Some excerpt of a 500 lines lockdep warning (AFAICT the printk > is not related to the printk code): > > [ 52.294547] 005: ... which became HARDIRQ-irq-unsafe at: > [ 52.294553] 005: ... > [ 52.294554] 005: lock_acquire+0xf8/0x318 > [ OK ] Reached target > t_spin_lock+0x48/0x70 lock_acquire+0xf8/0x318 > [0;1;39mRemote File Systems.[ 52.294570] 005: iommu_dma_map_msi_msg+0x5c/0x1 > > [ 52.296824] 005: CPU: 5 PID: 2108 Comm: ip Not tainted 5.0.3-rt1-00007-g42ede > 9a0fed6 #4312] 005: __sys_sendmsg+0x68/0xb8 > > I understand the new series add support for "atomic" print. So I am > wondering whether this issue is related to it? Is there any advice to > prevent the mangling? The atomic print allows important messages to be print immediately (regardless of the context of the printer). This means that if any other context was already printing, it will be interrupted. This cannot be synchronized without causing significant scheduling delays. The atomic messages always do the interrupting and will continue to the end of the line. So it should be possible to piece the non-atomic messages back together. However, I am a bit confused by your output. Is it possible that I could see the full boot log? The main goal of the atomic messages is so that you never lose any important messages. To help readability, perhaps the atomic messages should begin with a '\n' as well? John Ogness