Message ID | 20130913170331.GA8453@somewhere (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Frederic Weisbecker <fweisbec@gmail.com> writes: > On Tue, Sep 10, 2013 at 08:07:45AM -0700, Kevin Hilman wrote: >> Nicolas Pitre <nicolas.pitre@linaro.org> writes: >> >> > Adding Kevin Hilman to the CC as he might be interested as well. >> >> Thanks, I'd already noticed this but was distracted getting arm-soc >> changes ready for the merge window. Looking into it now. > > Kevin, can you please try this patch? It built tested fine on ARM > and live tested correctly on x86. There should be no problem but > just in case. Tested-by: Kevin Hilman <khilman@linaro.org> Things are back to working again on ARM. Thanks for the fix, and for build testing on ARM. As you noticed to test on ARM, we still have to carry that patch to drop that 'depends on 64BIT' in order to build/test this... any more thoughts on what the remaining obstacles there are? Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Sep 13, 2013 at 03:50:07PM -0700, Kevin Hilman wrote: > Frederic Weisbecker <fweisbec@gmail.com> writes: > > > On Tue, Sep 10, 2013 at 08:07:45AM -0700, Kevin Hilman wrote: > >> Nicolas Pitre <nicolas.pitre@linaro.org> writes: > >> > >> > Adding Kevin Hilman to the CC as he might be interested as well. > >> > >> Thanks, I'd already noticed this but was distracted getting arm-soc > >> changes ready for the merge window. Looking into it now. > > > > Kevin, can you please try this patch? It built tested fine on ARM > > and live tested correctly on x86. There should be no problem but > > just in case. > > Tested-by: Kevin Hilman <khilman@linaro.org> > > Things are back to working again on ARM. Thanks for the fix, and for > build testing on ARM. > > As you noticed to test on ARM, we still have to carry that patch to > drop that 'depends on 64BIT' in order to build/test this... any more > thoughts on what the remaining obstacles there are? I was mostly fine with your last patchset that enabled that + a few stuff to make it working on ARM. There were just a few details to polish. But I remember I sent detailed reviews, may be you missed them somewhow? Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Sep 13, 2013 at 07:03:34PM +0200, Frederic Weisbecker wrote: > diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c > index 247091b..859c8df 100644 > --- a/kernel/context_tracking.c > +++ b/kernel/context_tracking.c > @@ -51,6 +51,15 @@ void context_tracking_user_enter(void) > unsigned long flags; > > /* > + * Repeat the user_enter() check here because some archs may be calling > + * this from asm and if no CPU needs context tracking, they shouldn't > + * go further. We can remove that check here once these archs support the static key > + * check. The only (minor) comment on this is that the above would fail checkpatch, but that's not a good enough reason to respin it if you've already applied it IMHO. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Sat, Sep 14, 2013 at 7:19 AM, Frederic Weisbecker <fweisbec@gmail.com> wrote: > On Fri, Sep 13, 2013 at 03:50:07PM -0700, Kevin Hilman wrote: >> Frederic Weisbecker <fweisbec@gmail.com> writes: >> >> > On Tue, Sep 10, 2013 at 08:07:45AM -0700, Kevin Hilman wrote: >> >> Nicolas Pitre <nicolas.pitre@linaro.org> writes: >> >> >> >> > Adding Kevin Hilman to the CC as he might be interested as well. >> >> >> >> Thanks, I'd already noticed this but was distracted getting arm-soc >> >> changes ready for the merge window. Looking into it now. >> > >> > Kevin, can you please try this patch? It built tested fine on ARM >> > and live tested correctly on x86. There should be no problem but >> > just in case. >> >> Tested-by: Kevin Hilman <khilman@linaro.org> >> >> Things are back to working again on ARM. Thanks for the fix, and for >> build testing on ARM. >> >> As you noticed to test on ARM, we still have to carry that patch to >> drop that 'depends on 64BIT' in order to build/test this... any more >> thoughts on what the remaining obstacles there are? > > I was mostly fine with your last patchset that enabled that + > a few stuff to make it working on ARM. There were just a few details > to polish. But I remember I sent detailed reviews, may be you missed them > somewhow? Hmm, looks like I missed those, but see them now. I'll go back through those and respin/resend. Thanks, Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
2013/9/14, Russell King - ARM Linux <linux@arm.linux.org.uk>: > On Fri, Sep 13, 2013 at 07:03:34PM +0200, Frederic Weisbecker wrote: >> diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c >> index 247091b..859c8df 100644 >> --- a/kernel/context_tracking.c >> +++ b/kernel/context_tracking.c >> @@ -51,6 +51,15 @@ void context_tracking_user_enter(void) >> unsigned long flags; >> >> /* >> + * Repeat the user_enter() check here because some archs may be calling >> + * this from asm and if no CPU needs context tracking, they shouldn't >> + * go further. We can remove that check here once these archs support >> the static key >> + * check. > > The only (minor) comment on this is that the above would fail checkpatch, > but that's not a good enough reason to respin it if you've already applied > it IMHO. > Ah I haven't yet pushed that patch anywhere so I can definetly fix that. Thanks for the review. BTW, I initially first thought this fix could go through your tree but if you prefer I can push it through Ingo to the context tracking bits. Just tell me either way. Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Frederic Weisbecker <fweisbec@gmail.com> writes: > 2013/9/14, Russell King - ARM Linux <linux@arm.linux.org.uk>: >> On Fri, Sep 13, 2013 at 07:03:34PM +0200, Frederic Weisbecker wrote: >>> diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c >>> index 247091b..859c8df 100644 >>> --- a/kernel/context_tracking.c >>> +++ b/kernel/context_tracking.c >>> @@ -51,6 +51,15 @@ void context_tracking_user_enter(void) >>> unsigned long flags; >>> >>> /* >>> + * Repeat the user_enter() check here because some archs may be calling >>> + * this from asm and if no CPU needs context tracking, they shouldn't >>> + * go further. We can remove that check here once these archs support >>> the static key >>> + * check. >> >> The only (minor) comment on this is that the above would fail checkpatch, >> but that's not a good enough reason to respin it if you've already applied >> it IMHO. >> > > Ah I haven't yet pushed that patch anywhere so I can definetly fix > that. Thanks for the review. BTW, I initially first thought this fix > could go through your tree but if you prefer I can push it through > Ingo to the context tracking bits. > > Just tell me either way. Frederic, I suggest you queue it directly for v3.12-rc. Thanks, Kevin -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Wed, Sep 25, 2013 at 10:38:58AM -0700, Kevin Hilman wrote: > Frederic Weisbecker <fweisbec@gmail.com> writes: > > > 2013/9/14, Russell King - ARM Linux <linux@arm.linux.org.uk>: > >> On Fri, Sep 13, 2013 at 07:03:34PM +0200, Frederic Weisbecker wrote: > >>> diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c > >>> index 247091b..859c8df 100644 > >>> --- a/kernel/context_tracking.c > >>> +++ b/kernel/context_tracking.c > >>> @@ -51,6 +51,15 @@ void context_tracking_user_enter(void) > >>> unsigned long flags; > >>> > >>> /* > >>> + * Repeat the user_enter() check here because some archs may be calling > >>> + * this from asm and if no CPU needs context tracking, they shouldn't > >>> + * go further. We can remove that check here once these archs support > >>> the static key > >>> + * check. > >> > >> The only (minor) comment on this is that the above would fail checkpatch, > >> but that's not a good enough reason to respin it if you've already applied > >> it IMHO. > >> > > > > Ah I haven't yet pushed that patch anywhere so I can definetly fix > > that. Thanks for the review. BTW, I initially first thought this fix > > could go through your tree but if you prefer I can push it through > > Ingo to the context tracking bits. > > > > Just tell me either way. > > Frederic, I suggest you queue it directly for v3.12-rc. Thanks, Ok, I'm doing that then, thanks you! -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S index de23a9b..39f89fb 100644 --- a/arch/arm/kernel/entry-header.S +++ b/arch/arm/kernel/entry-header.S @@ -329,10 +329,10 @@ #ifdef CONFIG_CONTEXT_TRACKING .if \save stmdb sp!, {r0-r3, ip, lr} - bl user_exit + bl context_tracking_user_exit ldmia sp!, {r0-r3, ip, lr} .else - bl user_exit + bl context_tracking_user_exit .endif #endif .endm @@ -341,10 +341,10 @@ #ifdef CONFIG_CONTEXT_TRACKING .if \save stmdb sp!, {r0-r3, ip, lr} - bl user_enter + bl context_tracking_user_enter ldmia sp!, {r0-r3, ip, lr} .else - bl user_enter + bl context_tracking_user_enter .endif #endif .endm diff --git a/kernel/context_tracking.c b/kernel/context_tracking.c index 247091b..859c8df 100644 --- a/kernel/context_tracking.c +++ b/kernel/context_tracking.c @@ -51,6 +51,15 @@ void context_tracking_user_enter(void) unsigned long flags; /* + * Repeat the user_enter() check here because some archs may be calling + * this from asm and if no CPU needs context tracking, they shouldn't + * go further. We can remove that check here once these archs support the static key + * check. + */ + if (!static_key_false(&context_tracking_enabled)) + return; + + /* * Some contexts may involve an exception occuring in an irq, * leading to that nesting: * rcu_irq_enter() rcu_user_exit() rcu_user_exit() rcu_irq_exit() @@ -151,6 +160,9 @@ void context_tracking_user_exit(void) { unsigned long flags; + if (!static_key_false(&context_tracking_enabled)) + return; + if (in_interrupt()) return;