Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754977AbZKWTDi (ORCPT ); Mon, 23 Nov 2009 14:03:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751558AbZKWTDi (ORCPT ); Mon, 23 Nov 2009 14:03:38 -0500 Received: from moutng.kundenserver.de ([212.227.17.8]:54566 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751382AbZKWTDh (ORCPT ); Mon, 23 Nov 2009 14:03:37 -0500 From: Arnd Bergmann To: "Chris Friesen" Subject: Re: RFC: Put printk buffer in video ram Date: Mon, 23 Nov 2009 20:03:31 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31-14-generic; KDE/4.3.2; x86_64; ; ) Cc: Ingo Molnar , Maxim Levitsky , Frederic Weisbecker , Arjan van de Ven , Dave Jones , "linux-kernel" , Linus Torvalds , Steven Rostedt , Andrew Morton , linuxppc-dev@lists.ozlabs.org References: <1258855506.3153.1.camel@maxim-laptop> <20091123183220.GB24482@elte.hu> <4B0ADA84.5050300@nortel.com> In-Reply-To: <4B0ADA84.5050300@nortel.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200911232003.31482.arnd@arndb.de> X-Provags-ID: V01U2FsdGVkX18A1DCViTXvSJ1I4W+5ZS780tp5F1m3juXVBu5 sJHlM7Fzk4thpFaiv1C6fDujx9jDpj2OgPspDOLJSNhX+qbLGB c9/PbvI46sNSJ8x3hPa0A== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1141 Lines: 23 On Monday 23 November 2009, Chris Friesen wrote: > We've had a mechanism sort of like this for quite a while. Hasn't been > pushed to mainline because it used board-specific hardware and we're > usually multiple kernel versions behind mainline. > > Anyways, a couple things that we've found to be useful are: > 1) The ability to allocate a chunk of this persistent memory area for a > special purpose. This allows things like memory-mapped circular buffers > for per-cpu binary data. > 2) An API to log just to this persistent area and bypass the normal > console completely. This can be useful when debugging issues where the > normal logging paths result in a hang. Some powerpc machines have a memory-mapped nvram, in which the kernel can install persistant 'partitions'. Not all of them are memory mapped, but for those that are (e.g. IBM QS22), your approach sounds perfect. Arnd <>< -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/