WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [patch] base NR_DYNIRQS on CONFIG_NR_CPUS

To: Alex Williamson <alex.williamson@xxxxxx>, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [patch] base NR_DYNIRQS on CONFIG_NR_CPUS
From: Jes Sorensen <jes@xxxxxxx>
Date: Wed, 13 Jun 2007 14:21:51 +0200
Delivery-date: Wed, 13 Jun 2007 05:19:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (X11/20060527)
Hi,

This one is needed to boot more than 40 CPUs or we run out of IRQ
sources.

Cheers,
Jes

# HG changeset patch
# User jes@xxxxxxxxxxxxxxxx
# Date 1181737204 -7200
# Node ID c275cb400f8cbf4d4b71f142f6921601c401b882
# Parent  a87acf37aa004a51e6e8dfead05a941ff6ab087c
Determine the size of NR_DYNIRQS based on the size of
CONFIG_NR_CPUS. Hardcoding to 256 means things break when trying to
boot medium to large systems.

Signed-off-by: Jes Sorensen <jes@xxxxxxx>

diff -r a87acf37aa00 -r c275cb400f8c include/asm-ia64/irq.h
--- a/include/asm-ia64/irq.h    Tue Jun 12 22:02:27 2007 -0600
+++ b/include/asm-ia64/irq.h    Wed Jun 13 14:20:04 2007 +0200
@@ -32,7 +32,7 @@
 #define NR_DYNIRQS             256
 
 #define NR_IRQS                        (NR_PIRQS + NR_DYNIRQS)
-#define NR_IRQ_VECTORS         NR_IRQS
+#define NR_DYNIRQS             (CONFIG_NR_CPUS * 8)
 
 #define pirq_to_irq(_x)                ((_x) + PIRQ_BASE)
 #define irq_to_pirq(_x)                ((_x) - PIRQ_BASE)
_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel
<Prev in Thread] Current Thread [Next in Thread>