Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3578278ybl; Mon, 12 Aug 2019 02:55:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRple5dA8zSSNnKQb0Y/Q9CJAI4ooRxtf/AmLyTJtx3N2GjlwVA/nSRO94tt1LDzfoYkDd X-Received: by 2002:a17:902:7d8b:: with SMTP id a11mr31903012plm.306.1565603746529; Mon, 12 Aug 2019 02:55:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565603746; cv=none; d=google.com; s=arc-20160816; b=cSpI/6NkOc1Rp6fPe5DxsKO6znz+x/y8LWWa4Rehsau3mHHit+9ef9nfqWvyVg6i3k z5ZO471iDt8dSv3iaOMekNessN0MI8Hb8Cjgkgqu8WUGd24aK7sj+Lc4iIApPCigqv2a cLbrvB7SK/9bUIFsbkrtE049udakzvXEUtDmXTcrFRbP4s8f400nKwpjSk2pT5jWhVRD gLErRVpiJp7tymr9xSf1dnPLqRmyB3zS/cVMPn0KNb03kRYCv+EcU0gKd/PBvZ9LI0n5 jkkslCXZ/yVCIk52Tpjrtg0gj5WR2wblilzcbLas9HM+8sfkfLMT1CSHxVei2GFhpFMZ ILLg== 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; bh=NyiRhF0oinF8VO6s9qv0dM4M43aUQYZRqosoyuIx644=; b=eQkrVrFPy/jgK7JdW8O1/KKB9OVPDfkEm+yp4zFJGGm0IKWEQnAO2Xb5ToUcYcAKWE YiGiZj7Gvz2KtYnI+XkBr/hJiuqHqk0ycvpBO7zn4cPmdqYc505bu7YhECgz/BiFnKNE 0nQVinIbvbPAeMiwyLcOgF/n2gw76so7HxDcMMgAqdesC6a0Fk7/UZrQe0+jY3+y85iW JUDiTVbd02SZBD3WZ8UHLNjVvUBPvEvmVMtW+hIAh4brNBKcEyQ6hgTjb12BK8nKZfmY xAIEBhApov23xxS26bQ+3a6ndYXj1kJBx0D22Ubm4vl4Ui9Fqcfec2Ezrw+zifHP7FtC SqBw== 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 o93si11385700pje.38.2019.08.12.02.55.31; Mon, 12 Aug 2019 02:55:46 -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 S1727692AbfHLJyN (ORCPT + 99 others); Mon, 12 Aug 2019 05:54:13 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:36369 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727140AbfHLJyN (ORCPT ); Mon, 12 Aug 2019 05:54:13 -0400 Received: by mail-ot1-f66.google.com with SMTP id k18so24472491otr.3 for ; Mon, 12 Aug 2019 02:54:13 -0700 (PDT) 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=NyiRhF0oinF8VO6s9qv0dM4M43aUQYZRqosoyuIx644=; b=ZsKW2jrZlwh2kk1yo0kkLyyGPJVrvNwYmazurnMymJ6hjspqXuZWopLNxH1KUUgdvz ckylzaaWGvqau11OrclR6L2aHxkHmt5+chQRJmkpYz6Nh30immnGkXDofnB+YWXxGcHT CGM459vsh2ciG1xG9ALDoQGvOXFp58yxJd2V8scVvZLexYrzH/fybkPPrqlzBTChGG0H MZv2SfcVhOT/j3rR8PHy2eilAo8E0E5wi0h272aXMu+cw7oCadaPaRQAXpT5EY7gzsE0 yDPEoKbEBUgEd1/cOZ3TkS3PlHLj1gw1Vel9gF5a6f3Safhr8SaQ3vOy7pLBnTw0akwo TA/w== X-Gm-Message-State: APjAAAUqgnFWB01qXed2nQ2LsYF8PnjmB1AA09RpEDWFdOABKck77UUG ZpAC6prGzRjCpqdJ2qWAsifE1jIbJ/xHQ9/Rz9g= X-Received: by 2002:a05:6808:3c5:: with SMTP id o5mr6213903oie.102.1565603652537; Mon, 12 Aug 2019 02:54:12 -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: Geert Uytterhoeven Date: Mon, 12 Aug 2019 11:54:00 +0200 Message-ID: Subject: Re: [RFC PATCH v4 9/9] printk: use a new ringbuffer implementation To: Peter Zijlstra Cc: Linus Torvalds , 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 Fri, Aug 9, 2019 at 8:16 AM Peter Zijlstra wrote: > On Thu, Aug 08, 2019 at 12:07:28PM -0700, Linus Torvalds 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. Yep. Amiga had debug=mem for years, to write kernel messages to Chip RAM, and retrieve them after a reboot. Cfr. amiga_console_driver and arch/m68k/tools/amiga/dmesg.c. BTW, with those old machines, it was not uncommon for DRAM retention time to be 30s or so. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds