Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7776802ybh; Thu, 8 Aug 2019 23:17:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4filzieFTYgBNsXO+mMPm3vjY3BCl0OaPlu2sLKlV2bP5n54ZhSj1TVCS8g/+UaIqidJD X-Received: by 2002:a63:983:: with SMTP id 125mr14834339pgj.1.1565331446189; Thu, 08 Aug 2019 23:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565331446; cv=none; d=google.com; s=arc-20160816; b=kjXejsFJHe0xp/Aq3gUTsemQvcQ8AR6tdOa0Qbcmo6LXEGAVS1GQO1L9/Uz0yWJ+Mf 29MSnbVZKfx7wET1UMRGtsT9hIsVXADNbwjwexRnJwcaGDhb07gK4wzUdSZTYdZg9hXI x0JBRtfPBWkDfRxGsiBkqJoHrIp9W5/QHqonV/Ax3A5cBXsvd9/KjiPstIC9iytOxiED GQ08vAijWMshtbZMi2eV65eswzEh3F/seeGNdlcK8KqFvyf2/xBnbBIkL7uwBbR5c1Zl qolWbJshZotu9wvnNfXYyciL9jy6d8m6O8500f4w31LR4VOEyDw/OIWDnMU0UevAeoL1 2N7w== 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=jJMeCIZk1dJ4cGtAjfl9MWzK2vlDx5N7AdKbdBQf0T0=; b=GB9dQAZW3yZZKhzq4LyotrSYpg88uddknAboXH6D04iGt8Y0ILbxIrC0IOyCoEwxDh FrvQtelpCY/BcW+ixz27LPBCh332ne4rNen7DkjPPNhMBhS9EaQGM36QGscCa2O9YQLD klt0ZTL4xWE6FFs7/16En+tWHjDXDT4QjaEBSYmtCPkGVXp10o9ASwRIDVDnXEfZvlJG d3IjvIG+Cj2KVgtdhxVo6shLAvTkrNQ3NzX0WimdzX7VvmFgkIA3qNAmJtVOZarH3uwk ns4xVJXj7KUjUQQcgY2lu4swfOCHX5ST+ULeJ98aRRuGhLqCskkpam9u4fWX2cRiH7Ac kP1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HFTXmhtz; 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 j185si53937977pge.91.2019.08.08.23.17.09; Thu, 08 Aug 2019 23:17:26 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HFTXmhtz; 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 S2405510AbfHIGO6 (ORCPT + 99 others); Fri, 9 Aug 2019 02:14:58 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:55582 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbfHIGO5 (ORCPT ); Fri, 9 Aug 2019 02:14:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=jJMeCIZk1dJ4cGtAjfl9MWzK2vlDx5N7AdKbdBQf0T0=; b=HFTXmhtzNHNKhcj1E06ya8Mrl BwmS0s8MCZYi8hm1k8r27ynoKDjZy21hJ9Qv62FN/QH8G9CBoxK2phV1aWirhubv8dvNiP5sviQ01 +fHnkhey/jRvNTZiJBK1yhL3W/7LZ/zRNuTW6OhkbAl+Ppmywv4y/xCDX4izFbfVfpHnXu62g5kgg ytswo9emvNskg79gNwqALsG2orF3hijRXVKyqT0dKfP8mMc8cqlXE55J4lFt6mRWTbLnws3YRu4jb 6TSHLzYQSkS1dcrss8UCCW6tYXoASNa6xhNGDyzPSgn8b30Fno6K5p9jVtoCJZRTbugYRG9cOLHCI WOVA2eEcQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hvyAj-00055i-2z; Fri, 09 Aug 2019 06:14:41 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 5A1E2307764; Fri, 9 Aug 2019 08:14:11 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B38C120BE516F; Fri, 9 Aug 2019 08:14:37 +0200 (CEST) Date: Fri, 9 Aug 2019 08:14:37 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: John Ogness , 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 Message-ID: <20190809061437.GE2332@hirez.programming.kicks-ass.net> References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190807222634.1723-10-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.