From: Rusty Russell <rusty@rustcorp.com.au>
To: davidm@hpl.hp.com
Cc: Andrew Morton <akpm@osdl.org>, Shaohua Li <shaohua.li@intel.com>,
pavel@ucw.cz, linux-kernel@vger.kernel.org,
davidm@napali.hpl.hp.com
Subject: Re: Hotplug CPU printk issue
Date: Fri, 27 May 2005 12:08:44 +1000 [thread overview]
Message-ID: <1117159724.1392.10.camel@localhost.localdomain> (raw)
In-Reply-To: <17046.9315.652129.602688@napali.hpl.hp.com>
On Thu, 2005-05-26 at 12:32 -0700, David Mosberger wrote:
> >>>>> On Wed, 25 May 2005 22:52:04 -0700, Andrew Morton <akpm@osdl.org> said:
>
> Andrew> Shaohua Li <shaohua.li@intel.com> wrote:
>
> >> > Please confirm that we in fact do not want to allow downed CPUs to
> >> > print things, then send a patch.
> >> Yep. In the cpu hotplug case, per-cpu data possibly isn't initialized
> >> even the system state is 'running'. As the comments say in the original
> >> code, some console drivers assume per-cpu resources have been allocated.
> >> radeon fb is one such driver, which uses kmalloc. After a CPU is down,
> >> the per-cpu data of slab is freed, so the system crashed when printing
> >> some info.
>
> Andrew> hm, that certainly sounds sane, but I do recall there were
> Andrew> reasonable-sounding reasons why the ia64 guys wanted
> Andrew> printk-on-a-down-CPU to work. Hopefully David can remember
> Andrew> what the problem was so we can find a more thorough fix.
>
> I don't recall having submitted such a patch. According to the bk
> log, it was Rusty who added the !system_running check (which was later
> changed to system_state != SYSTEM_RUNNING).
>
> The changelog only says:
>
> "- Allow printk on down cpus once system is running"
IIRC it was a great aid to debugging hotplug CPU, and there seemed no
reason to ban it. I mean, you have to be running code on a down CPU,
which implies you're in arch code or you've done something wrong... I
don't have religious attachment to it, however!
Cheers,
Rusty.
--
A bad analogy is like a leaky screwdriver -- Richard Braakman
next prev parent reply other threads:[~2005-05-27 2:09 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
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 [this message]
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=1117159724.1392.10.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=akpm@osdl.org \
--cc=davidm@hpl.hp.com \
--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
Powered by JetHome