Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp584608ybl; Fri, 9 Aug 2019 10:25:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqzt6AxqOql7ekA9hjFgu0N13RIIgT19n1iQ/yKlZW7Bm+QGlDquWC14tLnYrBnkVBa9KEfF X-Received: by 2002:a62:1d8f:: with SMTP id d137mr23082902pfd.207.1565371530140; Fri, 09 Aug 2019 10:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565371530; cv=none; d=google.com; s=arc-20160816; b=E6wKT3+J8GiNZ38RsmyEY5vqjt/HQuTtW+bJZrk5qrt1DTPC33Ekuir2jsbsfLcBvm nzdn+TB1ugTuhDZteqX8EHAb3BFZqWsjLMGnynnt64OW2iksxew5ruwW+B0HQroapA+m leKnb01+PC4uVupgPnf2jWeGHJUfHqc6X1MXXLWEQ4HVgUJL4EfabGjdZt3vrnEXICGl EJe/hwzxW22kzFQl5YIAHC5owqISebhwYxX3W31LNBBZVPdlM2sfFHtnLRPwCLG3LYob IWGJWgeanSySJVNNZFa2GM0pl1N53UuHLNgcsjcAld4+6Yf3Mb47NSK8cGiHxWiLx+yS hSAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=3hw1EThF49ZVmrirHVx3xJ+/yLizCNcME8lhFdH15rA=; b=G/wSQvR/kHwP2JYTa/9Xi2YzELTTp0D01e9FG2MHDcQFTDFslFBOBEJSRAhS0H3BJh mPvkZWqGS8fLXOhpt7NTFtDC/pL9p3+n+2SAnDCog7a1JwsIdMTCGkV8pTLfxlu4D+ub gs6r6h85D/Me0Z6U9gWak63W+NLsnfHF3CYj8WE23HAW4IdqcaM3Osu6sTFHR8XPAEHa DGAa+18d2qXIiuVBjV/C1JNzwnf6r1e+fr5dy+TZfrry2wfqBzmyJH62BUcRSlIiwJrc nKN5OjZA0wp1gK1Vz36cnrkoM8NNCNNWTkIochL2UuYdBjmGYk/lChWGWwTmNnDA3+rg 55Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fUOyGvI4; 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 26si57372538pgs.520.2019.08.09.10.25.14; Fri, 09 Aug 2019 10:25:30 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=fUOyGvI4; 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 S2436876AbfHIP5e (ORCPT + 99 others); Fri, 9 Aug 2019 11:57:34 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:42910 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436646AbfHIP5d (ORCPT ); Fri, 9 Aug 2019 11:57:33 -0400 Received: by mail-lj1-f195.google.com with SMTP id 15so757046ljr.9 for ; Fri, 09 Aug 2019 08:57:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3hw1EThF49ZVmrirHVx3xJ+/yLizCNcME8lhFdH15rA=; b=fUOyGvI4q2c8ONcDTRYdSI8Lfs0koNFtJ6XNM6ynnDLQmyJJ5RijaOpKAZ+CkfMBaY urrQafwrX1Y6QXbkzIN5h/x1UFafvL53kTh/L8fzKf9xl806tUsXeNdKwlvBANh9JrZK 2c0QpqfS73+EoY+EnbEHKWZqwtNvvfMyIR+UU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3hw1EThF49ZVmrirHVx3xJ+/yLizCNcME8lhFdH15rA=; b=tuG8YaLs2ev9K++oYVrXRmbGx8Uxpa2a/KJ+9mrUrYFfbYmyf/xb/amwFi51tj8xWf aqSTOEa83LS41p672cIi+z5EMtCh0QwVA6nlb10W+AwNr1X4B4vY01or0Om3wcWBXIBu oHI03jfxNhg1QCutt1YcigDd3yUz+zj78QrvqriPHcDBakIPGz8bE+lUUOUdKnrF/7eU taioKh0SShT8FqHur81c1GED6kSfv96zra9raAfX6gIo2CO5jlOhb7jDKtW43dPiu7HD mtEz4+n82ASiCFXXJ9/b10afQqMwKY0+ajHlLyTt+R4C9z19sYQ/g8urMM3MbxqsIuJR 7VuA== X-Gm-Message-State: APjAAAWRZFTrXA1WU/FM1jj1qa7H+dX2lPID6GJLZti5cypdvQCIExZM cJE8b16wYShUHuHgC6x3b7fTQqKlyY4= X-Received: by 2002:a2e:970a:: with SMTP id r10mr11135587lji.115.1565366251201; Fri, 09 Aug 2019 08:57:31 -0700 (PDT) Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com. [209.85.167.46]) by smtp.gmail.com with ESMTPSA id p21sm17587646lfc.41.2019.08.09.08.57.30 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 09 Aug 2019 08:57:30 -0700 (PDT) Received: by mail-lf1-f46.google.com with SMTP id p197so69831666lfa.2 for ; Fri, 09 Aug 2019 08:57:30 -0700 (PDT) X-Received: by 2002:ac2:48b8:: with SMTP id u24mr11368785lfg.170.1565366249804; Fri, 09 Aug 2019 08:57:29 -0700 (PDT) MIME-Version: 1.0 References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190807222634.1723-10-john.ogness@linutronix.de> <20190809061437.GE2332@hirez.programming.kicks-ass.net> In-Reply-To: <20190809061437.GE2332@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Fri, 9 Aug 2019 08:57:13 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v4 9/9] printk: use a new ringbuffer implementation To: Peter Zijlstra Cc: John Ogness , Linux List Kernel Mailing , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky , Brendan Higgins Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 8, 2019 at 11:14 PM Peter Zijlstra wrote: > > Note that you can hook this into printk as a fake early serial device; > just have the serial device write to the DRAM buffer. No, you really really can't. Look, the whole point of that reboot buffer is that it works WHEN NOTHING ELSE DOES. Very much including things like "oh, we're doing a suspend/resume, so the console lock is held to make sure we don't touch any devices that are likely dead right now". The poweroff buffer is not a console. Don't even try to think of it as one. It's for when consoles don't work. Trying to make it be an early-console would completely defeat the whole point. Even the "early console" stuff tries to honor serialization by console_lock and console_suspended etc. Or things like the "I'm in the middle of the scheduler, so I won't be doing any real logging". If the system works, and you get console output or you have a working syslogd that saves messages to disk, all of this is entirely irrelevant. Really. Don't think of it as a console. If you do, you're doing it wrong. Linus