mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: "Yu, Fenghua" <fenghua.yu@intel.com>
Cc: Ingo Molnar <mingo@elte.hu>, H Peter Anvin <hpa@zytor.com>,
	"Luck, Tony" <tony.luck@intel.com>,
	"Mallick, Asit K" <asit.k.mallick@intel.com>,
	"Siddha, Suresh B" <suresh.b.siddha@intel.com>,
	"Brown, Len" <len.brown@intel.com>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH 8/8] kernel/cpu.c: Define bsp_hotpluggable variable
Date: Wed, 5 Oct 2011 23:19:36 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LFD.2.02.1110052247520.18778@ionos> (raw)
In-Reply-To: <493994B35A117E4F832F97C4719C4C040136F7CCB1@orsmsx505.amr.corp.intel.com>

On Wed, 5 Oct 2011, Yu, Fenghua wrote:

> > -----Original Message-----
> > From: Thomas Gleixner [mailto:tglx@linutronix.de]
> > Sent: Wednesday, October 05, 2011 12:25 PM
> > To: Yu, Fenghua
> > Cc: Ingo Molnar; H Peter Anvin; Zwane Mwaikambo; Luck, Tony; Mallick,
> > Asit K; Siddha, Suresh B; Len Brown; linux-kernel
> > Subject: Re: [PATCH 8/8] kernel/cpu.c: Define bsp_hotpluggable variable
> > 
> > On Wed, 5 Oct 2011, Fenghua Yu wrote:
> > 
> > > From: Fenghua Yu <fenghua.yu@intel.com>
> > >
> > > This gloable variable controls BSP (aka CPU0) hotplug. If set, BSP is
> > > hotpluggable. By default, it's 0. On X86, kernel option
> > bsp_hotpluggable sets
> > > the variable as 1.
> > 
> > .... and on !x86 its just pointless.
> 
> I'll change the variable to an inline function which returns bsp_hotpluggable on x86 and is empty function on !x86.
> 

Can you finally fix your mail client, please ? It want's to look like
this:

> I'll change the variable to an inline function which returns
> bsp_hotpluggable on x86 and is empty function on !x86.

No, that's wrong again. This needs to be in the arch function not in
some random sysfs file op. Someone else pointed it out to you already,
that it's racy as well.

> > 
> > I have yet to see a justification for that whole cpu0 unplugging
> > business.
> > 
> > If there is a real reason that this is desireable, then ALL cpu0
> > assumptions in arch/x86 need to be cleaned up and fixed.
> 
> I can think of two reasons for bsp offline/online:
> 
> 1. RAS needs the feature. If socket0 needs to be hotplugged for any
>    reason (any thread on socket0 is bad, shared cache issue, uncore
>    issue, etc), CPU0 is required to be offlined.

That sounds like a reasonable requirement, which should have been
mentioned in the 0/N mail to a patch series to avoid such questions.

> 2. CPU0 is symmetrical to other CPU's. There is no specific reason
>    why it shouldn't be offlined except BIOS requirements.

That's not a reason at all. And "except BIOS requirements" might be
actually a reason NOT to do that.
 
Though as this needs to be runtime enabled, I have no general
objections against doing it, but it has to be done right.

To do that proper, it needs

   - to fixup _ALL_ cpu 0 assumptions in arch/x86 and not just hacking
     around some of them

   - a proper mechanism to deal with hardware which cannot handle it
     (i.e. no IOAPIC .....)

   - proper fixups for set up but unused irqs like irq0

   - ....

Thanks,

	tglx

  reply	other threads:[~2011-10-05 21:19 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05 16:39 [PATCH 0/8] Online/offline BSP on x86 Fenghua Yu
2011-10-05 16:39 ` [PATCH 1/8] x86, apic.c: Disable irq0 if CPU enables ARAT for local apic timer Fenghua Yu
2011-10-05 18:47   ` Thomas Gleixner
2011-10-05 19:12     ` Yu, Fenghua
2011-10-05 19:38       ` Thomas Gleixner
2011-10-05 20:11         ` Yu, Fenghua
2011-10-06  2:43           ` Andi Kleen
2011-10-05 16:39 ` [PATCH 2/8] x86/mtrr/main.c: Ask the first online CPU to save mtrr Fenghua Yu
2011-10-05 19:03   ` Srivatsa S. Bhat
2011-10-05 16:39 ` [PATCH 3/8] x86, i387.c: thread xstate is initialized only on BSP once Fenghua Yu
2011-10-05 18:49   ` Thomas Gleixner
2011-10-05 19:53     ` Yu, Fenghua
2011-10-05 16:39 ` [PATCH 4/8] kernel/workqueue.c: unbound work queue rescuer runs on first cpu in cpumask_online_cpu Fenghua Yu
2011-10-05 18:52   ` Thomas Gleixner
2011-10-05 19:19     ` Peter Zijlstra
2011-10-05 20:00       ` Tejun Heo
2011-10-05 16:39 ` [PATCH 5/8] x86, common.c, smpboot.c: Init BSP during BSP online and don't offline BSP if irq is bound to it Fenghua Yu
2011-10-05 19:13   ` Thomas Gleixner
2011-10-05 16:39 ` [PATCH 6/8] x86, topology.c: Enable CPU0 online/offline Fenghua Yu
2011-10-05 19:20   ` Thomas Gleixner
2011-10-05 23:05     ` Yu, Fenghua
2011-11-03 22:47     ` Yu, Fenghua
2011-11-07  2:11       ` Len Brown
2011-11-07 21:02         ` Yu, Fenghua
2011-10-05 16:39 ` [PATCH 7/8] kernel/power/main.c: Not suspend/resume if CPU0 is offlined Fenghua Yu
2011-10-05 18:37   ` Srivatsa S. Bhat
2011-10-05 19:22   ` Thomas Gleixner
2011-10-05 16:39 ` [PATCH 8/8] kernel/cpu.c: Define bsp_hotpluggable variable Fenghua Yu
2011-10-05 19:25   ` Thomas Gleixner
2011-10-05 20:25     ` Yu, Fenghua
2011-10-05 21:19       ` Thomas Gleixner [this message]
2011-10-05 19:16 ` [PATCH 0/8] Online/offline BSP on x86 Peter Zijlstra
2011-10-05 19:22   ` Yu, Fenghua
2011-10-05 19:28     ` Peter Zijlstra
2011-10-05 20:29       ` Yu, Fenghua
2011-10-05 20:37         ` Peter Zijlstra

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=alpine.LFD.2.02.1110052247520.18778@ionos \
    --to=tglx@linutronix.de \
    --cc=asit.k.mallick@intel.com \
    --cc=fenghua.yu@intel.com \
    --cc=hpa@zytor.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=suresh.b.siddha@intel.com \
    --cc=tony.luck@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