From: Grant Erickson <gerickson@nuovations.com>
To: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Cc: Andrew Morton <akpm@linux-foundation.org>,
David Miller <davem@davemloft.net>,
Timo Juhani Lindfors <timo.lindfors@iki.fi>,
Wolfgang Denk <wd@denx.de>, <linux-kernel@vger.kernel.org>
Subject: Re: [RFC] Add Alternative Log Buffer Support for printk Messages
Date: Tue, 31 Mar 2009 08:58:03 -0700 [thread overview]
Message-ID: <C5F78B9B.15826%gerickson@nuovations.com> (raw)
In-Reply-To: <49D17E5D.30306@gmx.net>
On 3/30/09 7:22 PM, Carl-Daniel Hailfinger wrote:
> On 21.01.2009 18:39, Grant Erickson wrote:
>> This merges support for the previously DENX-only kernel feature of
>> specifying an alternative, "external" buffer for kernel printk
>> messages and their associated metadata. In addition, this ports
>> architecture support for this feature from arch/ppc to arch/powerpc.
>>
>> When this option is enabled, an architecture- or machine-specific log
>> buffer is used for all printk messages. This allows entities such as
>> boot loaders (e.g. U-Boot) to place printk-compatible messages into
>> this buffer and for the kernel to coalesce them with its normal
>> messages.
>>
>
> What is your current status for this patch? I'd like to make sure the
> implementation will not be incompatible with the coreboot log buffer.
Carl-Daniel:
Unfortunately, the project with which the patch was associated has since
wrapped up and I have not had the cycles in the intervening period to
follow-up "mainlining" the patch.
Philosophically, my perspective, based on the ensuing RFC dialog, is that my
preferred tack would be something akin to a log buffer driver model. For
99.99% of the cases, the standard would be the generic log buffer driver we
all know and use today.
However, under the driver model, also available would be the u-boot
read/write log buffer driver, the read-only
slurp-up-the-firmware-log-and-append driver proposed by Andrew, whatever
David proposes for Sparc, perhaps something slightly different for Coreboot,
etc. Some of these may/may not support ALL the options the generic driver
supports (e.g. resizing through a kernel parameter).
Compatibility on the back end among all these is a laudable goal; however,
given the varying requirements of the embedded space in which these variant
drivers are inevitably targeted, it seems unreasonable to expect they'll all
converge into a "one true log buffer driver".
So long as the front-end driver API is compatible with the current generic
driver, printk, klogd, etc., the kernel configurator is free to select the
driver that makes the most sense for his/her board/application/etc.
So, that's as far as I got with the philosophy. My next step would have been
creating drivers/log, moving the generic driver pieces there from
kernel/printk, establishing a u-boot driver as a representative variant,
roll in Andrew's feedback, etc.
Regards,
Grant
next parent reply other threads:[~2009-03-31 16:05 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <49D17E5D.30306@gmx.net>
2009-03-31 15:58 ` Grant Erickson [this message]
2009-02-18 21:27 [RFC] Add Alternative Log Buffer Support for printk Messages Timo Juhani Lindfors
-- strict thread matches above, loose matches on Subject: below --
2009-01-21 17:39 Grant Erickson
2009-01-21 20:37 ` David Miller
2009-01-27 13:36 ` Carl-Daniel Hailfinger
2009-01-30 19:51 ` Andrew Morton
2009-01-30 22:01 ` Grant Erickson
2009-01-30 22:28 ` Andrew Morton
2009-01-31 10:01 ` Wolfgang Denk
2009-01-31 9:59 ` Wolfgang Denk
2009-02-03 1:08 ` Carl-Daniel Hailfinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C5F78B9B.15826%gerickson@nuovations.com \
--to=gerickson@nuovations.com \
--cc=akpm@linux-foundation.org \
--cc=c-d.hailfinger.devel.2006@gmx.net \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=timo.lindfors@iki.fi \
--cc=wd@denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.