mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Barry Song <Barry.Song@csr.com>
To: Baruch Siach <baruch@tkos.co.il>
Cc: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	DL-SHA-WorkGroupLinux <Workgroup.Linux@csr.com>,
	"linux-pm@lists.linux-foundation.org" 
	<linux-pm@lists.linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org" 
	<linux-arm-kernel@lists.infradead.org>
Subject: RE: [RFC][PATCH] printk: add boot_quiet param to support deferred printk while booting
Date: Fri, 23 Nov 2012 03:24:15 +0000	[thread overview]
Message-ID: <5EB3BFCD089AD643B9BB63439F5FD5E9012297F567@SHAASIEXM01.ASIA.ROOT.PRI> (raw)
In-Reply-To: <20121123030729.GB4030@tarshish>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 2087 bytes --]

Hi Baruch,
Thanks!

> -----Original Message-----
> From: Baruch Siach [mailto:baruch@tkos.co.il]
> Sent: Friday, November 23, 2012 11:07 AM
> To: Barry Song
> Cc: gregkh@linuxfoundation.org; DL-SHA-WorkGroupLinux;
> linux-pm@lists.linux-foundation.org; linux-kernel@vger.kernel.org;
> linux-arm-kernel@lists.infradead.org
> Subject: Re: [RFC][PATCH] printk: add boot_quiet param to support deferred
> printk while booting
> 
> Hi Barry,
> 
> On Fri, Nov 23, 2012 at 10:50:22AM +0800, Barry Song wrote:
> 
> [...]
> 
> > diff --git a/kernel/printk.c b/kernel/printk.c
> > index 2d607f4..0b88d6bf 100644
> > --- a/kernel/printk.c
> > +++ b/kernel/printk.c
> > @@ -250,6 +250,9 @@ static u32 clear_idx;
> >  #define LOG_ALIGN __alignof__(struct log)
> >  #endif
> >  #define __LOG_BUF_LEN (1 << CONFIG_LOG_BUF_SHIFT)
> > +static char __boot_log_buf[__LOG_BUF_LEN] __aligned(LOG_ALIGN);
> 
> Since we do not use this buffer when the system is running, is there a way to
> release it once its content has been written to console?
> 

Definitely yes. at this moment the code is just a RFC to get people's agreement about the idea.

i have a note in my RFC if you didn't miss :-)
" Note: This is only a RFC, after we agree about the idea, i will move the boot_log_buf to __initdata."

> baruch
> 
> > +static int boot_log_len;
> > +
> >  static char __log_buf[__LOG_BUF_LEN] __aligned(LOG_ALIGN);
> >  static char *log_buf = __log_buf;
> >  static u32 log_buf_len = __LOG_BUF_LEN;
> > @@ -1247,6 +1250,16 @@ module_param(ignore_loglevel, bool, S_IRUGO |
> S_IWUSR);
> 

-barry



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

      reply	other threads:[~2012-11-23  3:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-23  2:50 Barry Song
2012-11-23  3:07 ` Baruch Siach
2012-11-23  3:24   ` Barry Song [this message]

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=5EB3BFCD089AD643B9BB63439F5FD5E9012297F567@SHAASIEXM01.ASIA.ROOT.PRI \
    --to=barry.song@csr.com \
    --cc=Workgroup.Linux@csr.com \
    --cc=baruch@tkos.co.il \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®