Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6207092ybe; Tue, 17 Sep 2019 22:55:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyfLZpqXI7W5/AnK+4zpUGt+GuthAhE6bz9gAjS+8JJ8KB8x8a0JpNMMnYp9SqtuCLAwA/8 X-Received: by 2002:a17:906:4c4c:: with SMTP id d12mr7954763ejw.174.1568786107161; Tue, 17 Sep 2019 22:55:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568786107; cv=none; d=google.com; s=arc-20160816; b=bu/ppbKScaQYtVPTtfN8yC4+s1QWq2YeB6JUG4ys+o4AqsHcWheKLF6jQzCnAGE2Mv ne1Q+UYuK9c28PrZFUtnAaIX6c7pUCR0E4uh/xeKvmJ0MqMRHcxqYNHKlcE075WL0hAh x63A6NwK1X4vMvVpgUXW6ceFdI8OymKcZ4pjc5hQxnHcPw/4ppcSCqKIuktTG+0i1yl2 1jm9a+PskiQH+0lmJkVNeW5IfWmx4GmInbt/mcDLRyomk545rskyTrkIIAoqHJpVKJgP IKf8Lrhi4STOWcFwPdQpWOYGxJx/TM7qTw7Xq7FcPSxwtxGBHGcLWVQub0F5/2cfTRG5 9zew== 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 :references:in-reply-to:message-id:subject:cc:to:from:date; bh=iFp4zXGB0zYOvM4OJWvmXKxBse1tzmsdeQk+3XGoQnE=; b=tyajNRpx3OetMc1B0+CiKxZ5+PPiHIP+NfEhU9kzDqCG2A4fSmT0CltNfmseN8wyj9 P1zYMOSbHfDOGEctvlNDaFUkqMQDRpX08D+IoK2UXSxsyS7130+X9CtzwrcaV4gwTp7d SAq3AiaZAkkikmCeYcfFtFyLv6bt6+r3AxL38lWBAmyloCS3VOIbMCQrptJI7jOJbVBQ xxxV9XQxXVbVA/VJ3X7k6HheSvdKdwnPE9pJDoS24jsOu66v5E0ZJ7sZsl8RNX3lNG6E O1qqS2GTasfhjxe+agvL04VGx3vtK3mHpQpgcYaZShQ/4f/tx+hx1uoqbSv5QmC93A+T Tixg== 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 d3si2254073ejw.31.2019.09.17.22.54.44; Tue, 17 Sep 2019 22:55:07 -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 S1726668AbfIRCIw (ORCPT + 99 others); Tue, 17 Sep 2019 22:08:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:58656 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbfIRCIw (ORCPT ); Tue, 17 Sep 2019 22:08:52 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 974BF214AF; Wed, 18 Sep 2019 02:08:50 +0000 (UTC) Date: Tue, 17 Sep 2019 22:08:49 -0400 From: Steven Rostedt To: Sergey Senozhatsky Cc: John Ogness , Linus Torvalds , Thomas Gleixner , Peter Zijlstra , Petr Mladek , Andrea Parri , Sergey Senozhatsky , Brendan Higgins , Greg Kroah-Hartman , LKML , Theodore Ts'o , Paul Turner , Daniel Vetter , Prarit Bhargava Subject: Re: printk meeting at LPC Message-ID: <20190917220849.17a1226a@oasis.local.home> In-Reply-To: <20190918012546.GA12090@jagdpanzerIV> References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190904123531.GA2369@hirez.programming.kicks-ass.net> <20190905130513.4fru6yvjx73pjx7p@pathway.suse.cz> <20190905143118.GP2349@hirez.programming.kicks-ass.net> <20190905121101.60c78422@oasis.local.home> <87k1acz5rx.fsf@linutronix.de> <20190918012546.GA12090@jagdpanzerIV> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 18 Sep 2019 10:25:46 +0900 Sergey Senozhatsky wrote: > On (09/13/19 15:26), John Ogness wrote: > > 2. A kernel thread will be created for each registered console, each > > responsible for being the sole printers to their respective > > consoles. With this, console printing is _fully_ decoupled from printk() > > callers. > > sysrq over serial? > > What we currently have is hacky, but, as usual, is a "best effort": > > >> serial driver IRQ > > serial_handle_irq() [console driver] > uart_handle_sysrq_char() > handle_sysrq() > printk() > call_console_drivers() > serial_write() [re-enter console driver] > > offloading this to kthread may be unreliable. But we also talked about an "emergency flush" which will not wait for the kthreads to finish and just output everything it can find in the printk buffers (expecting that the consoles have an "emergency" handler. We can add a sysrq to do an emergency flush. -- Steve