The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: tglx@linutronix.de, hpa@zytor.com, steiner@sgi.com,
	yinghai@kernel.org, linux-kernel@vger.kernel.org,
	gorcunov@openvz.org
Subject: Re: [patch 1/5] x84_64, apic: Use probe routines to simplify apic selection
Date: Mon, 16 May 2011 10:08:44 +0200	[thread overview]
Message-ID: <20110516080844.GC27635@elte.hu> (raw)
In-Reply-To: <20110513181008.859892593@sbsiddha-MOBL3.sc.intel.com>


* Suresh Siddha <suresh.b.siddha@intel.com> wrote:

> From: Suresh Siddha <suresh.b.siddha@intel.com>
> Subject: x84_64, apic: Use probe routines to simplify apic selection
> 
> Use the unused probe routine in the apic driver to finalize the apic model
> selection. This cleans up the default_setup_apic_routing() and this probe
> routine in future can also be used for doing any apic model specific
> initialization.
> 
> Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
> Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
> ---
>  arch/x86/kernel/apic/apic_flat_64.c   |   10 +++++++++-
>  arch/x86/kernel/apic/probe_64.c       |   22 +++++++---------------
>  arch/x86/kernel/apic/x2apic_cluster.c |    7 ++++++-
>  arch/x86/kernel/apic/x2apic_phys.c    |   10 +++++++++-
>  arch/x86/kernel/apic/x2apic_uv_x.c    |    7 ++++++-
>  5 files changed, 37 insertions(+), 19 deletions(-)

Ok, looks like a step forward in the right direction.

Wouldnt it be more self-contained if the probe function returned an apic driver 
pointer?

We could add an __apicdriver section trick to 'know' about all APIC probing 
functions - and we'd call them one by one and use the first one that returns a 
non-NULL result.

Then we'd have the generic fallback APIC drivers as well - not marked 
__apicdriver but used by the probe function directly.

Or we could have them as __apicdriver as well, but then the .o link ordering 
matters to probing order.

Thanks,

	Ingo

  reply	other threads:[~2011-05-16  8:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-13 18:04 [patch 0/5] x2apic cluster optimization patches Suresh Siddha
2011-05-13 18:04 ` [patch 1/5] x84_64, apic: Use probe routines to simplify apic selection Suresh Siddha
2011-05-16  8:08   ` Ingo Molnar [this message]
2011-05-16  8:45     ` Cyrill Gorcunov
2011-05-16  9:03       ` Ingo Molnar
2011-05-16  9:48         ` Cyrill Gorcunov
2011-05-16 23:51     ` Suresh Siddha
2011-05-17 12:28       ` Ingo Molnar
2011-05-17 13:02         ` Thomas Gleixner
2011-05-19 23:54       ` Suresh Siddha
2011-05-13 18:04 ` [patch 2/5] x86, x2apic: Remove duplicate code for IPI mask routines Suresh Siddha
2011-05-13 18:04 ` [patch 3/5] x86, x2apic: Track the x2apic cluster sibling map Suresh Siddha
2011-05-13 18:04 ` [patch 4/5] x86, x2apic: Minimize IPI register writes using cluster groups Suresh Siddha
2011-05-13 18:04 ` [patch 5/5] x86, x2apic: Move the common bits to x2apic.h Suresh Siddha

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=20110516080844.GC27635@elte.hu \
    --to=mingo@elte.hu \
    --cc=gorcunov@openvz.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=steiner@sgi.com \
    --cc=suresh.b.siddha@intel.com \
    --cc=tglx@linutronix.de \
    --cc=yinghai@kernel.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