LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
@ 2008-11-04 22:10 Yinghai Lu
2008-11-04 22:29 ` Ben Hutchings
2008-11-06 6:26 ` Ingo Molnar
0 siblings, 2 replies; 15+ messages in thread
From: Yinghai Lu @ 2008-11-04 22:10 UTC (permalink / raw)
To: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, Andrew Morton
Cc: linux-kernel, Ben Hutchings
Impact: so NR_IRQS is bigger enough for system with lots of apic/pins
Now: if IO_APIC is there, will have big NR_IRQS
otherwise still use 224
Signed-off-by: Yinghai <yinghai@kernel.org>
---
arch/x86/include/asm/irq_vectors.h | 20 ++++++--------------
1 file changed, 6 insertions(+), 14 deletions(-)
Index: linux-2.6/arch/x86/include/asm/irq_vectors.h
===================================================================
--- linux-2.6.orig/arch/x86/include/asm/irq_vectors.h
+++ linux-2.6/arch/x86/include/asm/irq_vectors.h
@@ -101,30 +101,22 @@
#define LAST_VM86_IRQ 15
#define invalid_vm86_irq(irq) ((irq) < 3 || (irq) > 15)
-#ifdef CONFIG_X86_64
+#if defined(CONFIG_X86_IO_APIC) && !defined(CONFIG_PARAVIRT) && !defined(CONFIG_X86_VISWS) && !defined(CONFIG_X86_VOYAGER)
# if NR_CPUS < MAX_IO_APICS
# define NR_IRQS (NR_VECTORS + (32 * NR_CPUS))
# else
# define NR_IRQS (NR_VECTORS + (32 * MAX_IO_APICS))
# endif
-#elif !defined(CONFIG_X86_VOYAGER)
+#elif defined(CONFIG_PARAVIRT) || defined(CONFIG_X86_VISWS) || defined(CONFIG_X86_VOYAGER)
-# if defined(CONFIG_X86_IO_APIC) || defined(CONFIG_PARAVIRT) || defined(CONFIG_X86_VISWS)
-
-# define NR_IRQS 224
-
-# else /* IO_APIC || PARAVIRT */
-
-# define NR_IRQS 16
-
-# endif
+# define NR_IRQS 224
-#else /* !VISWS && !VOYAGER */
+#else /* IO_APIC || PARAVIRT */
-# define NR_IRQS 224
+# define NR_IRQS 16
-#endif /* VISWS */
+#endif
/* Voyager specific defines */
/* These define the CPIs we use in linux */
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-04 22:10 [PATCH] x86: make NR_IRQS on 32bit is same to 64bit Yinghai Lu
@ 2008-11-04 22:29 ` Ben Hutchings
2008-11-04 22:34 ` Yinghai Lu
2008-11-06 6:26 ` Ingo Molnar
1 sibling, 1 reply; 15+ messages in thread
From: Ben Hutchings @ 2008-11-04 22:29 UTC (permalink / raw)
To: Yinghai Lu
Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel
On Tue, 2008-11-04 at 14:10 -0800, Yinghai Lu wrote:
>
> Impact: so NR_IRQS is bigger enough for system with lots of apic/pins
>
> Now: if IO_APIC is there, will have big NR_IRQS
>
> otherwise still use 224
[...]
I have no idea whether this is useful, but it doesn't solve the general
problem that probe_nr_irqs() can return a value > NR_IRQS. So far as I
can see it can return up to 2 * 24 * MAX_IO_APICS which may be greater
than NR_VECTORS + (32 * max(MAX_IO_APICS, NR_CPUS)).
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-04 22:29 ` Ben Hutchings
@ 2008-11-04 22:34 ` Yinghai Lu
0 siblings, 0 replies; 15+ messages in thread
From: Yinghai Lu @ 2008-11-04 22:34 UTC (permalink / raw)
To: Ben Hutchings
Cc: Ingo Molnar, Thomas Gleixner, H. Peter Anvin, Andrew Morton,
linux-kernel
Ben Hutchings wrote:
> On Tue, 2008-11-04 at 14:10 -0800, Yinghai Lu wrote:
>> Impact: so NR_IRQS is bigger enough for system with lots of apic/pins
>>
>> Now: if IO_APIC is there, will have big NR_IRQS
>>
>> otherwise still use 224
> [...]
>
> I have no idea whether this is useful, but it doesn't solve the general
> problem that probe_nr_irqs() can return a value > NR_IRQS. So far as I
> can see it can return up to 2 * 24 * MAX_IO_APICS which may be greater
> than NR_VECTORS + (32 * max(MAX_IO_APICS, NR_CPUS)).
your patch is still needed...
also please add one WARN_ON when nr > NR_IRQS.
YH
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-04 22:10 [PATCH] x86: make NR_IRQS on 32bit is same to 64bit Yinghai Lu
2008-11-04 22:29 ` Ben Hutchings
@ 2008-11-06 6:26 ` Ingo Molnar
2008-11-06 6:42 ` Yinghai Lu
1 sibling, 1 reply; 15+ messages in thread
From: Ingo Molnar @ 2008-11-06 6:26 UTC (permalink / raw)
To: Yinghai Lu
Cc: Thomas Gleixner, H. Peter Anvin, Andrew Morton, linux-kernel,
Ben Hutchings
* Yinghai Lu <yinghai@kernel.org> wrote:
> Impact: so NR_IRQS is bigger enough for system with lots of apic/pins
>
> Now: if IO_APIC is there, will have big NR_IRQS
>
> otherwise still use 224
>
> Signed-off-by: Yinghai <yinghai@kernel.org>
applied to tip/x86/urgent, thanks Yinghai! Below are the final form of
the two commit.
Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
for good? Mind sending a patch for that too?
Ingo
---------------->
commit 1b4897688011cd05e07f00dcfe6af3331eb36a3c
Author: Yinghai Lu <yinghai@kernel.org>
Date: Tue Nov 4 14:10:13 2008 -0800
x86: size NR_IRQS on 32-bit systems the same way as 64-bit
Impact: make NR_IRQS big enough for system with lots of apic/pins
If lots of IO_APIC's are there (or can be there), size the same way
as 64-bit, depending on MAX_IO_APICS and NR_CPUS.
This fixes the boot problem reported by Ben Hutchings on a 32-bit
server with 5 IO-APICs and 240 IO-APIC pins.
Signed-off-by: Yinghai <yinghai@kernel.org>
Tested-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h
index d843ed0..503aadc 100644
--- a/arch/x86/include/asm/irq_vectors.h
+++ b/arch/x86/include/asm/irq_vectors.h
@@ -101,30 +101,22 @@
#define LAST_VM86_IRQ 15
#define invalid_vm86_irq(irq) ((irq) < 3 || (irq) > 15)
-#ifdef CONFIG_X86_64
+#if defined(CONFIG_X86_IO_APIC) && !defined(CONFIG_PARAVIRT) && !defined(CONFIG_X86_VISWS) && !defined(CONFIG_X86_VOYAGER)
# if NR_CPUS < MAX_IO_APICS
# define NR_IRQS (NR_VECTORS + (32 * NR_CPUS))
# else
# define NR_IRQS (NR_VECTORS + (32 * MAX_IO_APICS))
# endif
-#elif !defined(CONFIG_X86_VOYAGER)
+#elif defined(CONFIG_PARAVIRT) || defined(CONFIG_X86_VISWS) || defined(CONFIG_X86_VOYAGER)
-# if defined(CONFIG_X86_IO_APIC) || defined(CONFIG_PARAVIRT) || defined(CONFIG_X86_VISWS)
-
-# define NR_IRQS 224
-
-# else /* IO_APIC || PARAVIRT */
-
-# define NR_IRQS 16
-
-# endif
+# define NR_IRQS 224
-#else /* !VISWS && !VOYAGER */
+#else /* IO_APIC || PARAVIRT */
-# define NR_IRQS 224
+# define NR_IRQS 16
-#endif /* VISWS */
+#endif
/* Voyager specific defines */
/* These define the CPIs we use in linux */
commit c78d0cf2925bffae8a6f00e7d9b8e971b0392edd
Author: Ben Hutchings <bhutchings@solarflare.com>
Date: Wed Nov 5 12:04:46 2008 +0000
x86: don't allow nr_irqs > NR_IRQS
Impact: fix boot hang on 32-bit systems with more than 224 IO-APIC pins
On some 32-bit systems with a lot of IO-APICs probe_nr_irqs() can
return a value larger than NR_IRQS. This will lead to probe_irq_on()
overrunning the irq_desc array.
I hit this when running net-next-2.6 (close to 2.6.28-rc3) on a
Supermicro dual Xeon system. NR_IRQS is 224 but probe_nr_irqs() detects
5 IOAPICs and returns 240. Here are the log messages:
Tue Nov 4 16:53:47 2008 ACPI: IOAPIC (id[0x01] address[0xfec00000] gsi_base[0])
Tue Nov 4 16:53:47 2008 IOAPIC[0]: apic_id 1, version 32, address 0xfec00000, GSI 0-23
Tue Nov 4 16:53:47 2008 ACPI: IOAPIC (id[0x02] address[0xfec81000] gsi_base[24])
Tue Nov 4 16:53:47 2008 IOAPIC[1]: apic_id 2, version 32, address 0xfec81000, GSI 24-47
Tue Nov 4 16:53:47 2008 ACPI: IOAPIC (id[0x03] address[0xfec81400] gsi_base[48])
Tue Nov 4 16:53:47 2008 IOAPIC[2]: apic_id 3, version 32, address 0xfec81400, GSI 48-71
Tue Nov 4 16:53:47 2008 ACPI: IOAPIC (id[0x04] address[0xfec82000] gsi_base[72])
Tue Nov 4 16:53:47 2008 IOAPIC[3]: apic_id 4, version 32, address 0xfec82000, GSI 72-95
Tue Nov 4 16:53:47 2008 ACPI: IOAPIC (id[0x05] address[0xfec82400] gsi_base[96])
Tue Nov 4 16:53:47 2008 IOAPIC[4]: apic_id 5, version 32, address 0xfec82400, GSI 96-119
Tue Nov 4 16:53:47 2008 ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
Tue Nov 4 16:53:47 2008 ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
Tue Nov 4 16:53:47 2008 Enabling APIC mode: Flat. Using 5 I/O APICs
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
diff --git a/arch/x86/kernel/io_apic.c b/arch/x86/kernel/io_apic.c
index b764d74..7a3f202 100644
--- a/arch/x86/kernel/io_apic.c
+++ b/arch/x86/kernel/io_apic.c
@@ -3611,6 +3611,8 @@ int __init probe_nr_irqs(void)
/* something wrong ? */
if (nr < nr_min)
nr = nr_min;
+ if (WARN_ON(nr > NR_IRQS))
+ nr = NR_IRQS;
return nr;
}
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 6:26 ` Ingo Molnar
@ 2008-11-06 6:42 ` Yinghai Lu
2008-11-06 6:52 ` H. Peter Anvin
0 siblings, 1 reply; 15+ messages in thread
From: Yinghai Lu @ 2008-11-06 6:42 UTC (permalink / raw)
To: Ingo Molnar, Jeremy Fitzhardinge
Cc: Thomas Gleixner, H. Peter Anvin, Andrew Morton, linux-kernel,
Ben Hutchings
On Wed, Nov 5, 2008 at 10:26 PM, Ingo Molnar <mingo@elte.hu> wrote:
>
> * Yinghai Lu <yinghai@kernel.org> wrote:
>
>> Impact: so NR_IRQS is bigger enough for system with lots of apic/pins
>>
>> Now: if IO_APIC is there, will have big NR_IRQS
>>
>> otherwise still use 224
>>
>> Signed-off-by: Yinghai <yinghai@kernel.org>
>
> applied to tip/x86/urgent, thanks Yinghai! Below are the final form of
> the two commit.
>
> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
> for good? Mind sending a patch for that too?
could remove CONFIG_PARAVIRT too.. Jeremy?
YH
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 6:42 ` Yinghai Lu
@ 2008-11-06 6:52 ` H. Peter Anvin
2008-11-06 7:00 ` Yinghai Lu
2008-11-06 21:59 ` Matt Mackall
0 siblings, 2 replies; 15+ messages in thread
From: H. Peter Anvin @ 2008-11-06 6:52 UTC (permalink / raw)
To: Yinghai Lu
Cc: Ingo Molnar, Jeremy Fitzhardinge, Thomas Gleixner, Andrew Morton,
linux-kernel, Ben Hutchings
Yinghai Lu wrote:
>>
>> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
>> for good? Mind sending a patch for that too?
>
> could remove CONFIG_PARAVIRT too.. Jeremy?
>
This seems like a bad idea, especially for the embedded guys.
-hpa
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 6:52 ` H. Peter Anvin
@ 2008-11-06 7:00 ` Yinghai Lu
2008-11-06 7:03 ` H. Peter Anvin
2008-11-06 21:59 ` Matt Mackall
1 sibling, 1 reply; 15+ messages in thread
From: Yinghai Lu @ 2008-11-06 7:00 UTC (permalink / raw)
To: H. Peter Anvin
Cc: Ingo Molnar, Jeremy Fitzhardinge, Thomas Gleixner, Andrew Morton,
linux-kernel, Ben Hutchings
On Wed, Nov 5, 2008 at 10:52 PM, H. Peter Anvin <hpa@zytor.com> wrote:
> Yinghai Lu wrote:
>>>
>>> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
>>> for good? Mind sending a patch for that too?
>>
>> could remove CONFIG_PARAVIRT too.. Jeremy?
>>
>
> This seems like a bad idea, especially for the embedded guys.
make one CONFIG_NR_IRQS for them before working out one dyna_array is
get merged?
YH
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 7:00 ` Yinghai Lu
@ 2008-11-06 7:03 ` H. Peter Anvin
2008-11-06 7:10 ` Yinghai Lu
2008-11-06 7:36 ` Yinghai Lu
0 siblings, 2 replies; 15+ messages in thread
From: H. Peter Anvin @ 2008-11-06 7:03 UTC (permalink / raw)
To: Yinghai Lu
Cc: Ingo Molnar, Jeremy Fitzhardinge, Thomas Gleixner, Andrew Morton,
linux-kernel, Ben Hutchings
Yinghai Lu wrote:
> On Wed, Nov 5, 2008 at 10:52 PM, H. Peter Anvin <hpa@zytor.com> wrote:
>> Yinghai Lu wrote:
>>>> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
>>>> for good? Mind sending a patch for that too?
>>> could remove CONFIG_PARAVIRT too.. Jeremy?
>>>
>> This seems like a bad idea, especially for the embedded guys.
>
> make one CONFIG_NR_IRQS for them before working out one dyna_array is
> get merged?
>
Ah, sorry... I missed the context and thought you meant removing
CONFIG_PARAVIRT in general.
-hpa
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 7:03 ` H. Peter Anvin
@ 2008-11-06 7:10 ` Yinghai Lu
2008-11-06 7:28 ` Yinghai Lu
2008-11-06 7:36 ` Yinghai Lu
1 sibling, 1 reply; 15+ messages in thread
From: Yinghai Lu @ 2008-11-06 7:10 UTC (permalink / raw)
To: H. Peter Anvin
Cc: Ingo Molnar, Jeremy Fitzhardinge, Thomas Gleixner, Andrew Morton,
linux-kernel, Ben Hutchings
On Wed, Nov 5, 2008 at 11:03 PM, H. Peter Anvin <hpa@zytor.com> wrote:
> Yinghai Lu wrote:
>>
>> On Wed, Nov 5, 2008 at 10:52 PM, H. Peter Anvin <hpa@zytor.com> wrote:
>>>
>>> Yinghai Lu wrote:
>>>>>
>>>>> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
>>>>> for good? Mind sending a patch for that too?
>>>>
>>>> could remove CONFIG_PARAVIRT too.. Jeremy?
>>>>
>>> This seems like a bad idea, especially for the embedded guys.
>>
>> make one CONFIG_NR_IRQS for them before working out one dyna_array is
>> get merged?
>>
>
> Ah, sorry... I missed the context and thought you meant removing
> CONFIG_PARAVIRT in general.
I mean make NR_IRQS bigger like IO_APIC is set when CONFIG_PARAVIRT is set.
YH
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 7:10 ` Yinghai Lu
@ 2008-11-06 7:28 ` Yinghai Lu
0 siblings, 0 replies; 15+ messages in thread
From: Yinghai Lu @ 2008-11-06 7:28 UTC (permalink / raw)
To: H. Peter Anvin
Cc: Ingo Molnar, Jeremy Fitzhardinge, Thomas Gleixner, Andrew Morton,
linux-kernel, Ben Hutchings
On Wed, Nov 5, 2008 at 11:10 PM, Yinghai Lu <yinghai@kernel.org> wrote:
> On Wed, Nov 5, 2008 at 11:03 PM, H. Peter Anvin <hpa@zytor.com> wrote:
>> Yinghai Lu wrote:
>>>
>>> On Wed, Nov 5, 2008 at 10:52 PM, H. Peter Anvin <hpa@zytor.com> wrote:
>>>>
>>>> Yinghai Lu wrote:
>>>>>>
>>>>>> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
>>>>>> for good? Mind sending a patch for that too?
>>>>>
>>>>> could remove CONFIG_PARAVIRT too.. Jeremy?
>>>>>
>>>> This seems like a bad idea, especially for the embedded guys.
>>>
>>> make one CONFIG_NR_IRQS for them before working out one dyna_array is
>>> get merged?
>>>
>>
>> Ah, sorry... I missed the context and thought you meant removing
>> CONFIG_PARAVIRT in general.
>
> I mean make NR_IRQS bigger like IO_APIC is set when CONFIG_PARAVIRT is set.
>
like
diff --git a/arch/x86/include/asm/irq_vectors.h
b/arch/x86/include/asm/irq_vectors.h
index 503aadc..0005adb 100644
--- a/arch/x86/include/asm/irq_vectors.h
+++ b/arch/x86/include/asm/irq_vectors.h
@@ -101,18 +101,18 @@
#define LAST_VM86_IRQ 15
#define invalid_vm86_irq(irq) ((irq) < 3 || (irq) > 15)
-#if defined(CONFIG_X86_IO_APIC) && !defined(CONFIG_PARAVIRT) &&
!defined(CONFIG_X86_VISWS) && !defined(CONFIG_X86_VOYAGER)
+#if defined(CONFIG_X86_IO_APIC) && !defined(CONFIG_X86_VOYAGER)
# if NR_CPUS < MAX_IO_APICS
# define NR_IRQS (NR_VECTORS + (32 * NR_CPUS))
# else
# define NR_IRQS (NR_VECTORS + (32 * MAX_IO_APICS))
# endif
-#elif defined(CONFIG_PARAVIRT) || defined(CONFIG_X86_VISWS) ||
defined(CONFIG_X86_VOYAGER)
+#elif defined(CONFIG_X86_VOYAGER)
# define NR_IRQS 224
-#else /* IO_APIC || PARAVIRT */
+#else /* IO_APIC || VOYAGER */
# define NR_IRQS 16
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 7:03 ` H. Peter Anvin
2008-11-06 7:10 ` Yinghai Lu
@ 2008-11-06 7:36 ` Yinghai Lu
2008-11-06 8:35 ` Ingo Molnar
1 sibling, 1 reply; 15+ messages in thread
From: Yinghai Lu @ 2008-11-06 7:36 UTC (permalink / raw)
To: H. Peter Anvin, Ingo Molnar
Cc: Jeremy Fitzhardinge, Thomas Gleixner, Andrew Morton,
linux-kernel, Ben Hutchings
H. Peter Anvin wrote:
> Yinghai Lu wrote:
>> On Wed, Nov 5, 2008 at 10:52 PM, H. Peter Anvin <hpa@zytor.com> wrote:
>>> Yinghai Lu wrote:
>>>>> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
>>>>> for good? Mind sending a patch for that too?
>>>> could remove CONFIG_PARAVIRT too.. Jeremy?
>>>>
>>> This seems like a bad idea, especially for the embedded guys.
>>
>> make one CONFIG_NR_IRQS for them before working out one dyna_array is
>> get merged?
>>
>
> Ah, sorry... I missed the context and thought you meant removing
> CONFIG_PARAVIRT in general.
>
---
[PATCH] x86: remove VISWS and PARAVIRT around NR_IRQS puzzle
Impact: fix warn when PARAVIRT is set in config
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
diff --git a/arch/x86/include/asm/irq_vectors.h b/arch/x86/include/asm/irq_vectors.h
index 503aadc..0005adb 100644
--- a/arch/x86/include/asm/irq_vectors.h
+++ b/arch/x86/include/asm/irq_vectors.h
@@ -101,18 +101,18 @@
#define LAST_VM86_IRQ 15
#define invalid_vm86_irq(irq) ((irq) < 3 || (irq) > 15)
-#if defined(CONFIG_X86_IO_APIC) && !defined(CONFIG_PARAVIRT) && !defined(CONFIG_X86_VISWS) && !defined(CONFIG_X86_VOYAGER)
+#if defined(CONFIG_X86_IO_APIC) && !defined(CONFIG_X86_VOYAGER)
# if NR_CPUS < MAX_IO_APICS
# define NR_IRQS (NR_VECTORS + (32 * NR_CPUS))
# else
# define NR_IRQS (NR_VECTORS + (32 * MAX_IO_APICS))
# endif
-#elif defined(CONFIG_PARAVIRT) || defined(CONFIG_X86_VISWS) || defined(CONFIG_X86_VOYAGER)
+#elif defined(CONFIG_X86_VOYAGER)
# define NR_IRQS 224
-#else /* IO_APIC || PARAVIRT */
+#else /* IO_APIC || VOYAGER */
# define NR_IRQS 16
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 7:36 ` Yinghai Lu
@ 2008-11-06 8:35 ` Ingo Molnar
0 siblings, 0 replies; 15+ messages in thread
From: Ingo Molnar @ 2008-11-06 8:35 UTC (permalink / raw)
To: Yinghai Lu
Cc: H. Peter Anvin, Jeremy Fitzhardinge, Thomas Gleixner,
Andrew Morton, linux-kernel, Ben Hutchings
* Yinghai Lu <yinghai@kernel.org> wrote:
> [PATCH] x86: remove VISWS and PARAVIRT around NR_IRQS puzzle
>
> Impact: fix warn when PARAVIRT is set in config
>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
applied to tip/x86/urgent, thanks Yinghai!
Ingo
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 6:52 ` H. Peter Anvin
2008-11-06 7:00 ` Yinghai Lu
@ 2008-11-06 21:59 ` Matt Mackall
2008-11-06 22:23 ` Ingo Molnar
1 sibling, 1 reply; 15+ messages in thread
From: Matt Mackall @ 2008-11-06 21:59 UTC (permalink / raw)
To: H. Peter Anvin
Cc: Yinghai Lu, Ingo Molnar, Jeremy Fitzhardinge, Thomas Gleixner,
Andrew Morton, linux-kernel, Ben Hutchings
On Wed, 2008-11-05 at 22:52 -0800, H. Peter Anvin wrote:
> Yinghai Lu wrote:
> >>
> >> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
> >> for good? Mind sending a patch for that too?
> >
> > could remove CONFIG_PARAVIRT too.. Jeremy?
> >
>
> This seems like a bad idea, especially for the embedded guys.
I'd actually really like to see us move to dynamically-allocated irq
tables as they're currently huge. But I haven't dug into it deeply
enough to see what sort of gotchas are involved.
--
Mathematics is the supreme nostalgia of our time.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 21:59 ` Matt Mackall
@ 2008-11-06 22:23 ` Ingo Molnar
2008-11-06 22:36 ` Matt Mackall
0 siblings, 1 reply; 15+ messages in thread
From: Ingo Molnar @ 2008-11-06 22:23 UTC (permalink / raw)
To: Matt Mackall
Cc: H. Peter Anvin, Yinghai Lu, Jeremy Fitzhardinge, Thomas Gleixner,
Andrew Morton, linux-kernel, Ben Hutchings
* Matt Mackall <mpm@selenic.com> wrote:
> On Wed, 2008-11-05 at 22:52 -0800, H. Peter Anvin wrote:
> > Yinghai Lu wrote:
> > >>
> > >> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
> > >> for good? Mind sending a patch for that too?
> > >
> > > could remove CONFIG_PARAVIRT too.. Jeremy?
> > >
> >
> > This seems like a bad idea, especially for the embedded guys.
>
> I'd actually really like to see us move to dynamically-allocated irq
> tables as they're currently huge. But I haven't dug into it deeply
> enough to see what sort of gotchas are involved.
sparseirq (== dynamic IRQ tables) is all implemented already, and most
of the details except the final feature-enabler are upstream already.
Ingo
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH] x86: make NR_IRQS on 32bit is same to 64bit
2008-11-06 22:23 ` Ingo Molnar
@ 2008-11-06 22:36 ` Matt Mackall
0 siblings, 0 replies; 15+ messages in thread
From: Matt Mackall @ 2008-11-06 22:36 UTC (permalink / raw)
To: Ingo Molnar
Cc: H. Peter Anvin, Yinghai Lu, Jeremy Fitzhardinge, Thomas Gleixner,
Andrew Morton, linux-kernel, Ben Hutchings
On Thu, 2008-11-06 at 23:23 +0100, Ingo Molnar wrote:
> * Matt Mackall <mpm@selenic.com> wrote:
>
> > On Wed, 2008-11-05 at 22:52 -0800, H. Peter Anvin wrote:
> > > Yinghai Lu wrote:
> > > >>
> > > >> Clean-up sidenote: i think we can now remove the VISWS #ifdef portion
> > > >> for good? Mind sending a patch for that too?
> > > >
> > > > could remove CONFIG_PARAVIRT too.. Jeremy?
> > > >
> > >
> > > This seems like a bad idea, especially for the embedded guys.
> >
> > I'd actually really like to see us move to dynamically-allocated irq
> > tables as they're currently huge. But I haven't dug into it deeply
> > enough to see what sort of gotchas are involved.
>
> sparseirq (== dynamic IRQ tables) is all implemented already, and most
> of the details except the final feature-enabler are upstream already.
Thanks for the pointer, I'd missed this going by.
--
Mathematics is the supreme nostalgia of our time.
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2008-11-06 22:37 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-04 22:10 [PATCH] x86: make NR_IRQS on 32bit is same to 64bit Yinghai Lu
2008-11-04 22:29 ` Ben Hutchings
2008-11-04 22:34 ` Yinghai Lu
2008-11-06 6:26 ` Ingo Molnar
2008-11-06 6:42 ` Yinghai Lu
2008-11-06 6:52 ` H. Peter Anvin
2008-11-06 7:00 ` Yinghai Lu
2008-11-06 7:03 ` H. Peter Anvin
2008-11-06 7:10 ` Yinghai Lu
2008-11-06 7:28 ` Yinghai Lu
2008-11-06 7:36 ` Yinghai Lu
2008-11-06 8:35 ` Ingo Molnar
2008-11-06 21:59 ` Matt Mackall
2008-11-06 22:23 ` Ingo Molnar
2008-11-06 22:36 ` Matt Mackall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).