Re: [PATCH v3] powerpc/ppc64: Use preempt_schedule_irq instead of preempt_schedule

2009-10-28 Thread Benjamin Herrenschmidt
> Yes, the MSR_EE is cleared before we jump to do_work. I'm OK with > clearing the hardirqenable flag. I just assumed that the hardirq flag > was supposed to reflect the MSR_EE state, so it looked a bit odd > clearing the MSR_EE at one place and then reflecting the change at another. Yeah well

Re: [PATCH v3] powerpc/ppc64: Use preempt_schedule_irq instead of preempt_schedule

2009-10-28 Thread Valentine
Benjamin Herrenschmidt wrote: On Thu, 2009-10-29 at 00:28 +0300, Valentine wrote: Benjamin Herrenschmidt wrote: On Wed, 2009-10-28 at 22:19 +0300, Valentine wrote: I'm just not sure that we need to clear HARDIRQEN here, since we don't really hard-disable the the interrupts. We do, or rather,

Re: [PATCH v3] powerpc/ppc64: Use preempt_schedule_irq instead of preempt_schedule

2009-10-28 Thread Valentine
Benjamin Herrenschmidt wrote: So I _think_ that the irqs on/off accounting for lockdep isn't quite right. What do you think of this slightly modified version ? I've only done a quick boot test on a G5 with lockdep enabled and a played a bit, nothing shows up so far but it's definitely not conclus

Re: [PATCH v3] powerpc/ppc64: Use preempt_schedule_irq instead of preempt_schedule

2009-10-28 Thread Benjamin Herrenschmidt
On Wed, 2009-10-28 at 22:19 +0300, Valentine wrote: > I'm just not sure that we need to clear HARDIRQEN here, since we don't > really hard-disable the the interrupts. We do, or rather, we come in with the interrupts hard disabled, no ? Ben. > Thanks, > Val. > > > + TRACE_DISABLE_INTS > > +

Re: [PATCH v3] powerpc/ppc64: Use preempt_schedule_irq instead of preempt_schedule

2009-10-28 Thread Benjamin Herrenschmidt
On Thu, 2009-10-29 at 00:28 +0300, Valentine wrote: > Benjamin Herrenschmidt wrote: > > On Wed, 2009-10-28 at 22:19 +0300, Valentine wrote: > > > >> I'm just not sure that we need to clear HARDIRQEN here, since we don't > >> really hard-disable the the interrupts. > > > > We do, or rather, we co

Re: [PATCH v3] powerpc/ppc64: Use preempt_schedule_irq instead of preempt_schedule

2009-10-28 Thread Valentine
Benjamin Herrenschmidt wrote: On Wed, 2009-10-28 at 22:19 +0300, Valentine wrote: I'm just not sure that we need to clear HARDIRQEN here, since we don't really hard-disable the the interrupts. We do, or rather, we come in with the interrupts hard disabled, no ? Yes, looks like the interrupt