All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>, xen-devel@lists.xensource.com
Subject: Re: [PATCH 1/2] xen: events: do not workaround too-small nr_irqs
Date: Wed, 9 Feb 2011 11:21:36 -0500	[thread overview]
Message-ID: <20110209162136.GA6160@dumpdata.com> (raw)
In-Reply-To: <1297249845-32020-1-git-send-email-ian.campbell@citrix.com>

On Wed, Feb 09, 2011 at 11:10:44AM +0000, Ian Campbell wrote:
> This workaround was somewhat useful prior to the introduction of the
> core irq allocator and 026c9d2d0d75 "xen: events: allocate GSIs and
> dynamic IRQs from separate IRQ ranges." but should not be unnecessary now.
> 
> If nr_irqs turns out to be too small under Xen then we use (or define
> if necessary) the interfaces to increase nr_irqs rather than working
> around the core allocator in this way.
> 
> In my configuration NR_IRQS ends up being 2304 with nr_irq_gsi 272
> which is sufficient.

Is this configuration where you run Xen + Linux under QEMU?
> 
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> Cc: Jeremy Fitzhardinge <jeremy@goop.org>
> ---
>  drivers/xen/events.c |    7 -------
>  1 files changed, 0 insertions(+), 7 deletions(-)
> 
> diff --git a/drivers/xen/events.c b/drivers/xen/events.c
> index 975e90f..ce33061 100644
> --- a/drivers/xen/events.c
> +++ b/drivers/xen/events.c
> @@ -393,15 +393,8 @@ static int xen_allocate_irq_dynamic(void)
>  		first = get_nr_irqs_gsi();
>  #endif
>  
> -retry:
>  	irq = irq_alloc_desc_from(first, -1);
>  
> -	if (irq == -ENOMEM && first > NR_IRQS_LEGACY) {
> -		printk(KERN_ERR "Out of dynamic IRQ space and eating into GSI space. You should increase nr_irqs\n");
> -		first = max(NR_IRQS_LEGACY, first - NR_IRQS_LEGACY);
> -		goto retry;
> -	}
> -
>  	if (irq < 0)
>  		panic("No available IRQ to bind to: increase nr_irqs!\n");
>  
> -- 
> 1.5.6.5

  reply	other threads:[~2011-02-09 16:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-09 11:09 [PATCH 0/2] xen: events: a couple of minor cleanups Ian Campbell
2011-02-09 11:10 ` [PATCH 1/2] xen: events: do not workaround too-small nr_irqs Ian Campbell
2011-02-09 16:21   ` Konrad Rzeszutek Wilk [this message]
2011-02-09 16:57     ` Ian Campbell
2011-02-15 15:15     ` Ian Campbell
2011-02-16 16:14       ` Ian Campbell
2011-02-16 16:55         ` Konrad Rzeszutek Wilk
2011-02-16 17:06           ` Ian Campbell
2011-02-09 11:10 ` [PATCH 2/2] xen: events: propagate irq allocation failure instead of panicing Ian Campbell

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=20110209162136.GA6160@dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=ian.campbell@citrix.com \
    --cc=jeremy@goop.org \
    --cc=xen-devel@lists.xensource.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 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.