Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp321974imj; Wed, 13 Feb 2019 08:55:26 -0800 (PST) X-Google-Smtp-Source: AHgI3IZwW86Uf6jSu6SR6sanL9i4Kr0IYbd0MXnHwnolRfKr1zxQtvCRl/8uDBLEYGIAKrvJIOD2 X-Received: by 2002:a63:2e06:: with SMTP id u6mr1290826pgu.71.1550076926546; Wed, 13 Feb 2019 08:55:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550076926; cv=none; d=google.com; s=arc-20160816; b=rfvMJvMr9it8Ic75dI4pmi4q010fLiRJQY17SYhoVAS5FCzJFDMUwQIsEec1VunBV/ ThlulSCgoMrERvWHqD0h1Rgb+dSlUqwqRRy6VjOHkOgiC8ivr7bsxmeCYuc56wzTQaH0 JwkUQJ9pLVP/8zTt1JlI+HN5fwjtMY+ukmLdU9B3LI+FJQLX1fnHa3wEiy0LHtlCAIkA 5QclZOrMuvcuvF3Vx4a3+cbsYYcoMH0JnrRA7hGdJKSL2td2MMekLO1wghJ75QgPOfaA EuaGFaTlZVI2Kyg8nBjr0yiD1zI5x1+O2YTnyith32xAg3MrcvJXR5/UJfftogWfcW8y Z6tQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=EHoQESPdPAKm52qicecnuZjvWPq4I1uVJIPeUv2Ud4Y=; b=VJTxvbki7vlrKV84gw3Mi0GOoHt6GiK9jj/fA7mFi4DEPDzWE5Nfgv2k1yTaZxF3rD ZuHF8rOmI2TNz+BOhTkEIbvxBFZCO131YkEEzNEjnFufW00MdN98VXSY/I99jd3578aC gfzT29WVgIVdYAuZYvW6ynoJOA9BnKyYb0b9ZmqeWC90PT6Fs7Tm/g2lEQHVO6LfgnKW IuXokMlOES1w1cQvWr8VSFy5fDF4uxcFCJrmqPxuRiF2jcwci56QuFz60bp8u3La206D VsWGWUiAiYnNPaAfoCTU+yMbTLook2BnMbw4I0PisFKZmhTKZGc0+etZzhiTtzT7g7NK 4AuQ== 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 p7si1750524pgh.84.2019.02.13.08.55.10; Wed, 13 Feb 2019 08:55:26 -0800 (PST) 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 S2392789AbfBMQxg convert rfc822-to-8bit (ORCPT + 99 others); Wed, 13 Feb 2019 11:53:36 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([146.101.78.151]:24852 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392559AbfBMQxg (ORCPT ); Wed, 13 Feb 2019 11:53:36 -0500 Received: from AcuMS.aculab.com (156.67.243.126 [156.67.243.126]) (Using TLS) by relay.mimecast.com with ESMTP id uk-mta-131-5bfnswKhP721ybj2SXPzFA-1; Wed, 13 Feb 2019 16:53:32 +0000 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b::d117) by AcuMS.aculab.com (fd9f:af1c:a25b::d117) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 13 Feb 2019 16:54:15 +0000 Received: from AcuMS.Aculab.com ([fe80::43c:695e:880f:8750]) by AcuMS.aculab.com ([fe80::43c:695e:880f:8750%12]) with mapi id 15.00.1347.000; Wed, 13 Feb 2019 16:54:15 +0000 From: David Laight To: 'John Ogness' , "linux-kernel@vger.kernel.org" CC: Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Daniel Wang , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , Alan Cox , Jiri Slaby , Peter Feiner , "linux-serial@vger.kernel.org" , Sergey Senozhatsky Subject: RE: [RFC PATCH v1 00/25] printk: new implementation Thread-Topic: [RFC PATCH v1 00/25] printk: new implementation Thread-Index: AQHUwt+yw0tokMnSLkaf/+oK4gykJqXd8fOw Date: Wed, 13 Feb 2019 16:54:15 +0000 Message-ID: <6f965383270d45d6ac26529fec5ad470@AcuMS.aculab.com> References: <20190212143003.48446-1-john.ogness@linutronix.de> In-Reply-To: <20190212143003.48446-1-john.ogness@linutronix.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 X-MC-Unique: 5bfnswKhP721ybj2SXPzFA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Ogness > Sent: 12 February 2019 14:30 ... > - A dedicated kernel thread is created for printing to all consoles in > a fully preemptible context. > > - A new (optional) console operation "write_atomic" is introduced that > console drivers may implement. This function must be NMI-safe. An > implementation for the 8250 UART driver is provided. > > - The concept of "emergency messages" is introduced that allows > important messages (based on a new emergency loglevel threshold) to > be immediately written to any consoles supporting write_atomic, > regardless of the context. ... Does this address my usual 'gripe' that the output is written to the console by syslogd and not by the kernel itself? When you are trying to find out where the system is completely deadlocking you need the 'old fashioned' completely synchronous kernel printf(). David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)