Re: [PATCH] [RFC] kernel/cpu: Use lockref for online CPU reference counting

2016-02-17 Thread Joonas Lahtinen
On ti, 2016-02-16 at 12:07 +0100, Peter Zijlstra wrote: > On Tue, Feb 16, 2016 at 12:51:03PM +0200, Joonas Lahtinen wrote: > > Quoting my original patch; > > > > "See the Bugzilla link for more details. > > If its not in the Changelog it doesn't exist. Pa

Re: [Intel-gfx] [PATCH] [RFC] kernel/cpu: Use lockref for online CPU reference counting

2016-02-18 Thread Joonas Lahtinen
have been caught by cpuhp_lock_* lockdep tracking. So I'll move the discussion to linux-pm list to change the CPUfreq code. Thanks for the comments. Regards, Joonas -- Joonas Lahtinen Open Source Technology Center Intel Corporation

Re: [PATCH] [RFC] kernel/cpu: Use lockref for online CPU reference counting

2016-02-18 Thread Joonas Lahtinen
Hi, On ma, 2016-02-15 at 18:06 +0100, Peter Zijlstra wrote: > On Mon, Feb 15, 2016 at 03:17:55PM +0100, Peter Zijlstra wrote: > > On Mon, Feb 15, 2016 at 02:36:43PM +0200, Joonas Lahtinen wrote: > > > Instead of implementing a custom locked reference counting, use lockref. &g

Re: [PATCH v2 2/3] mm/vmap: Add a notifier for when we run out of vmap address space

2016-04-05 Thread Joonas Lahtinen
> Cc: Roman Peniaev > Cc: Mel Gorman > Cc: linux...@kvack.org > Cc: linux-kernel@vger.kernel.org > Acked-by: Andrew Morton # for inclusion via DRM > Cc: Joonas Lahtinen Reviewed-by: Joonas Lahtinen > Cc: Tvrtko Ursulin > --- >  include/linux/vmalloc.h |  4 >

Re: [PATCH v2 3/3] drm/i915/shrinker: Hook up vmap allocation failure notifier

2016-04-05 Thread Joonas Lahtinen
hain and try and reap objects holding onto vmaps. > > Signed-off-by: Chris Wilson > Cc: Andrew Morton > Cc: David Rientjes > Cc: Roman Pen > Cc: Mel Gorman > Cc: linux...@kvack.org > Cc: linux-kernel@vger.kernel.org > Cc: Joonas Lahtinen A comment below. But regardles

Re: [PATCH] kernfs: Move faulting copy_user operations outside of the mutex

2016-03-31 Thread Joonas Lahtinen
he > > kernfs file mutex: > ... > > > > Reported-by: Ville Syrjälä > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94350 > > Signed-off-by: Chris Wilson > > Reviewed-by: Joonas Lahtinen > > Cc: Ville Syrjälä > > Cc: Joonas Lahtinen > > C

Re: [PATCH] kernfs: Move faulting copy_user operations outside of the mutex

2016-04-01 Thread Joonas Lahtinen
On to, 2016-03-31 at 13:15 -0700, Greg Kroah-Hartman wrote: > On Thu, Mar 31, 2016 at 08:30:05PM +0300, Joonas Lahtinen wrote: > > > > On to, 2016-03-31 at 12:49 -0400, Tejun Heo wrote: > > > > > > On Thu, Mar 31, 2016 at 11:45:06AM +0100, Chris Wilson wrote:

[PATCH] kernel/cpu: Distinctive name for cpu_hotplug.dep_map

2016-02-03 Thread Joonas Lahtinen
Use distinctive name for cpu_hotplug.dep_map to avoid the actual cpu_hotplug.lock appearing as cpu_hotplug.lock#2 in lockdep splats. Cc: Gautham R. Shenoy Cc: Rafael J. Wysocki Cc: Intel graphics driver community testing & development Signed-off-by: Joonas Lahtinen --- kernel/cpu.c

[PATCH] kernel/cpu: Distinct name for cpu_hotplug.dep_map

2016-06-09 Thread Joonas Lahtinen
-by: Joonas Lahtinen --- This time CC'ing triv...@kernel.org too in the hopes of finally getting this in. --- kernel/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cpu.c b/kernel/cpu.c index d948e44..d74199d 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -155,7 +155,7

Re: [PATCH v3 1/2] iommu: Disable preemption around use of this_cpu_ptr()

2016-06-01 Thread Joonas Lahtinen
var = this_cpu_ptr() to var = get_cpu_ptr() > v3: Actually use get_cpu_ptr (not get_cpu_var). Drop the spinlock > removal, concentrate on the immediate bug fix. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96293 > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen

Re: [PATCH v3 2/2] iommu: Remove cpu-local spinlock

2016-06-01 Thread Joonas Lahtinen
ut of memory. Here, we can instead schedule a task to run > on the other CPU to do the flush before trying again. > > Signed-off-by: Chris Wilson > Cc: Joonas Lahtinen > Cc: Joerg Roedel > Cc: io...@lists.linux-foundation.org > Cc: linux-kernel@vger.kernel.org &

Re: [PATCH] intel-pstate: Update frequencies of policy->cpus only from ->set_policy()

2016-02-22 Thread Joonas Lahtinen
rite(>rwsem); > > pm_suspend(...) > ...disable_nonboot_cpus() > _cpu_down() > cpu_hotplug_begin(); // Locks cpu_hotplug.lock > __cpu_notify(CPU_DOWN_PREPARE, ...); > ...cpufreq_offline_prepar

Re: [PATCH] kernel/cpu: Distinctive name for cpu_hotplug.dep_map

2016-02-15 Thread Joonas Lahtinen
Hi, According to scripts/get_maintainer.pl Ingo or Peter would be more appropriate to merge. Added them as To: On ke, 2016-02-03 at 22:42 +0530, Gautham R Shenoy wrote: > Hello Joonas, > > On Wed, Feb 03, 2016 at 04:24:28PM +0200, Joonas Lahtinen wrote: > > Use d

[PATCH] [RFC] kernel/cpu: Use lockref for online CPU reference counting

2016-02-15 Thread Joonas Lahtinen
a link for more details. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93294 Cc: Linux kernel development Cc: Ingo Molnar Cc: Peter Zijlstra Cc: David Hildenbrand Cc: Paul E. McKenney Cc: Gautham R. Shenoy Cc: Chris Wilson Signed-off-by: Joonas Lahtinen --- kernel/cpu.

Re: [PATCH] [RFC] kernel/cpu: Use lockref for online CPU reference counting

2016-02-16 Thread Joonas Lahtinen
Hi, On ma, 2016-02-15 at 18:06 +0100, Peter Zijlstra wrote: > On Mon, Feb 15, 2016 at 03:17:55PM +0100, Peter Zijlstra wrote: > > On Mon, Feb 15, 2016 at 02:36:43PM +0200, Joonas Lahtinen wrote: > > > Instead of implementing a custom locked reference counting, use lockref. &g

Re: [PATCH] [RFC] kernel/cpu: Use lockref for online CPU reference counting

2016-02-16 Thread Joonas Lahtinen
On ti, 2016-02-16 at 10:14 +0100, Peter Zijlstra wrote: > On Tue, Feb 16, 2016 at 10:49:36AM +0200, Joonas Lahtinen wrote: > > I originally thought of implementing this more similar to what you > > specify, but then I came across a discussion in the mailing list where > > it

<    1   2