login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
October
»
7
Re: [patch 00/47] Sparse irq rework
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Thomas Gleixner
Subject:
Re: [patch 00/47] Sparse irq rework
Date: Wednesday, October 6, 2010 - 9:01 pm
On Wed, 6 Oct 2010, Yinghai Lu wrote:
quoted text
> On 10/06/2010 04:37 PM, Yinghai Lu wrote: > > On 10/06/2010 03:52 PM, Thomas Gleixner wrote: > >> On Wed, 6 Oct 2010, Yinghai Lu wrote: > >> > >>> On 10/05/2010 03:22 AM, Thomas Gleixner wrote: > >>>> On Sun, 3 Oct 2010, Thomas Gleixner wrote: > >>>>> On Sun, 3 Oct 2010, Grant Likely wrote: > >>>>>> Okay, patch 14 looks good to me too (including Yinghai's comment). > >>>>>> The new allocator seems sane, and I didn't see any obvious errors in > >>>>>> patches 16-47. I've not tested any of this yet. Hopefully I'll be > >>>>>> able to carve out some time to do so early this week. > >>>>> > >>>>> Wait until I pushed out a fixed tree. In meantime I found out how I > >>>>> managed to screw up the quilt series :( > >>>>> > >>>>> Will post, once it's ready. > >>>> > >>>> Pushed out an updated tree to > >>>> > >>>> git://git.kernel.org/pub/scm/linux/kernel/git/tglx/linux-2.6-sparse-irq.git master > >>>> > >>> > >>> test it together with tip, it seems all io apic routing is not set rightly. MSI is ok... > >>> > >>> [ 200.290040] ehci_hcd 0000:00:1d.7: PCI INT A -> GSI 23 (level, low) -> IRQ 23 > >>> [ 200.290991] ehci_hcd 0000:00:1d.7: setting latency timer to 64 > >>> [ 200.310002] ehci_hcd 0000:00:1d.7: EHCI Host Controller > >>> [ 200.310455] ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 1 > >>> [ 200.330127] ehci_hcd 0000:00:1d.7: debug port 1 > >>> [ 200.334395] ehci_hcd 0000:00:1d.7: cache line size of 256 is not supported > >>> [ 200.350042] ehci_hcd 0000:00:1d.7: request interrupt 23 failed > >>> [ 200.350491] ehci_hcd 0000:00:1d.7: USB bus 1 deregistered > >>> [ 200.372257] ehci_hcd 0000:00:1d.7: PCI INT A disabled > >>> [ 200.372644] ehci_hcd 0000:00:1d.7: init 0000:00:1d.7 fail, -38 > >>> [ 200.389916] ehci_hcd: probe of 0000:00:1d.7 failed with error -38 > >> > >> Yep. Ingo's testing found that already. Does the patch below fix it ? > >> > >> Thanks, > >> > >> tglx > >> --- > >> diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c > >> index 2f171df..eb3d01d 100644 > >> --- a/arch/x86/kernel/apic/io_apic.c > >> +++ b/arch/x86/kernel/apic/io_apic.c > >> @@ -252,11 +252,15 @@ static struct irq_cfg *alloc_irq_and_cfg_at(unsigned int at, int node) > >> static struct irq_cfg *get_irq_cfg_at(unsigned int at, int node) > >> { > >> int res = irq_alloc_desc_at(at, node); > >> + struct irq_data *data; > >> > >> if (res < 0 && res != -EEXIST) > >> return NULL; > >> > >> - return get_irq_chip_data(at); > >> + data = irq_get_irq_data(at); > >> + if (res >= 0 && !data->chip_data) > >> + data->chip_data = alloc_irq_cfg(at, node); > >> + return data->chip_data; > >> } > >> > >> static int alloc_irq_from(unsigned int from, int node) > > > > yes, it fixes the problem. > > > > but can you merge get_irq_cfg_at() and alloc_irq_and_cfg_at() ? > > it's confusing to let get_...() to do the alloc work.
Well, I'm not too happy about this preallocated stuff anyway, which is the reason for the warning below.
quoted text
> [ 80.726176] WARNING: at drivers/pci/intr_remapping.c:67 irq_2_iommu_alloc+0x52/0xdc() > [ 80.745935] Hardware name: Sun Fire X4800 > [ 80.746179] irq_2_iommu!=NULL irq 8
Thanks, tglx --
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 00/47] Sparse irq rework
, Thomas Gleixner
, (Thu Sep 30, 4:14 pm)
[patch 01/47] x86: Plug memory leak in sparse irq
, Thomas Gleixner
, (Thu Sep 30, 4:14 pm)
[patch 02/47] x86: Hpet: Fix bogus error check in hpet_ass ...
, Thomas Gleixner
, (Thu Sep 30, 4:14 pm)
[patch 03/47] genirq: Provide status modifier
, Thomas Gleixner
, (Thu Sep 30, 4:14 pm)
[patch 04/47] arm: Use irq status modifier
, Thomas Gleixner
, (Thu Sep 30, 4:14 pm)
[patch 05/47] genirq-sanitize-irq-data-accessors.patch
, Thomas Gleixner
, (Thu Sep 30, 4:14 pm)
[patch 06/47] genirq: Distangle kernel/irq/handle.c
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 07/47] genirq: Remove early_init_irq_lock_class()
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 08/47] genirq: Move core only inlines to kernel/irq
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 09/47] isdn: hisax: Replace the bogus access to irq ...
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 10/47] genirq: Remove export of kstat_irqs_cpu
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 11/47] genirq: Provide default irq init flags
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 12/47] arm: Use ARCH_IRQ_INIT_FLAGS
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 13/47] powerpc: Use ARCH_IRQ_INIT_FLAGS
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 14/47] genirq: Implement a sane sparse_irq allocator
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 15/47] genirq: Prepare proc for real sparse irq support
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 16/47] genirq: Implement sane enumeration
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 17/47] genirq-update-kerneldoc.patch
, Thomas Gleixner
, (Thu Sep 30, 4:15 pm)
[patch 18/47] genirq: Use sane sparse allocator
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 19/47] genirq: Query arch for number of early descr ...
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 20/47] x86: Remove useless reinitialization of irq ...
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 21/47] x86: Sanitize apb timer interrupt handling
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 22/47] x86: lguest: Convert to new irq chip functions
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 23/47] x86: Cleanup visws interrupt handling
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 24/47] x86: i8259: Convert to new irq_chip functions
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 25/47] x86: Cleanup io_apic
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 26/47] x86: io_apic: Convert startup to new irq_chi ...
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 27/47] x86: ioapic: Convert mask to new irq_chip fu ...
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 28/47] x86: ioapic/hpet: Convert to new chip functions
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 29/47] pci: Convert msi to new irq_chip functions
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 30/47] dmar: Convert to new irq chip functions
, Thomas Gleixner
, (Thu Sep 30, 4:16 pm)
[patch 31/47] ht: Convert to new irq_chip functions
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 32/47] x86: ioapic: Clean up the direct access to i ...
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 33/47] pci: Cleanup the irq_desc mess in msi
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 34/47] x86: ioapic: Convert irq affinity to new chi ...
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 35/47] x86: ioapic: Cleanup some more
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 36/47] x86: ioapic: Cleanup sparse irq code
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 37/47] x86: uv: Clean up the direct access to irq_desc
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 38/47] x86: Use sane enumeration
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 39/47] genirq: Remove arch_init_chip_data()
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 40/47] genirq: Sanitize dynamic irq handling
, Thomas Gleixner
, (Thu Sep 30, 4:17 pm)
[patch 41/47] arm: davinci: Cleanup irq_desc access
, Thomas Gleixner
, (Thu Sep 30, 4:18 pm)
[patch 42/47] genirq: Remove the now unused sparse irq lef ...
, Thomas Gleixner
, (Thu Sep 30, 4:18 pm)
[patch 43/47] x86: xen: Sanitise sparse_irq handling
, Thomas Gleixner
, (Thu Sep 30, 4:18 pm)
[patch 44/47] sh: Sanitize sparse irq
, Thomas Gleixner
, (Thu Sep 30, 4:18 pm)
[patch 45/47] x86: lguest: Use new irq allocator
, Thomas Gleixner
, (Thu Sep 30, 4:18 pm)
[patch 46/47] powerpc: Use new irq allocator
, Thomas Gleixner
, (Thu Sep 30, 4:18 pm)
[patch 47/47] genirq: Remove the old sparse irq allocator ...
, Thomas Gleixner
, (Thu Sep 30, 4:18 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Benjamin Herrenschmidt
, (Thu Sep 30, 5:42 pm)
Re: [patch 00/47] Sparse irq rework
, Linus Torvalds
, (Thu Sep 30, 8:32 pm)
Re: [patch 14/47] genirq: Implement a sane sparse_irq allo ...
, Yinghai Lu
, (Thu Sep 30, 10:28 pm)
Re: [patch 40/47] genirq: Sanitize dynamic irq handling
, Yinghai Lu
, (Thu Sep 30, 10:47 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Thu Sep 30, 10:54 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Thomas Gleixner
, (Fri Oct 1, 6:07 am)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Fri Oct 1, 1:35 pm)
Re: [patch 14/47] genirq: Implement a sane sparse_irq allo ...
, Thomas Gleixner
, (Fri Oct 1, 1:36 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Benjamin Herrenschmidt
, (Fri Oct 1, 1:46 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Grant Likely
, (Fri Oct 1, 2:11 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Benjamin Herrenschmidt
, (Fri Oct 1, 2:17 pm)
Re: [patch 16/47] genirq: Implement sane enumeration
, Grant Likely
, (Sun Oct 3, 3:55 am)
Re: [patch 00/47] Sparse irq rework
, Grant Likely
, (Sun Oct 3, 4:23 am)
Re: [patch 00/47] Sparse irq rework
, Russell King - ARM Linux
, (Sun Oct 3, 4:29 am)
Re: [patch 00/47] Sparse irq rework
, Grant Likely
, (Sun Oct 3, 4:57 am)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Sun Oct 3, 6:48 am)
Re: [patch 20/47] x86: Remove useless reinitialization of ...
, Eric W. Biederman
, (Sun Oct 3, 8:21 am)
Re: [patch 00/47] Sparse irq rework
, Eric W. Biederman
, (Sun Oct 3, 9:41 am)
Re: [patch 46/47] powerpc: Use new irq allocator
, Eric W. Biederman
, (Sun Oct 3, 9:53 am)
Re: [patch 20/47] x86: Remove useless reinitialization of ...
, Thomas Gleixner
, (Sun Oct 3, 11:26 am)
Re: [patch 46/47] powerpc: Use new irq allocator
, Thomas Gleixner
, (Sun Oct 3, 11:34 am)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Sun Oct 3, 12:16 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Thomas Gleixner
, (Sun Oct 3, 1:04 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Benjamin Herrenschmidt
, (Sun Oct 3, 3:54 pm)
Re: [patch 00/47] Sparse irq rework
, Benjamin Herrenschmidt
, (Sun Oct 3, 3:57 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Eric W. Biederman
, (Sun Oct 3, 5:15 pm)
Re: [patch 46/47] powerpc: Use new irq allocator
, Benjamin Herrenschmidt
, (Sun Oct 3, 5:37 pm)
Re: [patch 00/47] Sparse irq rework
, Eric W. Biederman
, (Sun Oct 3, 5:49 pm)
Re: [patch 00/47] Sparse irq rework
, Eric W. Biederman
, (Sun Oct 3, 6:13 pm)
Re: [patch 00/47] Sparse irq rework
, Ingo Molnar
, (Sun Oct 3, 11:36 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Mon Oct 4, 1:05 am)
Re: [patch 00/47] Sparse irq rework
, Grant Likely
, (Mon Oct 4, 9:31 am)
Re: [patch 46/47] powerpc: Use new irq allocator
, Grant Likely
, (Mon Oct 4, 9:46 am)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Tue Oct 5, 3:22 am)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Wed Oct 6, 3:45 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Wed Oct 6, 3:52 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Wed Oct 6, 4:37 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Wed Oct 6, 5:16 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Wed Oct 6, 9:01 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Wed Oct 6, 9:38 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Fri Oct 8, 2:50 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Fri Oct 8, 2:54 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Fri Oct 8, 9:26 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Fri Oct 8, 10:44 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Fri Oct 8, 11:10 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Fri Oct 8, 11:34 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Sat Oct 9, 12:03 am)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Sat Oct 9, 12:08 am)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Sat Oct 9, 5:08 am)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Sat Oct 9, 5:12 am)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Sat Oct 9, 7:32 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Sat Oct 9, 10:11 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Sun Oct 10, 1:20 am)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Sun Oct 10, 2:32 am)
Re: [patch 00/47] Sparse irq rework
, Anca Emanuel
, (Sun Oct 10, 6:30 am)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Sun Oct 10, 7:20 pm)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Sun Oct 10, 8:50 pm)
Re: [patch 00/47] Sparse irq rework
, Thomas Gleixner
, (Mon Oct 11, 1:16 am)
Re: [patch 00/47] Sparse irq rework
, Benjamin Herrenschmidt
, (Mon Oct 11, 4:34 am)
Re: [patch 00/47] Sparse irq rework
, Yinghai Lu
, (Mon Oct 11, 9:19 am)
Re: [patch 33/47] pci: Cleanup the irq_desc mess in msi
, Jesse Barnes
, (Mon Oct 11, 10:08 am)
Re: [patch 29/47] pci: Convert msi to new irq_chip functions
, Jesse Barnes
, (Mon Oct 11, 10:09 am)
[tip:irq/core] x86: Don't setup ioapic irq for sci twice
, tip-bot for Yinghai Lu
, (Tue Oct 12, 1:23 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Michael Trimarchi
Re: [PATCH] VFS: make file->f_pos access atomic on 32bit arch
Miklos Szeredi
[patch 14/15] vfs: more path_permission() conversions
Serge E. Hallyn
Re: [RFC v5][PATCH 7/8] Infrastructure for shared objects
Bernd Schmidt
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Takashi Iwai
[PATCH 2/2] input: Add LED support to Synaptics device
git
:
Junio C Hamano
Re: mingw, windows, crlf/lf, and git
Eyvind Bernhardsen
Re: Where has "git ls-remote" reference pattern matching gone?
Shawn O. Pearce
Re: Switching from CVS to GIT
Todd Zullinger
Re: [PATCH 2/2] send-email: rfc2047-quote subject lines with non-ascii characters
Santi Béjar
Re: How to use git-fmt-merge-msg?
linux-netdev
:
Ramkrishna Vepa
[net-2.6 PATCH 1/10] Neterion: New driver: Driver help file
Mark Anthony
invitation / inquiry
Ingo Molnar
Re: [PATCH 08/16] dma-debug: add core checking functions
David Miller
Re: [PATCH 1/3] f_phonet: dev_kfree_skb instead of dev_kfree_skb_any in TX callback
Sascha Hauer
[PATCH 03/12] fec: do not typedef struct types
git-commits-head
:
Linux Kernel Mailing List
amba: struct device - replace bus_id with dev_name(), dev_set_name()
Linux Kernel Mailing List
MIPS: Yosemite: Convert SMP startup lock to arch spinlock.
Linux Kernel Mailing List
ARM: S5PC100: IRQ and timer
Linux Kernel Mailing List
davinci: edma: clear interrupt status for interrupt enabled channels only
Linux Kernel Mailing List
x86, mm, kprobes: fault.c, simplify notify_page_fault()
openbsd-misc
:
Daniel A. Ramaley
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Matthias Kilian
Re: can't get vesa @ 1280x800 or nv
Tobias Ulmer
Re: Problem after upgrade 4.5 to 4.6: ERR M
Philip Guenther
Re: SIGCHLD and libpthread.so
J.C. Roberts
Re: [semi-OT] Can anyone recommend an OpenBSD-compatible colour laser printer?
Colocation donated by:
Syndicate