linux-kernel mailing list

FromSubjectsort iconDate
PJ Waskiewicz
[PATCH] ARCH: Fix 32-bit x86 MSI-X allocation leakage
This bug was introduced in the 2.6.24 i386/x86_64 tree merge, where MSI-X vector allocation will eventually fail. The cause is the new bit array tracking used vectors is not getting cleared properly on IRQ destruction on the 32-bit APIC code. This can be seen easily using the ixgbe 10 GbE driver on multi-core systems by simply loading and unloading the driver a few times. Depending on the number of available vectors on the host system, the MSI-X allocation will eventually fail, and the driver will...
Apr 25, 8:58 pm 2008
PJ Waskiewicz
[PATCH] ARCH 2.6.24.y: Fix 32-bit x86 MSI-X allocation leakage
This bug was introduced in the 2.6.24 i386/x86_64 tree merge, where MSI-X vector allocation will eventually fail. The cause is the new bit array tracking used vectors is not getting cleared properly on IRQ destruction on the 32-bit APIC code. This can be seen easily using the ixgbe 10 GbE driver on multi-core systems by simply loading and unloading the driver a few times. Depending on the number of available vectors on the host system, the MSI-X allocation will eventually fail, and the driver will...
Apr 25, 8:59 pm 2008
PJ Waskiewicz
[PATCH] ARCH 2.6.25.y: Fix 32-bit x86 MSI-X allocation leakage
This bug was introduced in the 2.6.24 i386/x86_64 tree merge, where MSI-X vector allocation will eventually fail. The cause is the new bit array tracking used vectors is not getting cleared properly on IRQ destruction on the 32-bit APIC code. This can be seen easily using the ixgbe 10 GbE driver on multi-core systems by simply loading and unloading the driver a few times. Depending on the number of available vectors on the host system, the MSI-X allocation will eventually fail, and the driver will...
Apr 25, 9:00 pm 2008
Hugh Dickins
[PATCH] x86: vget_cycles() __always_inline
Mark vget_cycles() as __always_inline, so gcc is never tempted to make the vsyscall vread_tsc() dive into kernel text, with resulting SIGSEGV. This was a self-inflicted wound: I've not seen that happen with unhacked sources; but for debug reasons I'd changed my x86/Makefile to compile no-unit-at-a-time, and that in conjunction with OPTIMIZE_INLINING=y ended up with vget_cycles() in kernel text. Perhaps it can happen in other ways: safer to use __always_inline. Signed-off-by: Hugh Dickins <hug...
Apr 26, 7:39 pm 2008
Ulrich Drepper
[PATCH] paccept, socket, socketpair w/flags
This version of the patch hopefully integrates all of the requested changes: - the sock_map_fd interface is changed and all in-tree users changed. No additional function anymore - there is a helper function to convert the new socket flags into file flags. Shared by all three functions - the new accept interface is now paccept() which adds the flag parameter as well as a signal mask. - not changed from the last version: the paccet() function takes a flags parameter with the same val...
Apr 26, 6:24 pm 2008
Ingo Molnar
[git pull] idle fix
Linus, please pull the following fix: git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-idle-fix.git for-linus i'd normally wait for Len/Venki to ack the ACPI bits but this seems more urgent as people are seeing lockups via the ACPI-idle route, as per: http://lkml.org/lkml/2008/4/26/235 Thanks, Ingo ------------------> Peter Zijlstra (1): fix idle (arch, acpi and apm) and lockdep arch/x86/kernel/apm_32.c | 3 + arch/x86/kernel/process.c | 11...
Apr 26, 6:09 pm 2008
Bernard Pidoux
Re: spinlock lockup on CPU#0
Hi, I observed about the same message but after the line Brought up 2 CPUs in dmesg. However the system keeps running fine. I run a Core2 Duo processor. dmesg dump is attached. ------------[ cut here ]------------ WARNING: at kernel/lockdep.c:2662 check_flags+0x18d/0x190() Modules linked in: Pid: 0, comm: swapper Not tainted 2.6.25 #2 Call Trace: [<ffffffff8022fbff>] warn_on_slowpath+0x5f/0x80 [<ffffffff80213a77>] ? native_sched_clock+0x57/0x80 [<ffffffff8022ac1a>] ...
Apr 26, 5:33 pm 2008
Brian S. Julin
OQO o2 extras driver, testers needed
Code and writeup at: http://www.abrij.org/~bri/hw/oqowmi.html Anyone with a modicum of kernel skill and an OQO o2 is welcome/entreated to give this a spin. Once I have verification that a couple people other than me have actually managed to use it, I'll work it up into patch form. Probably also works on the e2, but I'm not sure of that. Please CC me, I'm not a LKML subscriber. P.S. any HOWTOs with a checklist on adding a simple driver to the build system? -- Brian --
Apr 26, 5:23 pm 2008
Bob Copeland
[PATCH 6/8] omfs: add bitmap routines
omfs: add bitmap routines Add block allocation and block bitmap management routines for OMFS. Signed-off-by: Bob Copeland <me@bobcopeland.com> --- fs/omfs/bitmap.c | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 192 insertions(+) Index: linux-2.6/fs/omfs/bitmap.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ linux-2.6/fs/omfs/bitmap.c 2008-04-26 15:34:08.000...
Apr 26, 5:26 pm 2008
Bob Copeland
[PATCH 3/8] omfs: add inode routines
omfs: add inode routines Add basic superblock and inode handling routines for OMFS Signed-off-by: Bob Copeland <me@bobcopeland.com> --- fs/omfs/inode.c | 553 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 553 insertions(+) Index: linux-2.6/fs/omfs/inode.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ linux-2.6/fs/omfs/inode.c 2008-04-26 15:34:08.000000000 -0400 ...
Apr 26, 5:26 pm 2008
Bob Copeland
[PATCH 2/8] omfs: define filesystem structures
omfs: define filesystem structures Add header files containing OMFS on-disk and memory structures. Signed-off-by: Bob Copeland <me@bobcopeland.com> --- fs/omfs/omfs.h | 67 +++++++++++++++++++++++++++++++++++++++++++++ fs/omfs/omfs_fs.h | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 147 insertions(+) Index: linux-2.6/fs/omfs/omfs.h =================================================================== --- /dev/null 1970-01-01 00:0...
Apr 26, 5:26 pm 2008
Bob Copeland
[PATCH 8/8] omfs: add MAINTAINERS entry
omfs: add MAINTAINERS entry Add the MAINTAINERS entry for OMFS. Signed-off-by: Bob Copeland <me@bobcopeland.com> --- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) Index: linux-2.6/MAINTAINERS =================================================================== --- linux-2.6.orig/MAINTAINERS 2008-04-26 15:33:32.000000000 -0400 +++ linux-2.6/MAINTAINERS 2008-04-26 15:34:08.000000000 -0400 @@ -2980,6 +2980,12 @@ T: git git://git.kernel.org/pub/scm/linu...
Apr 26, 5:26 pm 2008
Bob Copeland
[PATCH 0/8] OMFS filesystem version 5
Thanks again for the reviews. Not much changed since version 4, just addressed a few more concerns raised by Miklos and Marcin. These patches 1-8 add the Optimized MPEG Filesystem, a proprietary filesystem used by the embedded devices Rio Karma and ReplayTV, which are no longer manufactured. This filesystem module enables people to access files on these devices. version 5: - fix buffer leak in omfs_fill_super - fix inode leak in omfs_create/_mkdir, and combine them - switch to bitmap_we...
Apr 26, 5:26 pm 2008
Bob Copeland
[PATCH 7/8] omfs: update kbuild to include OMFS
Adds OMFS to the fs Kconfig and Makefile Signed-off-by: Bob Copeland <me@bobcopeland.com> --- fs/Kconfig | 13 +++++++++++++ fs/Makefile | 1 + fs/omfs/Makefile | 4 ++++ 3 files changed, 18 insertions(+) Index: linux-2.6/fs/Kconfig =================================================================== --- linux-2.6.orig/fs/Kconfig 2008-04-26 16:51:02.000000000 -0400 +++ linux-2.6/fs/Kconfig 2008-04-26 16:51:35.000000000 -0400 @@ -1429,6 +1429,19 @@ parti...
Apr 26, 5:26 pm 2008
Bob Copeland
[PATCH 1/8] omfs: add filesystem documentation
omfs: add filesystem documentation OMFS is a proprietary filesystem created for the ReplayTV and also used by the Rio Karma. It uses hash tables with unordered, unbounded lists in each bucket for directories, extents for data blocks, 64-bit addressing for blocks, with up to 8K blocks (only 2K of a given block is ever used for metadata, so the FS still works with 4K pages). Document the filesystem usage and structures. Signed-off-by: Bob Copeland &lt...
Apr 26, 5:26 pm 2008
Bob Copeland
[PATCH 4/8] omfs: add directory routines
omfs: add directory routines Add lookup and directory management routines for OMFS. The filesystem uses hashing based on the filename and stores collisions, unordered, in siblings of files' inode structures. To support telldir, the current position in the hash table is encoded in fpos. Signed-off-by: Bob Copeland <me@bobcopeland.com> --- fs/omfs/dir.c | 504 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 504 insertions(+) ...
Apr 26, 5:26 pm 2008
Bob Copeland
[PATCH 5/8] omfs: add file routines
omfs: add file routines Add functions for reading and manipulating the storage of file data in the extent-based OMFS. Signed-off-by: Bob Copeland <me@bobcopeland.com> --- fs/omfs/file.c | 346 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 346 insertions(+) Index: linux-2.6/fs/omfs/file.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ linux-2.6/fs/omfs/file....
Apr 26, 5:26 pm 2008
Bartlomiej Zolnierki...
[git patches] IDE updates part 3
The previous IDE update is in the mainline and there is also -git9 snapshot containing it so lets have two IDE updates the same day! - rework of I/O and MEM resource handling, the final part - add struct ide_port_ops and struct ide_dma_ops (a lot of help to get it right from Sergei Shtylyov) - cleanup patches (Borislav Petkov and Harvey Harrison) - misc changes Linus, please pull from: master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6.git/ to receive the following updates...
Apr 26, 4:52 pm 2008
Luca Tettamanti
[PATCH] Fix compile error with wifi & leds
Hi, I encountered a build error with current git tree: CC [M] net/mac80211/led.o /home/kronos/src/linux-2.6.git/net/mac80211/led.c: In function 'ieee80211_led_init': /home/kronos/src/linux-2.6.git/net/mac80211/led.c:58: error: invalid application of 'sizeof' to incomplete type 'struct led_trigger' /home/kronos/src/linux-2.6.git/net/mac80211/led.c:62: error: dereferencing pointer to incomplete type /home/kronos/src/linux-2.6.git/net/mac80211/led.c:63: error: implicit declaration of function 'led_t...
Apr 26, 4:34 pm 2008
Tomas Winkler
Re: [PATCH] Fix compile error with wifi & leds
This one was already posted Thanks Tomas --
Apr 26, 7:26 pm 2008
Davi Leal
(No subject)
subscribe linux-kernel --
Apr 26, 4:28 pm 2008
Bartlomiej Zolnierki...
[PATCH] ide: manage resources for PCI devices in ide_pci_ena...
* Reserve PCI BARs 0-3 (0-1 for single port controllers) in ide_pci_enable() and remove ide_hwif_request_regions() call from ide_device_add_all() (also cleanup resource management in scc_pata host driver). * Fix handling of PCI BAR 4 in ide_pci_enable(), then cleanup ide_iomio_dma() (+ init_hwif_trm290() in trm290 host driver) and remove ide_release[_iomio]_dma(). v2: * Fixup trm290 host driver. v3: * Because of scc_pata host driver changes we need to call pci_request_selected_r...
Apr 26, 4:18 pm 2008
Andi Kleen
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc()
You should mark the helper noinline just to prevent gcc from possibly inlining it. Even if it doesn't with your current compiler inline heuristics vary widely between compiler versions. -Andi --
Apr 26, 4:02 pm 2008
Christoph Hellwig
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc()
STATIC as defined by xfs already does this.. --
Apr 26, 4:07 pm 2008
Andi Kleen
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc()
Weird. Unexpected. Different from everyone else. Is this some exercise in obfuscation? But ok. -Andi --
Apr 26, 4:26 pm 2008
Christoph Hellwig
Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc()
The whole STATIC thing is weird to start with.. Yes, it's kinda unexpected and at least I don't particularly liked it. But the inlining of functions with -funit-at-a-time was such a problem for the stack useage in XFS that it got added as least horrible bandaid. --
Apr 26, 4:23 pm 2008
Ingo Molnar
[git pull] x86 fix
Linus, please pull this x86 fix from: git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-fixes2.git for-linus Thanks, Ingo ------------------> Venki Pallipadi (1): x86, PAT: disable /dev/mem mmap RAM with PAT arch/x86/mm/pat.c | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/arch/x86/mm/pat.c b/arch/x86/mm/pat.c index 9851265..e7ca7fc 100644 --- a/arch/x86/mm/pat.c +++ b/arch/x86/mm/pat.c @@ -16,6 +16...
Apr 26, 3:47 pm 2008
Harvey Harrison
Re: [git pull] x86 fix
Cheers, Harvey --
Apr 26, 4:15 pm 2008
Sam Ravnborg
[GIT PULL] kbuild fixes
Hi Linus. Please apply the following two fixes by pulling from: master.kernel.org/pub/scm/linux/kernel/git/sam/kbuild.git The MODULE_LICENSE fix is neded to get an allmodconfig build fixed. Sam Adrian Bunk (1): kbuild: scripts/Makefile.modpost typo fix Sam Ravnborg (1): kbuild: soften MODULE_LICENSE check scripts/Makefile.modpost | 2 +- scripts/mod/modpost.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/Makefile....
Apr 26, 3:12 pm 2008
Adrian Bunk
Re: [GIT PULL] kbuild fixes
Which one is this? http://lkml.org/lkml/2008/3/31/50 ? cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed --
Apr 26, 3:20 pm 2008
Sam Ravnborg
Re: [GIT PULL] kbuild fixes
The changelog was actually bad for this one. I saw two classes of problems: 1) I got report about broken builds - fbdev was the culprint. 2) a "make CONFIG_DEBUG_SECTION_MISMATCH=y" build broke immediately. I made it non-fatal because we had at least one module that was not yet fixed. Sam --
Apr 26, 3:37 pm 2008
Adrian Bunk
Re: [GIT PULL] kbuild fixes
It was not a build error when I sent it one month ago, and that was the OK, I never tried 2). I had this patch in my test compiles for some time. Considering that I had a new such bug to fix during this merge window "at least one unfixed module" is a bad prerequisite for making it an cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. ...
Apr 26, 4:05 pm 2008
Sam Ravnborg
Re: [GIT PULL] kbuild fixes
And by the way - had this been in -mm/-next as it ought to be we wuld know the eventual breakage it would have caused. But I have been a lousy maintainer the last months so that did not happen as it should and the MODULE_LICENSE thing went straight to -linus. Sam --
Apr 26, 3:49 pm 2008
Adrian Bunk
Re: [GIT PULL] kbuild fixes
I had it in my test builds that cover x86 all modular and all defconfigs cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed --
Apr 26, 3:55 pm 2008
Ingo Molnar
[RFC git pull] "big box" x86 changes
Linus, the following tree contains the "big box" topic commits of x86.git: git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-bigbox.git for-linus Most of the work has been done by Yinghai Lu who has gone through a heroic effort to fix all the big-box bugs that he encountered on the vanilla Linux kernel on his various up to 256 GB RAM test-systems. Also work is included from Ying Huang for those insane SGI UV boxes. Most of these patches have been carried in x86.git since...
Apr 26, 2:55 pm 2008
Andi Kleen
Re: [RFC git pull] "big box" x86 changes
Just to make things clear for the list readers, x86-64 worked fine for years on 256GB systems. Many of the problems fixed in this tree are either relatively recent regressions or have nothing to do with large boxes or 256GB (like the mmconfig changes) -Andi --
Apr 26, 6:17 pm 2008
Linus Torvalds
Re: [RFC git pull] "big box" x86 changes
I'd like to see this sent as perhaps four independent pulls (where "independent" doesn't necessarily mean that they don't depend on each other and have some ordering, but is more of a "this is the bootup changes" vs "these are bootmem-related" etc, if at all possible. Quite frankly, from a review standpoint, very few people should need to (or want to) review individual commits when there are 50 of them (they might only care about the changes that 3 or 4 of them make, but they get lost ...
Apr 26, 3:12 pm 2008
Ingo Molnar
[git pull] "big box" x86 changes, PCI
ok, this is the final chunk of the "big box" topic - the PCI changes. These are the largest, and while i tried to reduce their number it's still 19 commits - but it's all around the same topic. The bulk of the new code is in a single file. The tree can be pulled from: git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-bigbox-pci.git for-linus this depends on the bootmem changes which are now upstream. These changes too have been in linux-next for some time and the cross-arc...
Apr 26, 5:55 pm 2008
Ingo Molnar
[RFC git pull] "big box" x86 changes, GART
Linus, please pull the x86 "big box & GART" subtopic tree from: git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-bigbox-gart.git for-linus it also touches drivers/char/agp/amd64-agp.c. Thanks, Ingo ------------------> Pavel Machek (1): x86: iommu: use symbolic constants, not hardcoded numbers Yinghai Lu (5): x86: agp_gart size checking for buggy device x86: checking aperture size order x86_64: allocate gart aperture from 512M ...
Apr 26, 4:24 pm 2008
Ingo Molnar
Re: [RFC git pull] "big box" x86 changes, GART
forgot to mention that these changes are pullable standalone, without the MM changes. I just test-booted it on a GART box to make sure: PCI-DMA: using GART IOMMU. Ingo --
Apr 26, 4:26 pm 2008
Ingo Molnar
[git pull] "big box" x86 changes, boot protocol
Linus, please pull the following x86 changes from: git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-bigbox-bootparam.git for-linus these are boot parameter extensions for really large SGI UV boxes. The change was seen and acked by the boot protocol guys. (well, Peter that is ;-) Thanks, Ingo ------------------> Huang, Ying (4): x86, boot: add free_early to early reservation machanism x86, boot: add linked list of struct setup_data x86, boot: e...
Apr 26, 3:54 pm 2008
Andrew Morton
Re: [git pull] "big box" x86 changes, boot protocol
nit: memcpy() shouldn't be used for overlapping copies. It happens to be nit2: a read() function should return the number of bytes copied, and should advance the file pointer by that much. This code fails to do this when a partial copy_to_user() occurs. But we've made that mistake in many places and it doesn't appear to matter. --
Apr 26, 4:39 pm 2008
Jeremy Fitzhardinge
Re: [git pull] "big box" x86 changes, boot protocol
Definitely shouldn't be assumed. At one point in the distant past I had a ppc memcpy which would clobber a destination cacheline before reading the source, so source and dest within a cacheline's distance would be trouble, regardless of the direction. Arch-specific code which knows about the arch-specific details of memcpy might be safer, I guess, but its still fairly brittle. J --
Apr 26, 7:37 pm 2008
Adrian Bunk
Re: [git pull] "big box" x86 changes, boot protocol
We always use the gcc builtin for memcpy() here. cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed --
Apr 26, 5:06 pm 2008
Linus Torvalds
Re: [git pull] "big box" x86 changes, boot protocol
It's probably hard to write a reasonable x86 memcpy() that wouldn't happen to do the right thing for this case, but I do agee - we should still use memmove() for this, just to make it clear that it does overlapping things. Linus --
Apr 26, 5:11 pm 2008
Ingo Molnar
Re: [git pull] "big box" x86 changes, boot protocol
agreed, i queued up the patch below. Ingo -------------> Subject: bootprotocol: cleanup From: Ingo Molnar <mingo@elte.hu> Date: Sat Apr 26 23:14:36 CEST 2008 Signed-off-by: Ingo Molnar <mingo@elte.hu> --- arch/x86/kernel/e820_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-x86.q/arch/x86/kernel/e820_64.c =================================================================== --- linux-x86.q.orig/arch/x86/kernel/e820_64.c +++ linux-x86.q/arch/x...
Apr 26, 5:17 pm 2008
H. Peter Anvin
Re: [git pull] "big box" x86 changes, boot protocol
You have to do something pretty weird for memcpy() to not work for dst <= src even with overlap; this usually involves architectures that have explicit cache control instructions to establish the dst in the cache, if used before src is read. This is not an issue on x86, though. -hpa --
Apr 26, 5:10 pm 2008
Ingo Molnar
[git pull] "big box" x86 changes, bootmem/sparsemem
ok. Here's the "memory management" type of changes: git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-bigbox-bootmem.git for-linus the other sub-trees will depend on these changes. I think these infrastructure and other improvements are mergable and pullable as-is. Ingo ------------------> Yinghai Lu (7): mm: make mem_map allocation continuous mm: fix alloc_bootmem_core to use fast searching for all nodes mm: offset align in alloc_bootmem() ...
Apr 26, 3:41 pm 2008
Linus Torvalds
Re: [git pull] "big box" x86 changes, bootmem/sparsemem
Noticed this when just trying to read the code to see if it looks sensible (without looking at any real details). Code like this is *not* acceptable. We do proper indentations. Improperly indented code is buggy. It doesn't matter if the compiler might generate the same code with or without indentation, it's still totally unacceptable. Having preprocessor conditionals that mix things up is not an excuse, and it might be an argument for not doing the conditional that way (ie maybe jus...
Apr 26, 3:52 pm 2008
Ingo Molnar
[git pull] "big box" x86 changes, bootmem/sparsemem, #2
here's the updated tree: git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86-bigbox-bootmem-v2.git for-linus Ingo ------------------> Yinghai Lu (7): mm: make mem_map allocation continuous mm: fix alloc_bootmem_core to use fast searching for all nodes mm: offset align in alloc_bootmem() mm: allow reserve_bootmem() cross nodes x86_64: make reserve_bootmem_generic() use new reserve_bootmem() x86_64: fix setup_node_bootmem to support big ...
Apr 26, 4:08 pm 2008
previous daytodaynext day
April 25, 2008April 26, 2008April 27, 2008