All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: Suresh Siddha <suresh.b.siddha@intel.com>
Cc: Alexander Gordeev <agordeev@redhat.com>,
	linux-kernel@vger.kernel.org, x86@kernel.org,
	gorcunov@openvz.org, Yinghai Lu <yinghai@kernel.org>
Subject: Re: [PATCH v2 2/3] x86, x2apic: limit the vector reservation to the user specified mask
Date: Mon, 25 Jun 2012 11:54:07 +0200	[thread overview]
Message-ID: <20120625095407.GA27081@gmail.com> (raw)
In-Reply-To: <CAE9FiQWjVVsr-AsKEJ6CLPaGLYEZ1XRAnKGHiJEHvkr3xsAJyA@mail.gmail.com>


* Yinghai Lu <yinghai@kernel.org> wrote:

> On Thu, Jun 21, 2012 at 3:02 PM, Suresh Siddha
> <suresh.b.siddha@intel.com> wrote:
> > For the x2apic cluster mode, vector for an interrupt is currently reserved on
> > all the cpu's that are part of the x2apic cluster. But the interrupts will
> > be routed only to the cluster (derived from the first cpu in the mask) members
> > specified in the mask. So there is no need to reserve the vector in the unused
> > cluster members.
> >
> > Modify __assign_irq_vector() to reserve the vectors based on the user
> > specified irq destination mask. If the new mask is a proper subset of
> > the currently used mask, cleanup the vector allocation on the unused cpu
> > members.
> >
> > Also, allow the apic driver to tune the vector domain based on the
> > affinity mask (which in most cases is the user-specified mask).
> >
> > Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
> > Acked-by: Yinghai Lu <yinghai@kernel.org>
> > ---
> >  arch/x86/include/asm/apic.h           |    9 ++++++---
> >  arch/x86/kernel/apic/apic_noop.c      |    3 ++-
> >  arch/x86/kernel/apic/io_apic.c        |   31 +++++++++++++++----------------
> >  arch/x86/kernel/apic/x2apic_cluster.c |    6 +++---
> >  4 files changed, 26 insertions(+), 23 deletions(-)
> >
> > diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
> > index b37fa12..c276809 100644
> > --- a/arch/x86/include/asm/apic.h
> > +++ b/arch/x86/include/asm/apic.h
> > @@ -306,7 +306,8 @@ struct apic {
> >        unsigned long (*check_apicid_used)(physid_mask_t *map, int apicid);
> >        unsigned long (*check_apicid_present)(int apicid);
> >
> > -       void (*vector_allocation_domain)(int cpu, struct cpumask *retmask);
> > +       void (*vector_allocation_domain)(int cpu, struct cpumask *retmask,
> > +                                        const struct cpumask *mask);
> 
> there is one left over for vsmp_64 need to be updated.
> 
> arch/x86/kernel/vsmp_64.c: In function ‘vsmp_apic_post_init’:
> arch/x86/kernel/vsmp_64.c:221:33: warning: assignment from
> incompatible pointer type [enabled by default]

Other than this omission the series looks good to me as well, if 
this is fixed and the Acked-by's of the three gents is added to 
all three patches then I can apply it to -tip.

Thanks,

	Ingo

  reply	other threads:[~2012-06-25  9:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-21 22:02 [PATCH v2 0/3] -tip cleanups/fixes for x2apic cluster mode routing Suresh Siddha
2012-06-21 22:02 ` [PATCH v2 1/3] x86, apic: optimize cpu traversal in __assign_irq_vector() using domain membership Suresh Siddha
2012-06-21 22:02 ` [PATCH v2 2/3] x86, x2apic: limit the vector reservation to the user specified mask Suresh Siddha
2012-06-23 22:04   ` Yinghai Lu
2012-06-25  9:54     ` Ingo Molnar [this message]
2012-06-21 22:02 ` [PATCH v2 3/3] x86, x2apic: use multiple cluster members for the irq destination only with the explicit affinity Suresh Siddha
2012-06-21 22:35   ` Yinghai Lu
2012-06-22  9:00   ` Alexander Gordeev
2012-06-21 22:39 ` [PATCH v2 0/3] -tip cleanups/fixes for x2apic cluster mode routing Cyrill Gorcunov

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=20120625095407.GA27081@gmail.com \
    --to=mingo@kernel.org \
    --cc=agordeev@redhat.com \
    --cc=gorcunov@openvz.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=suresh.b.siddha@intel.com \
    --cc=x86@kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.