From: Andrew Morton <akpm@osdl.org>
To: Shaohua Li <shaohua.li@intel.com>
Cc: pavel@ucw.cz, linux-kernel@vger.kernel.org,
David Mosberger <davidm@napali.hpl.hp.com>
Subject: Re: Hotplug CPU printk issue
Date: Wed, 25 May 2005 20:48:28 -0700 [thread overview]
Message-ID: <20050525204828.70acc1b5.akpm@osdl.org> (raw)
In-Reply-To: <1117076334.4086.11.camel@linux-hp.sh.intel.com>
Shaohua Li <shaohua.li@intel.com> wrote:
>
> > --- a/kernel/printk.c 2005-04-12 10:12:19.000000000 +0800
> > +++ b/kernel/printk.c 2005-04-13 17:22:40.912897328 +0800
> > @@ -624,8 +624,7 @@ asmlinkage int vprintk(const char *fmt,
> > log_level_unknown = 1;
> > }
> >
> > - if (!cpu_online(smp_processor_id()) &&
> > - system_state != SYSTEM_RUNNING) {
> > + if (!cpu_online(smp_processor_id())) {
> > /*
> > * Some console drivers may assume that per-cpu resources have
> > * been allocated. So don't allow them to be called by this
> Andrew,
> Could above patch be put into mm tree?
Well not in that form. I'd appreciate being sent patches which are
applyable rather than mangled messes, please.
> It fixes the oops of CPU hotplug
> with radeon fb enabled.
> The reason is the per-cpu data (radeon fb calls kmalloc) isn't
> initialized when CPU hotplug is processing. system_state is
> SYSTEM_RUNNING for cpu hotplug.
That system_state test was explicitly added by davidm a year ago:
"- Allow printk on down cpus once system is running."
Please confirm that we in fact do not want to allow downed CPUs to
print things, then send a patch.
next prev parent reply other threads:[~2005-05-26 3:52 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-12 5:31 [PATCH 6/6]suspend/resume SMP support Li Shaohua
2005-04-12 9:43 ` Pavel Machek
2005-04-12 10:51 ` Pavel Machek
2005-04-12 12:40 ` Li Shaohua
2005-04-13 8:32 ` Pavel Machek
2005-04-14 8:27 ` Li Shaohua
2005-04-14 8:40 ` Li Shaohua
2005-04-23 22:35 ` Andrew Morton
2005-04-23 22:41 ` Pavel Machek
2005-04-25 0:49 ` Li Shaohua
2005-05-26 2:58 ` Hotplug CPU printk issue Shaohua Li
2005-05-26 3:48 ` Andrew Morton [this message]
2005-05-26 5:43 ` Shaohua Li
2005-05-26 5:52 ` Andrew Morton
2005-05-26 19:32 ` David Mosberger
2005-05-27 2:08 ` Rusty Russell
2005-04-28 7:22 ` [PATCH 6/6]suspend/resume SMP support Andrew Morton
2005-04-28 7:28 ` Li Shaohua
2005-04-28 7:41 ` Andrew Morton
2005-04-28 8:29 ` Li Shaohua
2005-04-28 8:35 ` Pavel Machek
2005-04-28 9:04 ` [ACPI] " Rafael J. Wysocki
2005-04-28 7:35 ` Li Shaohua
2005-04-28 7:42 ` Pavel Machek
2005-04-28 8:11 ` [ACPI] " Yu, Luming
2005-04-28 8:20 ` Pavel Machek
2005-04-28 8:34 ` Yu, Luming
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=20050525204828.70acc1b5.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=davidm@napali.hpl.hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=pavel@ucw.cz \
--cc=shaohua.li@intel.com \
/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®