Re: linux-next: build failure after merge of the tip tree

2014-06-04 Thread Thomas Gleixner
On Wed, 4 Jun 2014, Olof Johansson wrote: > On Wed, Jun 4, 2014 at 3:49 AM, Thomas Gleixner wrote: > So, we'll dial back and stop taking these patches through our tree > without an explicit ack or shared branch from you (or Daniel on > clocksource). Not a problem at all. I prefer the shared

Re: linux-next: build failure after merge of the tip tree

2014-06-04 Thread Olof Johansson
On Wed, Jun 4, 2014 at 3:49 AM, Thomas Gleixner wrote: > On Wed, 4 Jun 2014, Stephen Rothwell wrote: > >> Hi all, >> >> After merging the tip tree, today's linux-next build (arm >> multi_v7_defconfig) failed like this: >> >> >> drivers/clocksource/versatile.c: In function

Re: linux-next: build failure after merge of the tip tree

2014-06-04 Thread Linus Torvalds
On Wed, Jun 4, 2014 at 3:49 AM, Thomas Gleixner wrote: > > Patch below. Linus, can you please apply this? Done. Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: linux-next: build failure after merge of the tip tree

2014-06-04 Thread Thomas Gleixner
On Wed, 4 Jun 2014, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > > drivers/clocksource/versatile.c: In function 'versatile_sched_clock_init': > drivers/clocksource/versatile.c:37:2: error: implicit

linux-next: build failure after merge of the tip tree

2014-06-04 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/clocksource/versatile.c: In function 'versatile_sched_clock_init': drivers/clocksource/versatile.c:37:2: error: implicit declaration of function 'setup_sched_clock'

linux-next: build failure after merge of the tip tree

2014-06-04 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/clocksource/versatile.c: In function 'versatile_sched_clock_init': drivers/clocksource/versatile.c:37:2: error: implicit declaration of function 'setup_sched_clock'

Re: linux-next: build failure after merge of the tip tree

2014-06-04 Thread Thomas Gleixner
On Wed, 4 Jun 2014, Stephen Rothwell wrote: Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/clocksource/versatile.c: In function 'versatile_sched_clock_init': drivers/clocksource/versatile.c:37:2: error: implicit

Re: linux-next: build failure after merge of the tip tree

2014-06-04 Thread Linus Torvalds
On Wed, Jun 4, 2014 at 3:49 AM, Thomas Gleixner t...@linutronix.de wrote: Patch below. Linus, can you please apply this? Done. Linus -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: linux-next: build failure after merge of the tip tree

2014-06-04 Thread Olof Johansson
On Wed, Jun 4, 2014 at 3:49 AM, Thomas Gleixner t...@linutronix.de wrote: On Wed, 4 Jun 2014, Stephen Rothwell wrote: Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: drivers/clocksource/versatile.c: In function

Re: linux-next: build failure after merge of the tip tree

2014-06-04 Thread Thomas Gleixner
On Wed, 4 Jun 2014, Olof Johansson wrote: On Wed, Jun 4, 2014 at 3:49 AM, Thomas Gleixner t...@linutronix.de wrote: So, we'll dial back and stop taking these patches through our tree without an explicit ack or shared branch from you (or Daniel on clocksource). Not a problem at all. I prefer

Re: linux-next: build failure after merge of the tip tree

2014-05-28 Thread Stephen Rothwell
Hi Russell, On Fri, 23 May 2014 17:14:12 +1000 Stephen Rothwell wrote: > > After merging the tip tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > In file included from arch/arm/include/asm/outercache.h:24:0, > from

Re: linux-next: build failure after merge of the tip tree

2014-05-28 Thread Stephen Rothwell
Hi Russell, On Fri, 23 May 2014 17:14:12 +1000 Stephen Rothwell s...@canb.auug.org.au wrote: After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/include/asm/outercache.h:24:0, from

linux-next: build failure after merge of the tip tree

2014-05-23 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/include/asm/outercache.h:24:0, from arch/arm/include/asm/barrier.h:5, from arch/arm/include/asm/bitops.h:28,

linux-next: build failure after merge of the tip tree

2014-05-23 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/include/asm/outercache.h:24:0, from arch/arm/include/asm/barrier.h:5, from arch/arm/include/asm/bitops.h:28,

linux-next: build failure after merge of the tip tree

2014-04-23 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/include/asm/outercache.h:24:0, from arch/arm/include/asm/barrier.h:5, from arch/arm/include/asm/bitops.h:28,

linux-next: build failure after merge of the tip tree

2014-04-23 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (arm multi_v7_defconfig) failed like this: In file included from arch/arm/include/asm/outercache.h:24:0, from arch/arm/include/asm/barrier.h:5, from arch/arm/include/asm/bitops.h:28,

Re: linux-next: build failure after merge of the tip tree

2014-02-11 Thread Preeti U Murthy
Hi Stephen, On 02/12/2014 08:11 AM, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > drivers/cpuidle/cpuidle-pseries.c: In function 'idle_loop_prolog': > drivers/cpuidle/cpuidle-pseries.c:32:2: error:

linux-next: build failure after merge of the tip tree

2014-02-11 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/cpuidle/cpuidle-pseries.c: In function 'idle_loop_prolog': drivers/cpuidle/cpuidle-pseries.c:32:2: error: implicit declaration of function 'ppc64_runlatch_off'

linux-next: build failure after merge of the tip tree

2014-02-11 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/cpuidle/cpuidle-pseries.c: In function 'idle_loop_prolog': drivers/cpuidle/cpuidle-pseries.c:32:2: error: implicit declaration of function 'ppc64_runlatch_off'

Re: linux-next: build failure after merge of the tip tree

2014-02-11 Thread Preeti U Murthy
Hi Stephen, On 02/12/2014 08:11 AM, Stephen Rothwell wrote: Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: drivers/cpuidle/cpuidle-pseries.c: In function 'idle_loop_prolog': drivers/cpuidle/cpuidle-pseries.c:32:2: error: implicit

linux-next: build failure after merge of the tip tree

2014-02-10 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/platforms/cell/spufs/sched.c:86:0: error: "MAX_USER_PRIO" redefined [-Werror] #define MAX_USER_PRIO (MAX_PRIO - MAX_RT_PRIO) ^ In file included from

linux-next: build failure after merge of the tip tree

2014-02-10 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (powerpc ppc64_defconfig) failed like this: arch/powerpc/platforms/cell/spufs/sched.c:86:0: error: MAX_USER_PRIO redefined [-Werror] #define MAX_USER_PRIO (MAX_PRIO - MAX_RT_PRIO) ^ In file included from include/linux/sched.h:6:0,

Re: linux-next: build failure after merge of the tip tree

2014-01-21 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Mon, Jan 20, 2014 at 04:39:45PM -0500, Len Brown wrote: > > > As a side note, at minimum the semantic and compatibility difference > > > needs to be _very_ clearly present in the naming. Something like > > > mwait_old_() or mwait_core2_(). That way such dependencies

Re: linux-next: build failure after merge of the tip tree

2014-01-21 Thread Ingo Molnar
* Peter Zijlstra pet...@infradead.org wrote: On Mon, Jan 20, 2014 at 04:39:45PM -0500, Len Brown wrote: As a side note, at minimum the semantic and compatibility difference needs to be _very_ clearly present in the naming. Something like mwait_old_() or mwait_core2_(). That way such

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Mike Galbraith
On Mon, 2014-01-20 at 22:51 +0100, Peter Zijlstra wrote: > I'm still waiting for someone to explain what's wrong with: > > static inline void mwait_idle(void) > { > local_irq_enable(); > mwait_idle_with_hints(0, 0); > } How about just do that going forward, it work, and can always

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 04:39:45PM -0500, Len Brown wrote: > > As a side note, at minimum the semantic and compatibility difference > > needs to be _very_ clearly present in the naming. Something like > > mwait_old_() or mwait_core2_(). That way such dependencies and > > assumptions don't get lost

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Len Brown
> As a side note, at minimum the semantic and compatibility difference > needs to be _very_ clearly present in the naming. Something like > mwait_old_() or mwait_core2_(). That way such dependencies and > assumptions don't get lost in code restructuring, etc. Agreed. We started with mwait_idle()

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Sedat Dilek
On Mon, Jan 20, 2014 at 2:10 PM, Stephen Rothwell wrote: > Hi Sedat, > > On Mon, 20 Jan 2014 09:46:55 +0100 Sedat Dilek wrote: >> >> On Mon, Jan 20, 2014 at 9:42 AM, Sedat Dilek wrote: >> > On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell >> > wrote: >> >> On Sat, 18 Jan 2014 10:46:06 +0100

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Stephen Rothwell
Hi Sedat, On Mon, 20 Jan 2014 09:46:55 +0100 Sedat Dilek wrote: > > On Mon, Jan 20, 2014 at 9:42 AM, Sedat Dilek wrote: > > On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell > > wrote: > >> On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith > >> wrote: > >>> > >>> I hope it doesn't look

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 02:19:30AM -0800, H. Peter Anvin wrote: > On 01/20/2014 02:13 AM, Peter Zijlstra wrote: > > On Mon, Jan 20, 2014 at 09:30:21AM +0100, Peter Zijlstra wrote: > >> Then make them so. The fact was that most of the mwait idle sites > >> were bloody broken. And the single

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 03:00:29AM -0800, H. Peter Anvin wrote: > On 01/20/2014 01:55 AM, Peter Zijlstra wrote: > > > > Ok, so I still don't get the problem of enabling interrupts early. > > > > If we enable them early we can get interrupts; which afaict fall into > > two groups, those that do

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 01:55 AM, Peter Zijlstra wrote: > > Ok, so I still don't get the problem of enabling interrupts early. > > If we enable them early we can get interrupts; which afaict fall into > two groups, those that do and do not set NEED_RESCHED. > > For those that do not set NEED_RESCHED,

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 02:13 AM, Peter Zijlstra wrote: > On Mon, Jan 20, 2014 at 09:30:21AM +0100, Peter Zijlstra wrote: >> Then make them so. The fact was that most of the mwait idle sites >> were bloody broken. And the single mwait_idle_with_hints() function >> presents a single nice function that does

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 09:30:21AM +0100, Peter Zijlstra wrote: > Then make them so. The fact was that most of the mwait idle sites > were bloody broken. And the single mwait_idle_with_hints() function > presents a single nice function that does all the required magics. To stress this a bit more;

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 01:23:00AM -0800, H. Peter Anvin wrote: > On 01/20/2014 01:16 AM, Peter Zijlstra wrote: > >> > >> The difference is the STI! > > > > So do the local_irq_enable(); mwait_idle_with_hints(0,0); thing. > > > > No, that doesn't work. The point of __sti_mwait() is that the

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Mike Galbraith
On Mon, 2014-01-20 at 10:25 +0100, Sedat Dilek wrote: > It's about the handling of fixes for -next. Ah, it was a gripe in query form. My bad. -Mike -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Ingo Molnar
* H. Peter Anvin wrote: > On 01/20/2014 01:16 AM, Peter Zijlstra wrote: > >> > >> The difference is the STI! > > > > So do the local_irq_enable(); mwait_idle_with_hints(0,0); thing. > > > > No, that doesn't work. The point of __sti_mwait() is that the STI > is the instruction immediately

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Sedat Dilek
On Mon, Jan 20, 2014 at 10:17 AM, Mike Galbraith wrote: > On Mon, 2014-01-20 at 09:42 +0100, Sedat Dilek wrote: >> On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell >> wrote: >> > On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith >> > wrote: >> >> >> >> I hope it doesn't look quite like that,

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 01:16 AM, Peter Zijlstra wrote: >> >> The difference is the STI! > > So do the local_irq_enable(); mwait_idle_with_hints(0,0); thing. > No, that doesn't work. The point of __sti_mwait() is that the STI is the instruction immediately before the MWAIT, just like the combination

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Mike Galbraith
On Mon, 2014-01-20 at 09:42 +0100, Sedat Dilek wrote: > On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell > wrote: > > On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith > > wrote: > >> > >> I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on > >> Q6600 box. See below for an

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 12:56:47AM -0800, H. Peter Anvin wrote: > On 01/20/2014 12:26 AM, Peter Zijlstra wrote: > > On Sun, Jan 19, 2014 at 11:45:43PM -0500, Len Brown wrote: > >> +static void mwait_idle(void) > >> +{ > >> + mwait_idle_with_hints(0, 0); > >> +} > >> + > >> > >> The reason

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 12:26 AM, Peter Zijlstra wrote: > On Sun, Jan 19, 2014 at 11:45:43PM -0500, Len Brown wrote: >> +static void mwait_idle(void) >> +{ >> + mwait_idle_with_hints(0, 0); >> +} >> + >> >> The reason the patch above will crash Core2 machines is because >> core2 machines don't support

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Sedat Dilek
On Mon, Jan 20, 2014 at 9:42 AM, Sedat Dilek wrote: > On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell > wrote: >> On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith >> wrote: >>> >>> I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on >>> Q6600 box. See below for an

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Sedat Dilek
On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell wrote: > On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith wrote: >> >> I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on >> Q6600 box. See below for an alternative. >> >> idle: kill unnecessary mwait_idle() resched IPIs > >

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Sun, Jan 19, 2014 at 08:00:19PM -0500, Len Brown wrote: > On Wed, Jan 15, 2014 at 10:58 PM, Stephen Rothwell > wrote: > > Hi all, > > > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > > failed like this: > > > > arch/x86/kernel/process.c: In function

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Sun, Jan 19, 2014 at 11:45:43PM -0500, Len Brown wrote: > +static void mwait_idle(void) > +{ > + mwait_idle_with_hints(0, 0); > +} > + > > The reason the patch above will crash Core2 machines is because > core2 machines don't support mwait_idle_with_hints(). > > The calling sequence for

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Stephen Rothwell
Hi Sedat, On Mon, 20 Jan 2014 09:46:55 +0100 Sedat Dilek sedat.di...@gmail.com wrote: On Mon, Jan 20, 2014 at 9:42 AM, Sedat Dilek sedat.di...@gmail.com wrote: On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell s...@canb.auug.org.au wrote: On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Sedat Dilek
On Mon, Jan 20, 2014 at 2:10 PM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi Sedat, On Mon, 20 Jan 2014 09:46:55 +0100 Sedat Dilek sedat.di...@gmail.com wrote: On Mon, Jan 20, 2014 at 9:42 AM, Sedat Dilek sedat.di...@gmail.com wrote: On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Len Brown
As a side note, at minimum the semantic and compatibility difference needs to be _very_ clearly present in the naming. Something like mwait_old_() or mwait_core2_(). That way such dependencies and assumptions don't get lost in code restructuring, etc. Agreed. We started with mwait_idle() --

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 04:39:45PM -0500, Len Brown wrote: As a side note, at minimum the semantic and compatibility difference needs to be _very_ clearly present in the naming. Something like mwait_old_() or mwait_core2_(). That way such dependencies and assumptions don't get lost in code

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Mike Galbraith
On Mon, 2014-01-20 at 22:51 +0100, Peter Zijlstra wrote: I'm still waiting for someone to explain what's wrong with: static inline void mwait_idle(void) { local_irq_enable(); mwait_idle_with_hints(0, 0); } How about just do that going forward, it work, and can always be fixed

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Sun, Jan 19, 2014 at 11:45:43PM -0500, Len Brown wrote: +static void mwait_idle(void) +{ + mwait_idle_with_hints(0, 0); +} + The reason the patch above will crash Core2 machines is because core2 machines don't support mwait_idle_with_hints(). The calling sequence for old and

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Sun, Jan 19, 2014 at 08:00:19PM -0500, Len Brown wrote: On Wed, Jan 15, 2014 at 10:58 PM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kernel/process.c: In function

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Sedat Dilek
On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell s...@canb.auug.org.au wrote: On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith bitbuc...@online.de wrote: I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on Q6600 box. See below for an alternative. idle: kill unnecessary

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Sedat Dilek
On Mon, Jan 20, 2014 at 9:42 AM, Sedat Dilek sedat.di...@gmail.com wrote: On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell s...@canb.auug.org.au wrote: On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith bitbuc...@online.de wrote: I hope it doesn't look quite like that, next-20140117 is

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 12:26 AM, Peter Zijlstra wrote: On Sun, Jan 19, 2014 at 11:45:43PM -0500, Len Brown wrote: +static void mwait_idle(void) +{ + mwait_idle_with_hints(0, 0); +} + The reason the patch above will crash Core2 machines is because core2 machines don't support

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 12:56:47AM -0800, H. Peter Anvin wrote: On 01/20/2014 12:26 AM, Peter Zijlstra wrote: On Sun, Jan 19, 2014 at 11:45:43PM -0500, Len Brown wrote: +static void mwait_idle(void) +{ + mwait_idle_with_hints(0, 0); +} + The reason the patch above will crash

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Mike Galbraith
On Mon, 2014-01-20 at 09:42 +0100, Sedat Dilek wrote: On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell s...@canb.auug.org.au wrote: On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith bitbuc...@online.de wrote: I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 01:16 AM, Peter Zijlstra wrote: The difference is the STI! So do the local_irq_enable(); mwait_idle_with_hints(0,0); thing. No, that doesn't work. The point of __sti_mwait() is that the STI is the instruction immediately before the MWAIT, just like the combination STI;HLT.

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Sedat Dilek
On Mon, Jan 20, 2014 at 10:17 AM, Mike Galbraith bitbuc...@online.de wrote: On Mon, 2014-01-20 at 09:42 +0100, Sedat Dilek wrote: On Mon, Jan 20, 2014 at 4:51 AM, Stephen Rothwell s...@canb.auug.org.au wrote: On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith bitbuc...@online.de wrote:

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Ingo Molnar
* H. Peter Anvin h...@zytor.com wrote: On 01/20/2014 01:16 AM, Peter Zijlstra wrote: The difference is the STI! So do the local_irq_enable(); mwait_idle_with_hints(0,0); thing. No, that doesn't work. The point of __sti_mwait() is that the STI is the instruction immediately

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Mike Galbraith
On Mon, 2014-01-20 at 10:25 +0100, Sedat Dilek wrote: It's about the handling of fixes for -next. Ah, it was a gripe in query form. My bad. -Mike -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 01:23:00AM -0800, H. Peter Anvin wrote: On 01/20/2014 01:16 AM, Peter Zijlstra wrote: The difference is the STI! So do the local_irq_enable(); mwait_idle_with_hints(0,0); thing. No, that doesn't work. The point of __sti_mwait() is that the STI is the

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 09:30:21AM +0100, Peter Zijlstra wrote: Then make them so. The fact was that most of the mwait idle sites were bloody broken. And the single mwait_idle_with_hints() function presents a single nice function that does all the required magics. To stress this a bit more;

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 02:13 AM, Peter Zijlstra wrote: On Mon, Jan 20, 2014 at 09:30:21AM +0100, Peter Zijlstra wrote: Then make them so. The fact was that most of the mwait idle sites were bloody broken. And the single mwait_idle_with_hints() function presents a single nice function that does all the

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread H. Peter Anvin
On 01/20/2014 01:55 AM, Peter Zijlstra wrote: Ok, so I still don't get the problem of enabling interrupts early. If we enable them early we can get interrupts; which afaict fall into two groups, those that do and do not set NEED_RESCHED. For those that do not set NEED_RESCHED, we'd have

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 03:00:29AM -0800, H. Peter Anvin wrote: On 01/20/2014 01:55 AM, Peter Zijlstra wrote: Ok, so I still don't get the problem of enabling interrupts early. If we enable them early we can get interrupts; which afaict fall into two groups, those that do and do not

Re: linux-next: build failure after merge of the tip tree

2014-01-20 Thread Peter Zijlstra
On Mon, Jan 20, 2014 at 02:19:30AM -0800, H. Peter Anvin wrote: On 01/20/2014 02:13 AM, Peter Zijlstra wrote: On Mon, Jan 20, 2014 at 09:30:21AM +0100, Peter Zijlstra wrote: Then make them so. The fact was that most of the mwait idle sites were bloody broken. And the single

Re: linux-next: build failure after merge of the tip tree

2014-01-19 Thread Len Brown
+static void mwait_idle(void) +{ + mwait_idle_with_hints(0, 0); +} + The reason the patch above will crash Core2 machines is because core2 machines don't support mwait_idle_with_hints(). The calling sequence for old and new MWAIT instructions is different. The former must be invoked with

Re: linux-next: build failure after merge of the tip tree

2014-01-19 Thread Stephen Rothwell
On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith wrote: > > I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on > Q6600 box. See below for an alternative. > > idle: kill unnecessary mwait_idle() resched IPIs OK, so despite even further discussion, I have applied this as a

Re: linux-next: build failure after merge of the tip tree

2014-01-19 Thread H. Peter Anvin
On 01/19/2014 05:00 PM, Len Brown wrote: > On Wed, Jan 15, 2014 at 10:58 PM, Stephen Rothwell > wrote: >> Hi all, >> >> After merging the tip tree, today's linux-next build (x86_64 allmodconfig) >> failed like this: >> >> arch/x86/kernel/process.c: In function 'mwait_idle': >>

Re: linux-next: build failure after merge of the tip tree

2014-01-19 Thread Len Brown
On Wed, Jan 15, 2014 at 10:58 PM, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > arch/x86/kernel/process.c: In function 'mwait_idle': > /scratch/sfr/next/arch/x86/kernel/process.c:434:3: error: implicit >

Re: linux-next: build failure after merge of the tip tree

2014-01-19 Thread Len Brown
On Wed, Jan 15, 2014 at 10:58 PM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kernel/process.c: In function 'mwait_idle': /scratch/sfr/next/arch/x86/kernel/process.c:434:3:

Re: linux-next: build failure after merge of the tip tree

2014-01-19 Thread H. Peter Anvin
On 01/19/2014 05:00 PM, Len Brown wrote: On Wed, Jan 15, 2014 at 10:58 PM, Stephen Rothwell s...@canb.auug.org.au wrote: Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kernel/process.c: In function 'mwait_idle':

Re: linux-next: build failure after merge of the tip tree

2014-01-19 Thread Stephen Rothwell
On Sat, 18 Jan 2014 10:46:06 +0100 Mike Galbraith bitbuc...@online.de wrote: I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on Q6600 box. See below for an alternative. idle: kill unnecessary mwait_idle() resched IPIs OK, so despite even further discussion, I have applied

Re: linux-next: build failure after merge of the tip tree

2014-01-19 Thread Len Brown
+static void mwait_idle(void) +{ + mwait_idle_with_hints(0, 0); +} + The reason the patch above will crash Core2 machines is because core2 machines don't support mwait_idle_with_hints(). The calling sequence for old and new MWAIT instructions is different. The former must be invoked with

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Peter Zijlstra
On Sat, Jan 18, 2014 at 11:14:57AM -0800, H. Peter Anvin wrote: > >> Could something like this work? > >> > >>local_irq_enable(); > >>mwait_idle_with_hints(0,0); > >> > This means an interrupt window is open and we can take an interrupt > between checking need_resched and the MWAIT, which

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread H. Peter Anvin
On 01/18/2014 07:21 AM, Mike Galbraith wrote: > On Sat, 2014-01-18 at 13:44 +0100, Peter Zijlstra wrote: >> On Sat, Jan 18, 2014 at 10:46:06AM +0100, Mike Galbraith wrote: >>> >>> I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on >>> Q6600 box. See below for an alternative. >>

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Mike Galbraith
On Sat, 2014-01-18 at 13:44 +0100, Peter Zijlstra wrote: > On Sat, Jan 18, 2014 at 10:46:06AM +0100, Mike Galbraith wrote: > > > > I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on > > Q6600 box. See below for an alternative. > > Urgh, I see, we call the idle arch_cpu_idle()

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Sabrina Dubroca
2014-01-18, 13:44:51 +0100, Peter Zijlstra wrote: > On Sat, Jan 18, 2014 at 10:46:06AM +0100, Mike Galbraith wrote: > > > > I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on > > Q6600 box. See below for an alternative. > > Urgh, I see, we call the idle arch_cpu_idle()

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Peter Zijlstra
On Sat, Jan 18, 2014 at 10:46:06AM +0100, Mike Galbraith wrote: > > I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on > Q6600 box. See below for an alternative. Urgh, I see, we call the idle arch_cpu_idle() callback with irqs disabled. Could something like this work?

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Mike Galbraith
On Fri, 2014-01-17 at 14:45 +1100, Stephen Rothwell wrote: > Hi all, > > On Thu, 16 Jan 2014 14:51:08 -0800 "H. Peter Anvin" wrote: > > > > On 01/16/2014 02:34 PM, Stephen Rothwell wrote: > > > > > > On Thu, 16 Jan 2014 23:25:36 +0100 Peter Zijlstra > > > wrote: > > >> > > >> On Fri, Jan 17,

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Mike Galbraith
On Fri, 2014-01-17 at 14:45 +1100, Stephen Rothwell wrote: Hi all, On Thu, 16 Jan 2014 14:51:08 -0800 H. Peter Anvin h...@zytor.com wrote: On 01/16/2014 02:34 PM, Stephen Rothwell wrote: On Thu, 16 Jan 2014 23:25:36 +0100 Peter Zijlstra pet...@infradead.org wrote: On Fri,

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Peter Zijlstra
On Sat, Jan 18, 2014 at 10:46:06AM +0100, Mike Galbraith wrote: I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on Q6600 box. See below for an alternative. Urgh, I see, we call the idle arch_cpu_idle() callback with irqs disabled. Could something like this work?

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Sabrina Dubroca
2014-01-18, 13:44:51 +0100, Peter Zijlstra wrote: On Sat, Jan 18, 2014 at 10:46:06AM +0100, Mike Galbraith wrote: I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on Q6600 box. See below for an alternative. Urgh, I see, we call the idle arch_cpu_idle() callback with

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Mike Galbraith
On Sat, 2014-01-18 at 13:44 +0100, Peter Zijlstra wrote: On Sat, Jan 18, 2014 at 10:46:06AM +0100, Mike Galbraith wrote: I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on Q6600 box. See below for an alternative. Urgh, I see, we call the idle arch_cpu_idle() callback

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread H. Peter Anvin
On 01/18/2014 07:21 AM, Mike Galbraith wrote: On Sat, 2014-01-18 at 13:44 +0100, Peter Zijlstra wrote: On Sat, Jan 18, 2014 at 10:46:06AM +0100, Mike Galbraith wrote: I hope it doesn't look quite like that, next-20140117 is -ENOBOOT on Q6600 box. See below for an alternative. Urgh, I see,

Re: linux-next: build failure after merge of the tip tree

2014-01-18 Thread Peter Zijlstra
On Sat, Jan 18, 2014 at 11:14:57AM -0800, H. Peter Anvin wrote: Could something like this work? local_irq_enable(); mwait_idle_with_hints(0,0); This means an interrupt window is open and we can take an interrupt between checking need_resched and the MWAIT, which couldn't happen

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread Stephen Rothwell
Hi all, On Thu, 16 Jan 2014 14:51:08 -0800 "H. Peter Anvin" wrote: > > On 01/16/2014 02:34 PM, Stephen Rothwell wrote: > > > > On Thu, 16 Jan 2014 23:25:36 +0100 Peter Zijlstra > > wrote: > >> > >> On Fri, Jan 17, 2014 at 07:46:28AM +1100, Stephen Rothwell > >> wrote: > >>> > >>> On Thu, 16

Re: [PATCH] speedstep: clean up interrupt disabling (was: linux-next: build failure after merge of the tip tree)

2014-01-16 Thread Rafael J. Wysocki
On Thursday, January 16, 2014 02:33:02 PM Mikulas Patocka wrote: > > On Thu, 16 Jan 2014, Peter Zijlstra wrote: > > > > > retry++; > > > > __asm__ __volatile__( > > > > @@ -217,6 +220,7 @@ static void speedstep_set_state(unsigned int state) > > > > > > > >

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread H. Peter Anvin
On 01/16/2014 02:34 PM, Stephen Rothwell wrote: > Hi Peter, > > On Thu, 16 Jan 2014 23:25:36 +0100 Peter Zijlstra > wrote: >> >> On Fri, Jan 17, 2014 at 07:46:28AM +1100, Stephen Rothwell >> wrote: >>> >>> On Thu, 16 Jan 2014 13:19:55 +0100 Peter Zijlstra >>> wrote: I think the

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread Stephen Rothwell
Hi Peter, On Thu, 16 Jan 2014 23:25:36 +0100 Peter Zijlstra wrote: > > On Fri, Jan 17, 2014 at 07:46:28AM +1100, Stephen Rothwell wrote: > > > > On Thu, 16 Jan 2014 13:19:55 +0100 Peter Zijlstra > > wrote: > > > > > > I think the below ought to work > > > > To be clear, all you did was

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread Peter Zijlstra
On Fri, Jan 17, 2014 at 07:46:28AM +1100, Stephen Rothwell wrote: > Hi Peter, > > On Thu, 16 Jan 2014 13:19:55 +0100 Peter Zijlstra > wrote: > > > > I think the below ought to work > > To be clear, all you did was replace the body of mwait_idle() with > > mwait_idle_with_hints(0, 0);

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread H. Peter Anvin
On 01/16/2014 04:19 AM, Peter Zijlstra wrote: > + * MONITOR/MWAIT with no hints, used for default default C1 state. The default default? -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread Stephen Rothwell
Hi Peter, On Thu, 16 Jan 2014 13:19:55 +0100 Peter Zijlstra wrote: > > I think the below ought to work To be clear, all you did was replace the body of mwait_idle() with mwait_idle_with_hints(0, 0); (and the comment above it)? I need to apply in incremental patch in the merge commit.

[PATCH] speedstep: clean up interrupt disabling (was: linux-next: build failure after merge of the tip tree)

2014-01-16 Thread Mikulas Patocka
On Thu, 16 Jan 2014, Peter Zijlstra wrote: > > > retry++; > > > __asm__ __volatile__( > > > @@ -217,6 +220,7 @@ static void speedstep_set_state(unsigned int state) > > > > > > /* enable IRQs */ > > > local_irq_restore(flags); > > > + preempt_enable(); > > > > > >

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread Peter Zijlstra
On Thu, Jan 16, 2014 at 02:58:29PM +1100, Stephen Rothwell wrote: > Hi all, > > After merging the tip tree, today's linux-next build (x86_64 allmodconfig) > failed like this: > > arch/x86/kernel/process.c: In function 'mwait_idle': > /scratch/sfr/next/arch/x86/kernel/process.c:434:3: error:

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread Peter Zijlstra
On Tue, Jan 14, 2014 at 04:43:43PM -0500, Mikulas Patocka wrote: > > @@ -200,7 +201,9 @@ static void speedstep_set_state(unsigned int state) > > if (retry) { > > pr_debug("retry %u, previous result %u, waiting...\n", > > retry,

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread Peter Zijlstra
On Tue, Jan 14, 2014 at 04:43:43PM -0500, Mikulas Patocka wrote: @@ -200,7 +201,9 @@ static void speedstep_set_state(unsigned int state) if (retry) { pr_debug(retry %u, previous result %u, waiting...\n, retry, result); +

Re: linux-next: build failure after merge of the tip tree

2014-01-16 Thread Peter Zijlstra
On Thu, Jan 16, 2014 at 02:58:29PM +1100, Stephen Rothwell wrote: Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: arch/x86/kernel/process.c: In function 'mwait_idle': /scratch/sfr/next/arch/x86/kernel/process.c:434:3: error: implicit

<    1   2   3   4   5   >