Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2182555imb; Sun, 3 Mar 2019 21:24:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzjW5iPEsdpEnioCklK+EB7i8wwJ81Ccf+75OytkcAnX3FtV2mlNJQFKcySxLA1HFgZar+f X-Received: by 2002:aa7:918b:: with SMTP id x11mr18995694pfa.228.1551677060278; Sun, 03 Mar 2019 21:24:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551677060; cv=none; d=google.com; s=arc-20160816; b=nZnrorO6RuQSCTdH1BM1oMMPkAUclQxIKvBDF9tmpUqgl+l5n9xywh+BYpdAYILLeC gfflnugzdbSTT9kl1XBJEMm7xhhSGX8FZml82+JEDcqoXrxi0yLc84Qe8wSuJmYaaQCZ U0gJ77hm9sM6iUZRbW4yZpiY+m2AQBe35wl+lX5ZvzyzdMNok8+XMlRzQMgLXhVsiMGU hyytjlyisX/0X6UVKwinQwGbjgkr9iBe+iL6hlQG9Y5iciLYSUZavF4d3yPYABS0YJYw BFN4UspxFzBXQ/Cwvjt4Qt82A62HwK3/KlGWBacetid22+9SrRxs3oPG9bxSe0rGzolv NNcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OkuYknFFpL7AivetNE74ZYxUSsGQqIr+KvlrxvIEYA8=; b=cFMCUxhbEPUT96BxiF1BUHIesZR8TXcHg3dVrDcZx1FDnAXmSTpu6FSZs2Z6tokP/p I65EZmocFn9P7p45pIucFXEwZRd8YW+y3QgBi1Pk0ZEu02z2JgjZea5x/cZ4Fp9pv5EQ ROlOAWiVQQRMPC0QJTZgocd7KwkIwSnUm+SYJc94sebo4nZaOQuuuve2hGE5e8QQUIMh 8XPVtkOCzMzvpPqjU8sA/aibSH6RRtvG5WbgdI0i8G32G0NaJhzC6CnRyS9LbTEVYEeD wXOhhD0CEQY/ZkW3iCQWDm3TJHAyHvBw3txtaw/6GpT8+PuNU2cA+6eLSs7EtSDeRRxm rqRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=To6dHLSm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si4308684pgw.62.2019.03.03.21.24.03; Sun, 03 Mar 2019 21:24:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=To6dHLSm; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726017AbfCDFXl (ORCPT + 99 others); Mon, 4 Mar 2019 00:23:41 -0500 Received: from mail-pf1-f194.google.com ([209.85.210.194]:44819 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbfCDFXk (ORCPT ); Mon, 4 Mar 2019 00:23:40 -0500 Received: by mail-pf1-f194.google.com with SMTP id a3so2119922pff.11; Sun, 03 Mar 2019 21:23:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=OkuYknFFpL7AivetNE74ZYxUSsGQqIr+KvlrxvIEYA8=; b=To6dHLSmguVJcQ7IsXObQSRRFzwddSNq/YFhB6emj4W1bPOcuEpuqmGucj3Mdl1/R7 mH5Gl5fUW4A3v0C+Ov37k/6CuGYA4+9ByvjrNF2o3044WxP0aKuYCqMbprvRhLUr6aHs 9CvkVfuHWODgtP1vXMunysAWjLhzhJ6X0ls56e15XMQWfllv+S6SsKEMTn4i8yw4OHHd ZmoaVmwXiGsncvRKO4da8D0KUNphMrYlAFgcNy9RmSn0hSypnCEjFvyxFGcA9U7Tqslv wzG1TWvHrEsuKQN79enZnV/B4FEb7anUWuB6MNRw9EFiCsS32IUL2ESSZ6Cd0H1hhGND fxMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=OkuYknFFpL7AivetNE74ZYxUSsGQqIr+KvlrxvIEYA8=; b=ExEKYJiIp9rzCAWqgVNTkThfOPkVhUsD2Y6YcIPEVJKr+WVFE0UnRmFaAXPtN/Nnrb PLKyx1J/4tGTEAJpEVzJGJHH7V7ybqg7LzcPrXra0tSOaHzf6898JLpRO6m0U+/eizod P6sdWW/nKK5JPA5iKI1gF2sCZQYjJiwz04RbZg1tJEeEwXpxs32x5V/YPJAY+0U2bTtC XDUTwng51qzMwDTku34wgB1znCBbEL/yEFImDiMwfUwjHmeABmfcgrLWXGDHqbqLj/CQ n639USSiFqUwmrNvwLJlufAN3yV/J2TKzZ0SoKQGEBjPJVISj5RBIYnoabw9PwZ73Voz Ylgw== X-Gm-Message-State: APjAAAWf+SKDmSm8q/qwNILqkhLLZgNtBNE2CJplEWQm9nCTpJ9Wr3gz /7hmF+kRvyVMDB4vt4u/L/su3WCX X-Received: by 2002:a63:5a5e:: with SMTP id k30mr16926317pgm.345.1551677019633; Sun, 03 Mar 2019 21:23:39 -0800 (PST) Received: from localhost ([175.223.38.45]) by smtp.gmail.com with ESMTPSA id o76sm8731578pfa.156.2019.03.03.21.23.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Mar 2019 21:23:38 -0800 (PST) Date: Mon, 4 Mar 2019 14:23:35 +0900 From: Sergey Senozhatsky To: John Ogness Cc: Sergey Senozhatsky , linux-kernel@vger.kernel.org, Peter Zijlstra , Petr Mladek , 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 Message-ID: <20190304052335.GA6648@jagdpanzerIV> References: <20190212143003.48446-1-john.ogness@linutronix.de> <20190213025520.GA5803@jagdpanzerIV> <874l9721hf.fsf@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874l9721hf.fsf@linutronix.de> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (02/13/19 15:43), John Ogness wrote: > On 2019-02-13, Sergey Senozhatsky wrote: > >> - A dedicated kernel thread is created for printing to all consoles in > >> a fully preemptible context. > > > > How do you handle sysrq- printouts on systems which can't > > schedule printk-kthread? > > If those sysrq printouts are at the emergency loglevel (which most are), > then they are printed immediately to the emergency consoles. This has > already proved useful for our own kernel debugging work. For example, > currently sysrq-z for very large traces result in messages being dropped > because of printk buffer overflows. But with the emergency console we > always see the full trace buffer. Are we sure that all systems will always have ->atomic console(-s) enabled? Is it possible to convert all console drivers to ->atomic? fbcon, for instance (with scrolling and font scaling, etc)? If there are setups which can be fully !atomic (in terms of console output) then we, essentially, have a fully preemptible kthread printk implementation. > Because you have already done so much work and experimentation with > printk-kthreads, I feel like many of your comments are related to your > kthread work in this area. Really the big design change I make with my > printk-kthread is that it is only for non-critical messages. For > anything critical, users should rely on an emergency console. Fair point. Well maybe my printk-kthread comments are not utterly unreasonable, but who knows :) -ss