[patch 18/28] Add cmpxchg_local to m86k

2007-10-31 Thread Mathieu Desnoyers
Use the new generic cmpxchg_local (disables interrupt). Also use the generic cmpxchg as fallback if SMP is not set. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- include/asm-m68k/system.h | 27

[patch 21/28] Add cmpxchg_local to ppc

2007-10-31 Thread Mathieu Desnoyers
Add a local processor version of cmpxchg for ppc. Implements __cmpxchg_u32_local and uses it for 32 bits cmpxchg_local. It uses the non NMI safe cmpxchg_local_generic for 1, 2 and 8 bytes cmpxchg_local. From: Gunnar Larisch <[EMAIL PROTECTED]> From: Mathieu Desnoyers <[EMAIL PROTECTED]>

[patch 25/28] Add cmpxchg_local to sparc, move __cmpxchg to system.h

2007-10-31 Thread Mathieu Desnoyers
Move cmpxchg and add cmpxchg_local to system.h. Use the new generic cmpxchg_local (disables interrupt). Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- include/asm-sparc/atomic.h | 36 -

[patch 24/28] Add cmpxchg_local to sh64

2007-10-31 Thread Mathieu Desnoyers
Use the new generic cmpxchg_local (disables interrupt). Also use the generic cmpxchg as fallback if SMP is not set. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- include/asm-sh64/system.h | 15 +++ 1 file changed, 15

[patch 26/28] Add cmpxchg_local to sparc64

2007-10-31 Thread Mathieu Desnoyers
Use cmpxchg_u32 and cmpxchg_u64 for cmpxchg_local and cmpxchg64_local. For other type sizes, use the new generic cmpxchg_local (disables interrupt). Change: Since the header depends on local_irqsave/local_irqrestore, it must be included after their declaration. Actually, being below the #include

[patch 28/28] Add cmpxchg_local to xtensa

2007-10-31 Thread Mathieu Desnoyers
Use the architecture specific __cmpxchg_u32 for 32 bits cmpxchg)_local. Else, use the new generic cmpxchg_local (disables interrupt). Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] [EMAIL PROTECTED] --- include/asm-xtensa/system.h | 22 ++ 1 file

[patch 16/28] m32r: build fix of arch/m32r/kernel/smpboot.c

2007-10-31 Thread Mathieu Desnoyers
This patch is for Mathieu Desnoyers's include/asm-m32r/local.h. Applying the new include/asm-m32r/local.h, inclusion of linux/sched.h is needed to fix a build error of arch/m32r/kernel/smpboot.c. <-- snip --> ... CC arch/m32r/kernel/smpboot.o

[patch 23/28] Add cmpxchg_local to sh, use generic cmpxchg() instead of cmpxchg_u32

2007-10-31 Thread Mathieu Desnoyers
Use the new generic cmpxchg_local (disables interrupt). Also use the generic cmpxchg as fallback if SMP is not set. Since cmpxchg_u32 is _exactly_ the cmpxchg_local generic implementation, remove it and use the generic version instead. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC:

[patch 13/28] Add cmpxchg_local, cmpxchg64 and cmpxchg64_local to ia64

2007-10-31 Thread Mathieu Desnoyers
Add the primitives cmpxchg_local, cmpxchg64 and cmpxchg64_local to ia64. They use cmpxchg_acq as underlying macro, just like the already existing ia64 cmpxchg(). Changelog: ia64 cmpxchg_local coding style fix Quoting Keith Owens: As a matter of coding style, I prefer #define cmpxchg_local

[patch 20/28] Add cmpxchg_local to parisc

2007-10-31 Thread Mathieu Desnoyers
Use the new generic cmpxchg_local (disables interrupt). Also use the generic cmpxchg as fallback if SMP is not set. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- include/asm-parisc/atomic.h | 33 + 1 file

[patch 27/28] Add cmpxchg_local to v850

2007-10-31 Thread Mathieu Desnoyers
Use the new generic cmpxchg_local (disables interrupt). Also use the generic cmpxchg as fallback if SMP is not set. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] --- include/asm-v850/system.h | 15 +++ 1 file changed, 15 insertions(+) Index:

[patch 06/28] Add cmpxchg64 and cmpxchg64_local to x86_64

2007-10-31 Thread Mathieu Desnoyers
Make sure that at least cmpxchg64_local is available on all architectures to use for unsigned long long values. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: Andi Kleen <[EMAIL PROTECTED]> --- include/asm-x86_64/cmpxchg.h | 22 -- 1 file changed, 16

[patch 12/28] Add cmpxchg_local to h8300

2007-10-31 Thread Mathieu Desnoyers
Use the new generic cmpxchg_local (disables interrupt). Also use the generic cmpxchg as fallback if SMP is not set. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] --- include/asm-h8300/system.h | 15 +++ 1 file changed, 15 insertions(+) Index:

[patch 05/28] Add cmpxchg64 and cmpxchg64_local to powerpc

2007-10-31 Thread Mathieu Desnoyers
Make sure that at least cmpxchg64_local is available on all architectures to use for unsigned long long values. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> Acked-by: Paul Mackerras <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] --- include/asm-powerpc/system.h | 18 -- 1

[patch 04/28] Add cmpxchg64 and cmpxchg64_local to mips

2007-10-31 Thread Mathieu Desnoyers
Make sure that at least cmpxchg64_local is available on all architectures to use for unsigned long long values. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] CC [EMAIL PROTECTED] --- include/asm-mips/cmpxchg.h | 17 + 1 file changed, 17

[patch 11/28] Add cmpxchg_local to frv

2007-10-31 Thread Mathieu Desnoyers
Use the new generic cmpxchg_local (disables interrupt) for 8, 16 and 64 bits arguments. Use the 32 bits cmpxchg available on the architecture for 32 bits arguments. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] --- include/asm-frv/system.h | 24

[patch 01/28] Add cmpxchg_local to asm-generic for per cpu atomic operations

2007-10-31 Thread Mathieu Desnoyers
Emulates the cmpxchg_local by disabling interrupts around variable modification. This is not reentrant wrt NMIs and MCEs. It is only protected against normal interrupts, but this is enough for architectures without such interrupt sources or if used in a context where the data is not shared with

[patch 09/28] Add cmpxchg_local to blackfin, replace __cmpxchg by generic cmpxchg

2007-10-31 Thread Mathieu Desnoyers
Use the new generic cmpxchg_local (disables interrupt). Also use the generic cmpxchg as fallback if SMP is not set since nobody seems to know why __cmpxchg has been implemented in assembly in the first place thather than in plain C. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL

[patch 03/28] Add cmpxchg64 and cmpxchg64_local to alpha

2007-10-31 Thread Mathieu Desnoyers
Make sure that at least cmpxchg64_local is available on all architectures to use for unsigned long long values. Signed-off-by: Mathieu Desnoyers <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] --- include/asm-alpha/system.h | 15 +-- 1 file changed, 13

[patch 00/28] cmpxchg_local and cmpxchg64_local patches, cleaned up

2007-10-31 Thread Mathieu Desnoyers
Hi, Here is a repost of those patches after running them through checkpatch. I added a compile check to each architecture implementing cmpxchg64_local that verifies if the argument size is 8 bytes. Sorry about the coding style state in which those patches were : I tried to follow the coding

[ANNOUNCE] GIT 1.5.3.5

2007-10-31 Thread Junio C Hamano
The latest maintenance release GIT 1.5.3.5 is available at the usual places: http://www.kernel.org/pub/software/scm/git/ git-1.5.3.5.tar.{gz,bz2} (tarball) git-htmldocs-1.5.3.5.tar.{gz,bz2} (preformatted docs) git-manpages-1.5.3.5.tar.{gz,bz2}

Re: [PATCH 1/5] The config option itself

2007-10-31 Thread Andrew Morton
On Wed, 31 Oct 2007 14:05:01 +0300 Pavel Emelyanov <[EMAIL PROTECTED]> wrote: > The option is called NAMESPACES. It can be selectable only > if EMBEDDED is chosen (this was Eric's requisition). When > the EMBEDDED is off namespaces will be on automatically. I'm thinking that Eric's

Re: [PATCH/RFC] eradicate bashisms in scripts/patch-kernel

2007-10-31 Thread Randy Dunlap
Andreas Mohr wrote: Hello, I was non-mildly horrified to find that the rather widely used patch-kernel script seems to rely on bash despite specifying the interpreter as #!/bin/sh, since my dash-using Debian install choked on it. Thus I'm delivering a first, preliminary, non-reviewed change to

[PATCH 12/16] tweak io_64.h for paravirt.

2007-10-31 Thread Glauber de Oliveira Costa
We need something here because we can't call in and out instructions directly. However, we have to be careful, because no indirections are allowed in misc_64.c , and paravirt_ops is a kind of one. So just call it directly there Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]>

[PATCH 9/16] This patch add provisions for time related functions so they

2007-10-31 Thread Glauber de Oliveira Costa
can be later replaced by paravirt versions. it basically encloses {g,s}et_wallclock inside the already existent functions update_persistent_clock and read_persistent_clock, and defines {s,g}et_wallclock to the core of such functions. it also allow for a later-on-game time initialization, as done

Re: Is gcc thread-unsafe?

2007-10-31 Thread Phillip Susi
pushl %ebp movl%esp, %ebp cmpl$0, 8(%ebp) movl$1, %eax cmove v, %eax; load (maybe) movl%eax, v; store (always) popl%ebp ret How is this even an optimization?

[PATCH 16/16] make vsmp a paravirt client

2007-10-31 Thread Glauber de Oliveira Costa
This patch makes vsmp a paravirt client. It now uses the whole infrastructure provided by pvops. When we detect we're running a vsmp box, we change the irq-related paravirt operations (and so, it have to happen quite early), and the patching function Signed-off-by: Glauber de Oliveira Costa

[PATCH 14/16] prepare x86_64 architecture initialization for paravirt

2007-10-31 Thread Glauber de Oliveira Costa
This patch prepares the x86_64 architecture initialization for paravirt. It requires a memory initialization step, which is done by implementing 64-bit version for machine_specific_memory_setup, and putting an ARCH_SETUP hook, for guest-dependent initialization. This last step is done akin to i386

[PATCH 13/16] native versions for page table entries values

2007-10-31 Thread Glauber de Oliveira Costa
This patch turns the page operations (set and make a page table) into native_ versions. The operations itself will be later overriden by paravirt. It uses unsigned long long for consistency with 32-bit. So we have to fix fault_64.c to get rid of warnings. Signed-off-by: Glauber de Oliveira Costa

fixing usb-midi device support

2007-10-31 Thread David Griffith
I have a MOTU Fastlane and an Emu Xmidi 2x2 USB midi interfaces. The Emu unit works fine with current kernels. The MOTU unit won't work with kernels newer than 2.6.17. I stumbled over a patch that had something to do with a MOTU Fastlane, but I haven't been able to find it again. Could I get

Re: [PATCH 3/6] sched: high-res preemption tick

2007-10-31 Thread Peter Zijlstra
On Wed, 2007-10-31 at 22:53 +0100, Andi Kleen wrote: > Peter Zijlstra <[EMAIL PROTECTED]> writes: > > > Use HR-timers (when available) to deliver an accurate preemption tick. > > > > The regular scheduler tick that runs at 1/HZ can be too coarse when nice > > level are used. The fairness system

Re: [PATCH 5/6] sched: SCHED_FIFO/SCHED_RR watchdog timer

2007-10-31 Thread Peter Zijlstra
On Wed, 2007-10-31 at 22:49 +0100, Andi Kleen wrote: > Peter Zijlstra <[EMAIL PROTECTED]> writes: > > > Introduce a new rlimit that allows the user to set a runtime timeout > > on real-time tasks. Once this limit is exceeded the task will receive > > SIGXCPU. > > Nice idea. > > It would be

[PATCH 11/16] turn priviled operation into a macro in head_64.S

2007-10-31 Thread Glauber de Oliveira Costa
under paravirt, read cr2 cannot be issued directly anymore. So wrap it in a macro, defined to the operation itself in case paravirt is off, but to something else if we have paravirt in the game Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL

Re: USB: FIx locks and urb->status in adutux

2007-10-31 Thread Pete Zaitcev
On Wed, 31 Oct 2007 13:54:54 +0200, Vitaliy Ivanov <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-30 at 23:54, Pete Zaitcev wrote: > > > One other small thing. I see you dropped the dev->mtx bracket that > > I added around the initialization and submission. Notice that the > > dev->udev is zeroed

Re: [PATCH] ucc_geth: add support for netpoll

2007-10-31 Thread Anton Vorontsov
On Mon, Oct 29, 2007 at 03:17:44PM +0300, Anton Vorontsov wrote: [...] > > Oops. The original patch happened to hit the Junk mail box. :( > > That one as well? http://lkml.org/lkml/2007/10/11/128 > > > I think > > the patch is good to merge after the cosmetic change. I can do it in > > next

[PATCH 3/16] read/write_crX, clts and wbinvd for 64-bit paravirt

2007-10-31 Thread Glauber de Oliveira Costa
This patch introduces, and patch callers when needed, native versions for read/write_crX functions, clts and wbinvd. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> Acked-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> ---

[PATCH 2/16] paravirt hooks at entry functions.

2007-10-31 Thread Glauber de Oliveira Costa
Those are the hooks needed for paravirt at entry_64.S In general, they follow the way of i386. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> Acked-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> --- arch/x86/kernel/entry_64.S | 108

[PATCH 6/16] export math_state_restore

2007-10-31 Thread Glauber de Oliveira Costa
Export math_state_restore symbol, so it can be used for hypervisors. They are commonly loaded as modules (lguest being an example). Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> Acked-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> ---

[PATCH 5/16] report ring kernel is running without paravirt

2007-10-31 Thread Glauber de Oliveira Costa
When paravirtualization is disabled, the kernel is always running at ring 0. So report it in the appropriate macro Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> Acked-by: Jeremy Fitzhardinge <[EMAIL PROTECTED]> ---

[PATCH 0/7] (Re-)introducing pvops for x86_64 - Real pvops work part

2007-10-31 Thread Glauber de Oliveira Costa
Hey folks, This is the part-of-pvops-implementation-that-is-not-exactly-a-merge. Neat, uh? This is the majority of the work. The first patch in the series does not really belong here. It was already sent to lkml separetedly before, but I'm including it again, for a very simple reason: Try to

[PATCH 1/16] Wipe out traditional opt from x86_64 Makefile

2007-10-31 Thread Glauber de Oliveira Costa
Among other things, using -traditional as a gcc option stops us from using macro token pasting, which is a feature we heavily rely on. There was still a use of -traditional in arch/x86/kernel/Makefile_64, which this patch removes. I don't see any problems building kernels in my x86_64 box

[PATCH 7/7] consolidate msr.h

2007-10-31 Thread Glauber de Oliveira Costa
This patch goes one step forward in consolidating the msr.h header. It shares code between i386 and x86_64, instead of duplicating the code for tsc reading, msr reading/writing, etc. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]>

[PATCH 3/7] tlb functions consolidation

2007-10-31 Thread Glauber de Oliveira Costa
This patch consolidates part of the tlb handling functions for the x86 architecture. In this approach, we start by the parts actually used for paravirt in i386. Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> Acked-by: Jeremy

[PATCH 1/7] irqflags consolidation

2007-10-31 Thread Glauber de Oliveira Costa
This patch consolidates the irqflags include files containing common paravirt definitions. The native definition for interrupt handling, halt, and such, are the same for 32 and 64 bit, and they are kept in irqflags.h. The differences are split in the arch-specific files. The syscall function,

[PATCH 6/7] consolidate apic.h functions

2007-10-31 Thread Glauber de Oliveira Costa
This patch consolidates apic.h functions for i386 and x86_64. notice that we use u32 to be explicit about sizing requirements between them Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> Signed-off-by: Steven Rostedt <[EMAIL PROTECTED]> Acked-by: Jeremy Fitzhardinge <[EMAIL

[PATCH 4/7] smp x86 consolidation

2007-10-31 Thread Glauber de Oliveira Costa
This patch consolidates part of the pieces of smp for both architectures. (i386 and x86_64). It makes part the calls go through smp_ops. Later on, making the functions themselves have shared code is doable and a logical next step Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]>

[PATCH 5/7] Add debugreg/load_rsp native hooks

2007-10-31 Thread Glauber de Oliveira Costa
This patch adds native hooks for debugreg handling functions, and for the native load_rsp0 function. The later also have its call sites patched. There's some room for consolidation in the processor*.h headers, and it is done, for paravirt related functions Signed-off-by: Glauber de Oliveira Costa

[PATCH 0/7] (Re-)introducing pvops for x86_64 - Consolidation part

2007-10-31 Thread Glauber de Oliveira Costa
Hi folks, Here is the result of the latest work on the pvops front, after the x86 arch merge. From the functionality point of view, almost nothing was changed, except for proper vsmp support - which was discussed, but not implemented before - and the introduction of smp_ops in x86_64, which

[PATCH 2/7] consolidate spinlock.h

2007-10-31 Thread Glauber de Oliveira Costa
The cli and sti instructions need to be replaced by paravirt hooks. For the i386 architecture, this is already done. The code requirements aren't much different from x86_64 POV, so this part is consolidated in the common header Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]>

Re: [PATCH] Fix make headers_check for tipc

2007-10-31 Thread Sam Ravnborg
On Wed, Oct 31, 2007 at 05:29:32PM -0400, Dave Jones wrote: > make headers_check currently fails in mainline with.. > > include/linux/tipc_config.h requires linux/string.h, which does not exist in > exported headers > > There's no reason to even include this in this header as far as I can tell.

Re: [PATCH 3/6] sched: high-res preemption tick

2007-10-31 Thread Andi Kleen
Peter Zijlstra <[EMAIL PROTECTED]> writes: > Use HR-timers (when available) to deliver an accurate preemption tick. > > The regular scheduler tick that runs at 1/HZ can be too coarse when nice > level are used. The fairness system will still keep the cpu utilisation 'fair' > by then delaying the

Re: [PATCH 2/3] drivers/ide/pci/sc1200.c: remove pointless hwif lookup loop

2007-10-31 Thread Bartlomiej Zolnierkiewicz
On Friday 26 October 2007, Jeff Garzik wrote: > Bartlomiej Zolnierkiewicz wrote: > > On Thursday 25 October 2007, Jeff Garzik wrote: > >> Store our hwif indices at probe time, in order to eliminate a needless > >> and ugly loop across all hwifs, searching for our pci device. > > > > It seems that

Re: [PATCH 5/6] sched: SCHED_FIFO/SCHED_RR watchdog timer

2007-10-31 Thread Andi Kleen
Peter Zijlstra <[EMAIL PROTECTED]> writes: > Introduce a new rlimit that allows the user to set a runtime timeout > on real-time tasks. Once this limit is exceeded the task will receive > SIGXCPU. Nice idea. It would be even nicer if you could allow a couple of them. Partition the RT priorities

[PATCH] Fix make headers_check for tipc

2007-10-31 Thread Dave Jones
make headers_check currently fails in mainline with.. include/linux/tipc_config.h requires linux/string.h, which does not exist in exported headers There's no reason to even include this in this header as far as I can tell. Signed-off-by: Dave Jones <[EMAIL PROTECTED]> diff --git

Re: How to debug complete kernel lock-ups

2007-10-31 Thread Ray Lee
On 10/31/07, John Sigler <[EMAIL PROTECTED]> wrote: > "It seems that the PCI clock on this system has a rather large over- and > undershoot and we suspect that the undershoot (of ~1V) is causing a drop > in the core voltage of the on-board FPGA which results in lockup of the > firmware. Both the

[PATCH/RFC] eradicate bashisms in scripts/patch-kernel

2007-10-31 Thread Andreas Mohr
Hello, I was non-mildly horrified to find that the rather widely used patch-kernel script seems to rely on bash despite specifying the interpreter as #!/bin/sh, since my dash-using Debian install choked on it. Thus I'm delivering a first, preliminary, non-reviewed change to make patch-kernel (a

Re: [PATCH, RFC] hacks to allow -rt to run kernbench on POWER

2007-10-31 Thread Benjamin Herrenschmidt
> So as Paul mentioned, spin_lock is now a mutex. There is a new > raw_spinlock however (simply change the way it is declared, calling > conventions are the same) which is used in a very few areas where a > traditional spin_lock is truly necessary. This may or may not be one of > those times,

[PATCH 1/6] sched: move the group scheduling primitives around

2007-10-31 Thread Peter Zijlstra
The next patch will make sched_slice group aware, reorder the group scheduling primitives so that they don't need fwd declarations. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> CC: Srivatsa Vaddagiri <[EMAIL PROTECTED]> --- kernel/sched_fair.c | 190

[PATCH 4/6] sched: sched_rt_entity

2007-10-31 Thread Peter Zijlstra
Move the task_struct members specific to rt scheduling together. A future optimization could be to put sched_entity and sched_rt_entity into a union. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> CC: Srivatsa Vaddagiri <[EMAIL PROTECTED]> --- include/linux/init_task.h |5 +++--

[PATCH 3/6] sched: high-res preemption tick

2007-10-31 Thread Peter Zijlstra
Use HR-timers (when available) to deliver an accurate preemption tick. The regular scheduler tick that runs at 1/HZ can be too coarse when nice level are used. The fairness system will still keep the cpu utilisation 'fair' by then delaying the task that got an excessive amount of CPU time but try

[PATCH 5/6] sched: SCHED_FIFO/SCHED_RR watchdog timer

2007-10-31 Thread Peter Zijlstra
Introduce a new rlimit that allows the user to set a runtime timeout on real-time tasks. Once this limit is exceeded the task will receive SIGXCPU. Input and ideas by Thomas Gleixner and Lennart Poettering. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> CC: Thomas Gleixner <[EMAIL PROTECTED]>

[PATCH] Sanitize the type of struct user.u_ar0

2007-10-31 Thread H. Peter Anvin
struct user.u_ar0 is defined to contain a pointer offset on all architectures in which it is defined (all architectures which define an a.out format except SPARC.) However, it has a pointer type in the headers, which is pointless -- is not exported to userspace, and it just makes the code messy.

[PATCH 0/6] various scheduler patches

2007-10-31 Thread Peter Zijlstra
My current scheduler queue, seems to work well on lappy -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH 2/6] sched: make sched_slice() group scheduling savvy

2007-10-31 Thread Peter Zijlstra
Currently the ideal slice length does not take group scheduling into account. Change it so that it properly takes all the runnable tasks on this cpu into account and caluclate the weight according to the grouping hierarchy. Also fixes a bug in vslice which missed a factor NICE_0_LOAD.

[PATCH 6/6] sched: place_entity() comments

2007-10-31 Thread Peter Zijlstra
Add a few comments to place_entity(). Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- kernel/sched_fair.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) Index: linux-2.6/kernel/sched_fair.c === ---

Re: [PATCH] Unexport asm/user.h and linux/user.h

2007-10-31 Thread H. Peter Anvin
Kirill A. Shutemov wrote: Do not export asm/user.h and linux/user.h during make headers_install. Signed-off-by: Kirill A. Shutemov <[EMAIL PROTECTED]> Reviewed-By: David Woodhouse <[EMAIL PROTECTED]> Cc: Thomas Gleixner <[EMAIL PROTECTED]> Cc: Ingo Molnar <[EMAIL PROTECTED]> Cc: H. Peter Anvin

Re: [RFC] cpuset relative memory policies - second choice

2007-10-31 Thread Christoph Lameter
On Wed, 31 Oct 2007, Paul Jackson wrote: > > Make both policy and the mode char? > > Well, the mpol_nodemask_mode already is char. So I guess you're > asking if we should change 'policy' to type char as well. Right. > > Could we shorten the mpol_nodemask_mode to mode? > > Huh - I don't know

Re: [dm-devel] Re: dm: bounce_pfn limit added

2007-10-31 Thread Kiyoshi Ueda
Hi, On Wed, 31 Oct 2007 08:36:01 +0100, Hannes Reinecke <[EMAIL PROTECTED]> wrote: > Vasily Averin wrote: > > Alasdair G Kergon wrote: > >> So currently we treat bounce_pfn as a property that does not need to be > >> propagated through the stack. > >> > >> But is that the right approach? > >> -

Re: [PATCH] mtrr use type bool

2007-10-31 Thread Richard Knutsson
Paul Jimenez wrote: On Wednesday, Oct 31, 2007, Richard Knutsson writes: if (likely(replace < 0)) usage_table[i] = 1; else { - usage_table[i] = usage_table[replace] + !!increment; +

Re: [PATCH, RFC] hacks to allow -rt to run kernbench on POWER

2007-10-31 Thread Darren Hart
On Tue, 2007-10-30 at 07:07 +1100, Benjamin Herrenschmidt wrote: > On Mon, 2007-10-29 at 11:50 -0700, Paul E. McKenney wrote: > > Hello! > > > > A few random patches that permit POWER to pass kernbench on -rt. > > Many of these have more focus on expediency than care for correctness, > > so

[PATCH] sched: CONFIG_FAIR_USER_SCHED: auto adjust users weights

2007-10-31 Thread Guillaume Chazarain
CONFIG_FAIR_USER_SCHED is great and I'm happy to see it is enabled by default but it suffers from some limitations IMHO at this time: - on a single user system, it's useful to have root processes be given twice as CPU as user processes but I don't want nice 19 cron jobs like updatedb or rpmq to

Re: [PATCH] mtrr use type bool

2007-10-31 Thread Richard Knutsson
Lennart Sorensen wrote: On Wed, Oct 31, 2007 at 04:27:31PM +0100, Richard Knutsson wrote: Paul Jimenez wrote: - usage_table[i] = usage_table[replace] + !!increment; + usage_table[i] = usage_table[replace] + increment; This

Re: [PATCH 3/3] leds-clevo-mail: driver for Clevo mail LED

2007-10-31 Thread Richard Purdie
On Sun, 2007-10-28 at 12:22 +0100, Németh Márton wrote: > Richard Purdie wrote: > > Hmm, there really is no way to just turn the LED on? :( > > Unfortunately I do not have these optional modules so I never saw the LED > just on without blinking. I don't know if there is any hardware limitation >

Re: fix marker warnings

2007-10-31 Thread Mathieu Desnoyers
* Dave Hansen ([EMAIL PROTECTED]) wrote: > On Tue, 2007-10-30 at 22:08 -0400, Mathieu Desnoyers wrote: > > * Dave Hansen ([EMAIL PROTECTED]) wrote: > > > I'm seeing these in the latest git: > > > > > > kernel/marker.c: In function `marker_probe_unregister': > > > kernel/marker.c:355: warning:

Re: [RFC] cpuset relative memory policies - second choice

2007-10-31 Thread Paul Jackson
Christoph wrote: > > short policy; /* See MPOL_* above */ > > + char mpol_nodemask_mode; /* See MPOL_MODE_* above; union c below */ > > Make both policy and the mode char? Well, the mpol_nodemask_mode already is char. So I guess you're asking if we should change 'policy' to type char as

Re: [PATCH 09/14] Blackfin SPI driver: Fix SPI driver to work with SPI flash ST25P16 on bf548

2007-10-31 Thread David Brownell
> > > pretty much all SPI flashes have two read commands ("slow" and "fast" > > > as they're typically called). > > > > Not DataFlash. > > doesnt it ? AT45DB642D says 0x0B is fast (up to 66mhz) while 0x03 (up to > 33mhz) And ...041B, ...081B, ...161B, ...321, ...321C, and others don't. (From a

Suspend to ram regression (2.6.24-rc1-git)

2007-10-31 Thread Jens Axboe
Hi, My x60 stopped suspending about two days ago. It just freezes after printing Suspending console(s) where it would normally turn everything off and the 'moon' light would go on. Posting this message in case somebody else knows what is up, if not I'll do a bisect on it tomorrow. -- Jens

Re: [PATCH 0/2 -v2 resend] x86_64 EFI boot support

2007-10-31 Thread H. Peter Anvin
Andrew Morton wrote: I stopped paying attention, sorry. Have all the outstanding issues been addressed? The "EFI boot" patchset looks fairly unobtrusive to me. One objection: the VIDEO_TYPE_ numbers appear split up into groups; and the EFI one probably should be 0x70 instead of 0x24.

2.6.22+, CONFIG_NO_HZ=n, but irq/s looks like NO_HZ=y

2007-10-31 Thread Benjamin Yates
can't find many references on this one, so posting here... CONFIG_NO_HZ=n, but vmstat output shows int/sec which looks like a dynticks setup. vmstat lies? vmstat needs an update? -benjamin [EMAIL PROTECTED] /usr/src/linux # uname -a Linux blahblah 2.6.23.1 #2 SMP Sun

Re: [patch] __do_IRQ does not check IRQ_DISABLED when IRQ_PER_CPU is set

2007-10-31 Thread Russ Anderson
On Wed, Oct 31, 2007 at 09:20:27AM -0700, Luck, Tony wrote: > > One user encountering this behavior is the CPE handler (in > > arch/ia64/kernel/mca.c). When the CPE handler encounters too many > > CPEs (such as a solid single bit error), it sets up a polling timer > > and disables the CPE

[PATCH 1/4] UML - Fix spurious IRQ testing

2007-10-31 Thread Jeff Dike
The spurious IRQ testing in request_irq is mishandled in um_request_irq, which sets the incoming file descriptors non-blocking only after request_irq succeeds. This results in the spurious irq calling read on a blocking descriptor, and a hang. Fixed by reversing the O_NONBLOCK setting and the

[PATCH 3/4] UML - Fix build for !CONFIG_TCP

2007-10-31 Thread Jeff Dike
Make UML build in the absence of CONFIG_INET by making the inetaddr_notifier registration depend on it. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/drivers/net_kern.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) Index:

[PATCH 0/4] UML - Four fixes for 2.6.24

2007-10-31 Thread Jeff Dike
These four patches are bug and build fixes that should go into 2.6.24. Jeff -- Work email - jdike at linux dot intel dot com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo

[PATCH 4/4] UML - Fix build for !CONFIG_PRINTK

2007-10-31 Thread Jeff Dike
Handle the case of CONFIG_PRINTK being disabled. This requires a do-nothing stub to be present in arch/um/include/user.h so that we don't get references to printk from libc code. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/include/user.h | 13 - 1 file changed, 12

[PATCH 2/4] UML - Remove last include of libc asm/page.h

2007-10-31 Thread Jeff Dike
asm/page.h is disappearing from the libc headers and we don't need it anyway. Signed-off-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/skas/clone.c |1 - 1 file changed, 1 deletion(-) Index: linux-2.6.22/arch/um/kernel/skas/clone.c

Re: [PATCH 0/2 -v2 resend] x86_64 EFI boot support

2007-10-31 Thread Andrew Morton
On Wed, 31 Oct 2007 09:21:41 +0800 "Huang, Ying" <[EMAIL PROTECTED]> wrote: > Can this patchset be merged into mainline kernel? This patchset has been > in -mm tree from 2.6.23-rc2-mm2 on. Andrew Moton has suggested it to be > merged into 2.6.24 during early merge window of 2.6.24. It was not >

Re: MMC: CRC Errors with 2GB cards

2007-10-31 Thread Pierre Ossman
On Mon, 29 Oct 2007 05:50:15 -0400 Roopesh <[EMAIL PROTECTED]> wrote: > > I have purchased 4 Transcend cards, and all of them behave the > same way. Just wondering why others dont have this problem, and > why such a fix hasn't made it to main tree yet. > Odd. I have a whole bunch of

[GIT PATCH] driver core fix for previous 2.6.24-rc1 pull

2007-10-31 Thread Greg KH
I messed up with my previous set of driver core fixes and sent a patch that removed some functions that the ia64 arch still uses. I've now reverted that patch, sorry about that. Thanks to Tony Luck for pointing out my mistake. Please pull from:

Re: [RFC] Create kinst/ or ki/ directory ?

2007-10-31 Thread Arjan van de Ven
On Wed, 31 Oct 2007 15:05:06 -0400 "Frank Ch. Eigler" <[EMAIL PROTECTED]> wrote: > Hi - > > On Wed, Oct 31, 2007 at 09:29:07AM -0700, Arjan van de Ven wrote: > > [...] > > > This misstates the details. What systemtap has out-of-tree is a > > > list of kernel function names (and parameter

Re: [PATCH] ehea: add kexec support

2007-10-31 Thread Christoph Raisch
Michael Ellerman <[EMAIL PROTECTED]> wrote on 30.10.2007 23:50:36: > > On Tue, 2007-10-30 at 09:39 +0100, Christoph Raisch wrote: > > > > Michael Ellerman <[EMAIL PROTECTED]> wrote on 28.10.2007 23:32:17: > > Hope I didn't miss anything here... > > Perhaps. When we kdump the kernel does not call

Re: fix marker warnings

2007-10-31 Thread Dave Hansen
On Tue, 2007-10-30 at 22:08 -0400, Mathieu Desnoyers wrote: > * Dave Hansen ([EMAIL PROTECTED]) wrote: > > I'm seeing these in the latest git: > > > > kernel/marker.c: In function `marker_probe_unregister': > > kernel/marker.c:355: warning: `probe_module' might be used uninitialized in > > this

Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?

2007-10-31 Thread Stephen Hemminger
On Wed, 31 Oct 2007 14:43:51 -0400 Dave Johnson <[EMAIL PROTECTED]> wrote: > > Depending on the network driver, I'm seeing different behavior if > a .1q packet is received to an PF_PACKET, SOCK_RAW, ETH_P_ALL socket. > > > On devices what do not use NETIF_F_HW_VLAN_RX, the packet socket gets >

Re: [RFC] Create kinst/ or ki/ directory ?

2007-10-31 Thread Frank Ch. Eigler
Hi - On Wed, Oct 31, 2007 at 12:36:24PM -0400, Mathieu Desnoyers wrote: > [...] That's right, Systemtap uses symbols, thanks for the > clarification. But my point is still valid: SystemTAP expects > function names and argument names to stay unchanged, therefore using > the kernel code itself as

Re: 2.4.24-rc1-git: crash on shutdown/unmount?

2007-10-31 Thread Jens Axboe
available from: > > http://devzero.co.uk/~alistair/oops-20071031/ > > I went back to -rc1 and it still happens there too. If you need any more > information or want me to bisect it, please let me know. I do, I'll post a patch shortly. Just need to test it first. -- Jens Axboe - To un

2.4.24-rc1-git: crash on shutdown/unmount?

2007-10-31 Thread Alistair John Strachan
Hi Jens, I guessed from the oops that you might have an idea what's causing this oops on shutdown/unmount. The git version (describe), a screenshot showing the oops, a config, and dmesg for a booted kernel are available from: http://devzero.co.uk/~alistair/oops-20071031/ I went back to -rc1

Re: [PATCH 09/14] Blackfin SPI driver: Fix SPI driver to work with SPI flash ST25P16 on bf548

2007-10-31 Thread Mike Frysinger
On 10/31/07, David Brownell <[EMAIL PROTECTED]> wrote: > On Wednesday 31 October 2007, Mike Frysinger wrote: > > On 10/31/07, David Brownell <[EMAIL PROTECTED]> wrote: > > > (ISTR the M25P16 in $SUBJECT has two read commands, one of > > > which is only usable at clock rates below 33 MHz or so, but

Re: [PATCH 13/14] Blackfin SPI driver: Move cs_chg_udelay to cs_deactive to fix bug when some SPI LCD driver needs delay after cs_deactive

2007-10-31 Thread Cameron Barfield
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 It may be hardware specific for our board, but my thought is that any device should be able to take advantage of the cs_chg_udelay regardless of which write function it uses. As far as I can see, there is no where else to make a clean change to

Re: [RFC] Create kinst/ or ki/ directory ?

2007-10-31 Thread Frank Ch. Eigler
Hi - On Wed, Oct 31, 2007 at 09:29:07AM -0700, Arjan van de Ven wrote: > [...] > > This misstates the details. What systemtap has out-of-tree is a list > > of kernel function names (and parameter names), not addresses. This > > list does change somewhat with kernel versions, but we generally

Re: [PATCH 09/14] Blackfin SPI driver: Fix SPI driver to work with SPI flash ST25P16 on bf548

2007-10-31 Thread David Brownell
On Wednesday 31 October 2007, Mike Frysinger wrote: > On 10/31/07, David Brownell <[EMAIL PROTECTED]> wrote: > > (ISTR the M25P16 in $SUBJECT has two read commands, one of > > which is only usable at clock rates below 33 MHz or so, but > > most other commands can work above that speed just fine.)

Re: [RFC] mempolicy minor code cleanups

2007-10-31 Thread Christoph Lameter
On Wed, 31 Oct 2007, Paul Jackson wrote: > From: Paul Jackson <[EMAIL PROTECTED]> > > Some minor code cleanups for mm/mempolicy.c. H... Could you elaborate on why you moved certain things around and why another call into cpusets was added? - To unsubscribe from this list: send the line

<    1   2   3   4   5   6   7   8   9   >