login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
February
»
13
Re: [PATCH 0/8] tip related: radix tree for spareseirq and logical flat clean up
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Eric W. Biederman
Subject:
Re: [PATCH 0/8] tip related: radix tree for spareseirq and logical flat clean up
Date: Saturday, February 13, 2010 - 5:04 am
Yinghai Lu <yinghai@kernel.org> writes:
quoted text
> On 02/12/2010 07:44 PM, Eric W. Biederman wrote: >> Yinghai Lu <yinghai@kernel.org> writes: >> >>> ---------spareirq radix tree related ---------------- >>> 94007e8: irq: remove not need bootmem code >>> 4b0d3fa: radix: move radix init early >>> 56af1a9: sparseirq: change irq_desc_ptrs to static >>> b236235: sparseirq: use radix_tree instead of ptrs array >>> 5918787: x86: remove arch_probe_nr_irqs >>> >>> so could reduce nr_irqs limitation for bunch ixgbe... >>> >>> ---------------x86 logical flat related ----------- >>> f5954c4: use nr_cpus= to set nr_cpu_ids early >>> 7b8d6a9: x86: use num_processors for possible cpus >>> d79d1de: x86: make 32bit apic flat to physflat switch like 64bit >> >> Thanks for keeping this work alive. >> >> I just skimmed through do_IRQ and I happened to notice that >> we have an unnecessary inefficiency that using a radix tree for >> irq_to_desc will magnify. >> >> handle_irq should take an struct irq_desc * instead of a unsigned int irq. >> >> and the per cpu vector_irq array should become a per cpu vector_desc array. >> >> As soon as irq_to_desc is more than &irq_desc[irq] this saves us work >> and cache line misses at the cost of a simple code cleanup. >> > > please check > > Subject: [PATCH] x86: use vector_desc instead of vector_irq > > Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path > of handle_irq. > use vector_desc to reduce the calling of irq_to_desc. > > next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc > > Signed-off-by: Yinghai Lu <yinghai@kernel.org> > > #ifdef CONFIG_X86_LOCAL_APIC > Index: linux-2.6/arch/x86/lguest/boot.c > =================================================================== > --- linux-2.6.orig/arch/x86/lguest/boot.c > +++ linux-2.6/arch/x86/lguest/boot.c > @@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void) > > for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) { > /* Some systems map "vectors" to interrupts weirdly. Not us! */ > - __get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR; > + __get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR); > if (i != SYSCALL_VECTOR) > set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]); > }
YH It appears that irq_to_desc_alloc_node has not been called yet so the setting of vector_desc needs to move to lguest_setup_irq. Eric --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 0/8] tip related: radix tree for spareseirq and lo ...
, Yinghai Lu
, (Fri Feb 12, 7:49 pm)
[PATCH 1/8] irq: remove not need bootmem code
, Yinghai Lu
, (Fri Feb 12, 7:49 pm)
[PATCH 2/8] radix: move radix init early
, Yinghai Lu
, (Fri Feb 12, 7:49 pm)
[PATCH 3/8] sparseirq: change irq_desc_ptrs to static
, Yinghai Lu
, (Fri Feb 12, 7:49 pm)
[PATCH 4/8] sparseirq: use radix_tree instead of ptrs array
, Yinghai Lu
, (Fri Feb 12, 7:49 pm)
[PATCH 5/8] x86: remove arch_probe_nr_irqs
, Yinghai Lu
, (Fri Feb 12, 7:49 pm)
[PATCH 7/8] x86: use num_processors for possible cpus
, Yinghai Lu
, (Fri Feb 12, 7:49 pm)
[PATCH 8/8] x86: make 32bit apic flat to physflat switch l ...
, Yinghai Lu
, (Fri Feb 12, 7:49 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Eric W. Biederman
, (Fri Feb 12, 8:44 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, H. Peter Anvin
, (Fri Feb 12, 8:49 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Eric W. Biederman
, (Fri Feb 12, 9:17 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Yinghai Lu
, (Sat Feb 13, 2:54 am)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Eric W. Biederman
, (Sat Feb 13, 4:39 am)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Eric W. Biederman
, (Sat Feb 13, 5:04 am)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Eric W. Biederman
, (Sat Feb 13, 5:26 am)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Yinghai Lu
, (Sat Feb 13, 3:36 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Yinghai Lu
, (Sat Feb 13, 3:40 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Eric W. Biederman
, (Sat Feb 13, 4:14 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Yinghai Lu
, (Sat Feb 13, 4:59 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Eric W. Biederman
, (Sat Feb 13, 5:30 pm)
Re: [PATCH 0/8] tip related: radix tree for spareseirq an ...
, Yinghai Lu
, (Sat Feb 13, 5:49 pm)
[PATCH 0/3] radix tree spareirq addon cleanup
, Yinghai Lu
, (Wed Feb 17, 7:49 pm)
[PATCH 1/3] xen: Remove unnecessary arch specific xen irq ...
, Yinghai Lu
, (Wed Feb 17, 7:49 pm)
[PATCH 2/3] x86: use vector_desc instead of vector_irq
, Yinghai Lu
, (Wed Feb 17, 7:50 pm)
[RFC PATCH 3/3] genericirq: change ack/mask in irq_chip to ...
, Yinghai Lu
, (Wed Feb 17, 7:50 pm)
Re: [RFC PATCH 3/3] genericirq: change ack/mask in irq_chi ...
, Eric W. Biederman
, (Thu Feb 18, 10:04 am)
Re: [RFC PATCH 3/3] genericirq: change ack/mask in irq_chi ...
, H. Peter Anvin
, (Thu Feb 18, 10:13 am)
Re: [PATCH 2/3] x86: use vector_desc instead of vector_irq
, Eric W. Biederman
, (Thu Feb 18, 10:22 am)
Re: [RFC PATCH 3/3] genericirq: change ack/mask in irq_chi ...
, Yinghai Lu
, (Thu Feb 18, 12:51 pm)
[tip:x86/irq] xen: Remove unnecessary arch specific xen ir ...
, tip-bot for Eric W. ...
, (Thu Feb 18, 6:36 pm)
[PATCH -v3 1/2] x86: use vector_desc instead of vector_irq
, Yinghai Lu
, (Mon Feb 22, 11:39 pm)
[PATCH -v2 2/2] genericirq: change ack/mask in irq_chip to ...
, Yinghai Lu
, (Mon Feb 22, 11:44 pm)
[PATCH -v3 2/2] genericirq: change ack/mask in irq_chip to ...
, Yinghai Lu
, (Wed Feb 24, 2:26 am)
[PATCH -v4 1/2] x86: use vector_desc instead of vector_irq
, Yinghai Lu
, (Wed Feb 24, 2:27 am)
Re: [PATCH -v2 2/2] genericirq: change ack/mask in irq_chi ...
, Eric W. Biederman
, (Wed Feb 24, 2:36 pm)
Re: [PATCH -v2 2/2] genericirq: change ack/mask in irq_chi ...
, Yinghai Lu
, (Wed Feb 24, 3:07 pm)
Re: [PATCH -v2 2/2] genericirq: change ack/mask in irq_chi ...
, Stephen Rothwell
, (Wed Feb 24, 5:22 pm)
Re: [PATCH -v2 2/2] genericirq: change ack/mask in irq_chi ...
, Thomas Gleixner
, (Tue Mar 2, 7:58 am)
Re: [PATCH -v2 2/2] genericirq: change ack/mask in irq_chi ...
, Yinghai Lu
, (Wed Mar 3, 1:49 am)
Re: [PATCH -v2 2/2] genericirq: change ack/mask in irq_chi ...
, Thomas Gleixner
, (Wed Mar 3, 3:26 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ken Chen
[patch] sched: fix inconsistency when redistribute per-cpu tg->cfs_rq shares.
Ingo Molnar
Re: [PATCH v3] x86: merge the simple bitops and move them to bitops.h
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Andi Kleen
Re: - romsignature-checksum-cleanup-2.patch removed from -mm tree
Stefano Stabellini
Re: [PATCH 09/22] xen: Find an unbound irq number in reverse order (high to low).
git
:
Junio C Hamano
Re: Teach "git checkout" to use git-show-ref
Christian Jaeger
Re: Problem with Git.pm bidi_pipe methods
Linus Torvalds
[PATCH 1/7] Make unpack_trees_options bit flags actual bitfields
Jon Smirl
stgit: managing signed-off-by lines
Junio C Hamano
GIT 1.4.3-rc2
git-commits-head
:
Linux Kernel Mailing List
MIPS: Bonito64: Make Loongson independent from Bonito64 code.
Linux Kernel Mailing List
iwlwifi: initialize spinlock before use
Linux Kernel Mailing List
i2c-i801: Add Intel Cougar Point device IDs
Linux Kernel Mailing List
drm/i915: Add information on pinning and fencing to the i915 list debug.
Linux Kernel Mailing List
cirrusfb: GD5434 (aka SD64) support fixed
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
Inaky Perez-Gonzalez
[PATCH 40/40] wimax/i2400m: add CREDITS and MAINTAINERS entries
Sathya Perla
[PATCH net-next-2.6] be2net: add multiple RX queue support
Changli Gao
Re: [PATCH 3/3] ifb: move tq from ifb_private
freebsd-current
:
Boris Samorodov
Re: twa + dump = sbwait
韓家標 Bill Hacker
Re: ZFS honesty
Bjoern A. Zeeb
Re: Can not boot 7.0-BETA3 with IPSEC
rmgls
man usb2_core(4)
Sam Leffler
Re: Lots of "ath0: bad series0 hwrate 0x1b" in 8.0-BETA2
Colocation donated by:
Syndicate