Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7821067ybh; Fri, 9 Aug 2019 00:09:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIRjC8p+RsFV8SpN1GhP6LjJ8oKWum4Zf5DhYq9cm3Bv82u+byCb3dE31GP6ZzB3ShHaFj X-Received: by 2002:a63:b904:: with SMTP id z4mr15845976pge.388.1565334592778; Fri, 09 Aug 2019 00:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565334592; cv=none; d=google.com; s=arc-20160816; b=Xo8pkUjdnorzTlAm3kIEzetMH1gBbwTxeOLcVu9+6AsjK6NpTfv4wAfsBDSVUuF4zs 47ofZVA1il2LD351sqO/mS5U4OLoyL0duF6kVTK1sNj/sBo4GjNUZP5bTNl/eJJ1hTpZ EBDAiYfu8FqH5jTvsmB7HRIAmAOyuHxY9/PUT9cyetCf8uYFjsB8iM4vMlkCFEqs7jEl 8yvNM4YQVxVW+z2deNXiI2kI41c5SB5VvsfqfW0+pMos+lWOLSAEIsHIh08LjLJN5oKB b2GKzqIAZ1DYsr62cJEYJFdbl7twIBhOEXMkKJLAEusIBUJENgJLXAYHo2rsv2f9m+qL 7eUw== 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=lF82+6j2TBccdKBMGS17w4i2PoRELK842v3KNicaGO0=; b=XK9QFqSPFtryiR1B3C4QFXfxDfxVEB0OJAymGitrJGUxbYrmdhNKb+hHBcvpx7DOKR 8J/P1XQEfjen99K5QcXiDRc8zjJzvlFrdZIISfrIiqp2trCZNLeQgMdf8ZrkAwEDeUfi NnJM7macmsLv9zgNnezTzRI1QjP5LY4H44d+RgX1LckCUPkwsTIgSR5b4UUvLfj1BV9p adfVciakr83TFBRTvpT3mzRCPtpiH1jKavoEkL2plcolux9HBc5IjcFpMOj0hW8mShLB mZzAI0TgCydcW848gHlA0XpkIEztMvnbzp576f7UWOkyv2GErh0NB3cXlV80D6sphZQE OpxA== 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 a36si3728408pje.14.2019.08.09.00.09.35; Fri, 09 Aug 2019 00:09:52 -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 S2405700AbfHIHIh (ORCPT + 99 others); Fri, 9 Aug 2019 03:08:37 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:55033 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbfHIHIh (ORCPT ); Fri, 9 Aug 2019 03:08:37 -0400 Received: from localhost ([127.0.0.1] helo=vostro.local) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1hvz0l-0007YS-IM; Fri, 09 Aug 2019 09:08:27 +0200 From: John Ogness To: Peter Zijlstra Cc: Linus Torvalds , Linux List Kernel Mailing , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky , Brendan Higgins Subject: Re: [RFC PATCH v4 9/9] printk: use a new ringbuffer implementation References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190807222634.1723-10-john.ogness@linutronix.de> <20190809061437.GE2332@hirez.programming.kicks-ass.net> Date: Fri, 09 Aug 2019 09:08:25 +0200 In-Reply-To: <20190809061437.GE2332@hirez.programming.kicks-ass.net> (Peter Zijlstra's message of "Fri, 9 Aug 2019 08:14:37 +0200") Message-ID: <87mugix1cm.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-08-09, Peter Zijlstra wrote: >> End result: a DRAM buffer can work, but is not "reliable". >> Particularly if you turn power on and off, data retention of DRAM is >> iffy. But it's possible, at least in theory. >> >> So I have a patch that implements a "stupid ring buffer" for thisa >> case, with absolutely zero data structures (because in the presense of >> DRAM corruption, all you can get is "hopefully only slightly garbled >> ASCII". > > Note that you can hook this into printk as a fake early serial device; > just have the serial device write to the DRAM buffer. Or the other way around, implement a fake console to handle writing the messages (as they are being emitted from printk) to some special area. Then the messages would even be pre-processed so that all meta-data is already in ASCII form. John Ogness