[PATCH 01/14] sched: add sched_class->task_dead.

2013-02-11 Thread Juri Lelli
actions. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/sched.h |1 + kernel/sched/core.c |3 +++ 2 files changed, 4 insertions(+) diff --git a/include/linux/sched.h b/include/linux/sched.h index d211247..640c741 100644 --- a/include/linux/sched.h +++ b/include

[PATCH 04/14] sched: SCHED_DEADLINE SMP-related data structures & logic.

2013-02-11 Thread Juri Lelli
ine.c b/kernel/sched/deadline.c index b1982a7..223cc3e 100644 --- a/kernel/sched/deadline.c +++ b/kernel/sched/deadline.c @@ -10,6 +10,7 @@ * miss some of their deadlines), and won't affect any other task. * * Copyright (C) 2012 Dario Faggioli , + *Juri Lelli , *

[PATCH 12/14] sched: make dl_bw a sub-quota of rt_bw

2013-02-11 Thread Juri Lelli
well. Signed-off-by: Juri Lelli --- include/linux/sched.h |1 - kernel/sched/core.c | 282 ++- kernel/sched/deadline.c |3 +- kernel/sched/sched.h| 22 ++-- kernel/sysctl.c |7 -- 5 files changed, 143 insertions(+), 172

[PATCH 14/14] sched: add sched_dl documentation.

2013-02-11 Thread Juri Lelli
From: Dario Faggioli Add in Documentation/scheduler/ some hints about the design choices, the usage and the future possible developments of the sched_dl scheduling class and of the SCHED_DEADLINE policy. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- Documentation/scheduler

[PATCH 02/14] sched: add extended scheduling interface.

2013-02-11 Thread Juri Lelli
ir already existing counterpart. Future patches that implement scheduling policies able to exploit the new data structure must also take care of modifying the *2() calls accordingly with their own purposes. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- arch/arm/include/asm/unistd.h

[PATCH 06/14] sched: add period support for -deadline tasks.

2013-02-11 Thread Juri Lelli
From: Harald Gustafsson Make it possible to specify a period (different or equal than deadline) for -deadline tasks. Signed-off-by: Harald Gustafsson Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/sched.h |1 + kernel/sched/core.c | 15

[PATCH 07/14] sched: add schedstats for -deadline tasks.

2013-02-11 Thread Juri Lelli
From: Dario Faggioli Add some typical sched-debug output to dl_rq(s) and some schedstats to -deadline tasks. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/sched.h | 13 + kernel/sched/deadline.c | 45

[PATCH 10/14] sched: drafted deadline inheritance logic.

2013-02-11 Thread Juri Lelli
-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/sched.h |9 - kernel/fork.c |1 + kernel/rtmutex.c| 13 +-- kernel/sched/core.c | 34 +++--- kernel/sched/deadline.c | 91 +++ ke

[PATCH 13/14] sched: speed up -dl pushes with a push-heap.

2013-02-11 Thread Juri Lelli
http://retis.sssup.it/~jlelli/papers/Ospert11Lelli.pdf [2] http://www.spinics.net/lists/linux-rt-users/msg06778.html Signed-off-by: Juri Lelli --- kernel/sched/Makefile |2 +- kernel/sched/core.c|3 + kernel/sched/cpudeadline.c |

[PATCH 11/14] sched: add bandwidth management for sched_dl.

2013-02-11 Thread Juri Lelli
be created until the sum of their bandwidths stay below: M * (sched_dl_runtime_us / sched_dl_period_us) It is also possible to disable this bandwidth management logic, and be thus free of oversubscribing the system up to any arbitrary level. Signed-off-by: Dario Faggioli Signed-off-by: Juri

[PATCH 09/14] rtmutex: turn the plist into an rb-tree.

2013-02-11 Thread Juri Lelli
s and the list of tasks blocked on a pi-lock. Signed-off-by: Peter Zijlstra Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/init_task.h | 10 +++ include/linux/rtmutex.h | 18 ++ include/linux/sched.h |4 +- kernel/fork.c |3 +- k

[PATCH 08/14] sched: add latency tracing for -deadline tasks.

2013-02-11 Thread Juri Lelli
ced. As a consequence of applying this patch there will be three wakeup latency tracer: * "wakeup", that deals with all tasks in the system; * "wakeup_rt", that deals with -rt and -deadline tasks only; * "wakeup_dl", that deals with -deadline tasks only. Signed-off-by: D

[PATCH 05/14] sched: SCHED_DEADLINE avg_update accounting.

2013-02-11 Thread Juri Lelli
From: Dario Faggioli Make the core scheduler and load balancer aware of the load produced by -deadline tasks, by updating the moving average like for sched_rt. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- kernel/sched/deadline.c |2 ++ 1 file changed, 2 insertions(+) diff

[PATCH 03/14] sched: SCHED_DEADLINE structures & implementation.

2013-02-11 Thread Juri Lelli
he interactions between sched/dl and the other existing scheduling classes. Signed-off-by: Dario Faggioli Signed-off-by: Michael Trimarchi Signed-off-by: Fabio Checconi Signed-off-by: Juri Lelli --- arch/arm/include/asm/unistd.h |2 +- include/linux/sched.h | 69 +++- include/uap

[RFC][PATCH 00/16] sched: SCHED_DEADLINE v6

2012-10-24 Thread Juri Lelli
ADLINE avg_update accounting. sched: add schedstats for -deadline tasks. sched: add latency tracing for -deadline tasks. sched: drafted deadline inheritance logic. sched: add bandwidth management for sched_dl. sched: add sched_dl documentation. Harald Gustafsson (1): sched: add period sup

[PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-24 Thread Juri Lelli
From: Peter Zijlstra Grow rudimentary u128 support without relying on gcc/libgcc. Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Andrew Morton Cc: Linus Torvalds Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-pppjsy9fz2v57x98hsts2...@git.kernel.org --- arch/alpha/include/asm/Kbu

[PATCH 02/16] math128, x86_64: Implement {mul,add}_u128 in 64bit asm

2012-10-24 Thread Juri Lelli
From: Peter Zijlstra Enable __int128 usage when available, if not, provide asm versions of mul_u64_u64 and add_u128. Cc: Ingo Molnar Cc: Thomas Gleixner Cc: H. Peter Anvin Cc: Andrew Morton Cc: Linus Torvalds Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-67zk6v8agsi8m7k1

[PATCH 03/16] sched: add sched_class->task_dead.

2012-10-24 Thread Juri Lelli
actions. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/sched.h |1 + kernel/sched/core.c |3 +++ 2 files changed, 4 insertions(+) diff --git a/include/linux/sched.h b/include/linux/sched.h index 0dd42a0..c8955a2 100644 --- a/include/linux/sched.h +++ b/include

[PATCH 04/16] sched: add extended scheduling interface.

2012-10-24 Thread Juri Lelli
ir already existing counterpart. Future patches that implement scheduling policies able to exploit the new data structure must also take care of modifying the *2() calls accordingly with their own purposes. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- arch/arm/include/asm/unistd.h

[PATCH 05/16] sched: SCHED_DEADLINE structures & implementation.

2012-10-24 Thread Juri Lelli
he interactions between sched/dl and the other existing scheduling classes. Signed-off-by: Dario Faggioli Signed-off-by: Michael Trimarchi Signed-off-by: Fabio Checconi Signed-off-by: Juri Lelli --- include/linux/sched.h | 69 - include/uapi/linux/sched.h |1 +

[PATCH 07/16] sched: SCHED_DEADLINE avg_update accounting.

2012-10-24 Thread Juri Lelli
From: Dario Faggioli Make the core scheduler and load balancer aware of the load produced by -deadline tasks, by updating the moving average like for sched_rt. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- kernel/sched/dl.c |2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH 08/16] sched: add period support for -deadline tasks.

2012-10-24 Thread Juri Lelli
From: Harald Gustafsson Make it possible to specify a period (different or equal than deadline) for -deadline tasks. Signed-off-by: Harald Gustafsson Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/sched.h |1 + kernel/sched/core.c | 15

[PATCH 10/16] sched: add latency tracing for -deadline tasks.

2012-10-24 Thread Juri Lelli
ced. As a consequence of applying this patch there will be three wakeup latency tracer: * "wakeup", that deals with all tasks in the system; * "wakeup_rt", that deals with -rt and -deadline tasks only; * "wakeup_dl", that deals with -deadline tasks only. Signed-off-by: D

[PATCH 09/16] sched: add schedstats for -deadline tasks.

2012-10-24 Thread Juri Lelli
From: Dario Faggioli Add some typical sched-debug output to dl_rq(s) and some schedstats to -deadline tasks. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/sched.h | 13 + kernel/sched/debug.c | 46

[PATCH 11/16] rtmutex: turn the plist into an rb-tree.

2012-10-24 Thread Juri Lelli
s and the list of tasks blocked on a pi-lock. Signed-off-by: Peter Zijlstra Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/init_task.h | 10 +++ include/linux/rtmutex.h | 18 ++ include/linux/sched.h |4 +- kernel/fork.c |3 +- k

[PATCH 12/16] sched: drafted deadline inheritance logic.

2012-10-24 Thread Juri Lelli
-by: Dario Faggioli Signed-off-by: Juri Lelli --- include/linux/sched.h |9 - kernel/fork.c |1 + kernel/rtmutex.c | 13 +-- kernel/sched/core.c | 34 +++--- kernel/sched/dl.c | 91 - kernel/sch

[PATCH 14/16] sched: make dl_bw a sub-quota of rt_bw

2012-10-24 Thread Juri Lelli
well. Signed-off-by: Juri Lelli --- include/linux/sched.h |1 - kernel/sched/core.c | 282 +++-- kernel/sched/dl.c |3 +- kernel/sched/sched.h | 22 ++-- kernel/sysctl.c |7 -- 5 files changed, 143 insertions(+), 172

[PATCH 15/16] sched: speed up -dl pushes with a push-heap.

2012-10-24 Thread Juri Lelli
http://retis.sssup.it/~jlelli/papers/Ospert11Lelli.pdf [2] http://www.spinics.net/lists/linux-rt-users/msg06778.html Signed-off-by: Juri Lelli --- kernel/sched/Makefile |2 +- kernel/sched/core.c |3 + kernel/sched/cpudl.c | 208 + k

[PATCH 16/16] sched: add sched_dl documentation.

2012-10-24 Thread Juri Lelli
From: Dario Faggioli Add in Documentation/scheduler/ some hints about the design choices, the usage and the future possible developments of the sched_dl scheduling class and of the SCHED_DEADLINE policy. Signed-off-by: Dario Faggioli Signed-off-by: Juri Lelli --- Documentation/scheduler

[PATCH 13/16] sched: add bandwidth management for sched_dl.

2012-10-24 Thread Juri Lelli
be created until the sum of their bandwidths stay below: M * (sched_dl_runtime_us / sched_dl_period_us) It is also possible to disable this bandwidth management logic, and be thus free of oversubscribing the system up to any arbitrary level. Signed-off-by: Dario Faggioli Signed-off-by: Juri

[PATCH 06/16] sched: SCHED_DEADLINE SMP-related data structures & logic.

2012-10-24 Thread Juri Lelli
kernel/sched/dl.c index 7e12ceb..bc8c310 100644 --- a/kernel/sched/dl.c +++ b/kernel/sched/dl.c @@ -10,6 +10,7 @@ * miss some of their deadlines), and won't affect any other task. * * Copyright (C) 2012 Dario Faggioli , + *Juri Lelli , *Michael Trima

Re: [PATCH 02/16] math128, x86_64: Implement {mul,add}_u128 in 64bit asm

2012-10-24 Thread Juri Lelli
On 10/24/2012 03:27 PM, H. Peter Anvin wrote: On 10/24/2012 02:53 PM, Juri Lelli wrote: diff --git a/arch/x86/include/asm/math128.h b/arch/x86/include/asm/math128.h new file mode 100644 index 000..c0e2a6c --- /dev/null +++ b/arch/x86/include/asm/math128.h @@ -0,0 +1,39 @@ +#ifndef

Re: [PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-24 Thread Juri Lelli
Adding H. Peter Anvin to the Cc list. Best, - Juri On 10/24/2012 02:53 PM, Juri Lelli wrote: From: Peter Zijlstra Grow rudimentary u128 support without relying on gcc/libgcc. Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Andrew Morton Cc: Linus Torvalds Signed-off-by: Peter Zijlstra Link

Re: [RFC][PATCH 00/16] sched: SCHED_DEADLINE v6

2012-10-25 Thread Juri Lelli
On 10/25/2012 12:18 AM, Ingo Molnar wrote: * Juri Lelli wrote: kernel/sched/dl.c | 1650 I've got a stupid nit here: please make that deadline.c. Same for cpudl.c. Sure, no problems with that. Thanks and Regards, - Juri

Re: [PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-26 Thread Juri Lelli
Hi, first of all thanks to everybody for all this comments! On 10/26/2012 05:56 AM, Peter Zijlstra wrote: On Fri, 2012-10-26 at 12:44 +0200, Peter Zijlstra wrote: We can still have the user space interface handing in the information in nsec resolution, but it's reasonable to scale it down to so

Re: [PATCH 01/16] math128: Introduce various 128bit primitives

2012-10-26 Thread Juri Lelli
On 10/26/2012 11:28 AM, Steven Rostedt wrote: On Fri, 2012-10-26 at 11:12 -0700, Juri Lelli wrote: - scale down (right by 10) incoming parameters as to do internal math with ~1us resolution (and scale up outgoing params) Would scaling down by 9 be sufficient? That way the resolution is

[PATCH 0/3] ftrace: fix stddev calculation and add a test for it

2013-06-11 Thread Juri Lelli
to implement the test (second patch). Third patch fixes up s^2 calculation (applying Welford's method). Juri Lelli (3): ftrace: refactor basis statistics calculation code ftrace: test basic statistics calculation ftrace: fix stddev calculation kernel/trace/ftrace.c |

[PATCH 1/3] ftrace: refactor basis statistics calculation code

2013-06-11 Thread Juri Lelli
Refactor function_stat_show() code grouping avg and stddev calculations inside a single function (function_stat_calc()). We are now able to call it from different places. Signed-off-by: Juri Lelli Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar --- kernel/trace/ftrace.c | 46

[PATCH 2/3] ftrace: test basic statistics calculation

2013-06-11 Thread Juri Lelli
Perform a simple test comparing static and running (implemented by function_stat_calc()) average and stddev calculations. Signed-off-by: Juri Lelli Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar --- kernel/trace/trace_selftest.c | 72 + 1

[PATCH 3/3] ftrace: fix stddev calculation

2013-06-11 Thread Juri Lelli
-off-by: Juri Lelli Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar --- kernel/trace/ftrace.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 6caaa0e..073a328 100644 --- a/kernel/trace/ftrace.c +++ b

Re: [PATCH 3/3] ftrace: fix stddev calculation

2013-06-12 Thread Juri Lelli
On 06/12/2013 05:09 AM, Steven Rostedt wrote: On Tue, 2013-06-11 at 11:08 +0200, Juri Lelli wrote: When FUNCTION_GRAPH_TRACER is enabled, ftrace can profile kernel functions and print basic statistics about them. Unfortunately, running stddev calculation is wrong. This patch corrects it

[PATCH] ftrace: fix stddev calculation

2013-06-12 Thread Juri Lelli
-off-by: Juri Lelli Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar --- kernel/trace/ftrace.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 6c508ff..6c3fce2 100644 --- a/kernel/trace/ftrace.c +++ b

[PATCH] rtmutex: document rt_mutex_adjust_prio_chain()

2013-05-15 Thread Juri Lelli
-by: Juri Lelli Cc: Ingo Molnar Cc: Clark Williams Cc: Steven Rostedt Cc: Peter Zijlstra --- kernel/rtmutex.c | 13 + 1 file changed, 13 insertions(+) diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c index 1e09308..0dd6aec 100644 --- a/kernel/rtmutex.c +++ b/kernel/rtmutex.c

Re: [discussion]sched: a rough proposal to enable power saving in scheduler

2012-08-19 Thread Juri Lelli
said, I just wanted to add something, sorry if I misinterpret the purpose of this discussion. Best Regards, - Juri Lelli -- 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 http://vge

Re: [PATCH v6 1/8] Documentation: arm: define DT cpu capacity-dmips-mhz bindings

2016-07-21 Thread Juri Lelli
Hi Rob, On 20/07/16 13:56, Rob Herring wrote: > On Tue, Jul 19, 2016 at 01:40:41PM +0100, Juri Lelli wrote: > > ARM systems may be configured to have cpus with different power/performance > > characteristics within the same chip. In this case, additional information > > has

Re: [PATCH v4] sched/deadline: remove useless param from setup_new_dl_entity

2016-07-21 Thread Juri Lelli
Hi, On 18/07/16 21:37, Xunlei Pang wrote: > On 2016/07/18 at 21:04, Juri Lelli wrote: > > On 15/07/16 18:39, Xunlei Pang wrote: > >> On 2016/07/13 at 18:58, Juri Lelli wrote: > > [...] > > > >> Since this is only called for queued cases now, there is no ne

Re: [PATCH v4] sched/deadline: remove useless param from setup_new_dl_entity

2016-07-21 Thread Juri Lelli
On 21/07/16 15:21, Juri Lelli wrote: > Hi, > > On 18/07/16 21:37, Xunlei Pang wrote: > > On 2016/07/18 at 21:04, Juri Lelli wrote: > > > On 15/07/16 18:39, Xunlei Pang wrote: > > >> On 2016/07/13 at 18:58, Juri Lelli wrote: > > > [...] > > >

Re: [PATCH v4] sched/deadline: remove useless param from setup_new_dl_entity

2016-07-21 Thread Juri Lelli
On 21/07/16 15:36, Juri Lelli wrote: > On 21/07/16 15:21, Juri Lelli wrote: > > Hi, > > > > On 18/07/16 21:37, Xunlei Pang wrote: > > > On 2016/07/18 at 21:04, Juri Lelli wrote: > > > > On 15/07/16 18:39, Xunlei Pang wrote: > &g

Re: [RFC PATCH 1/4] Minimally invasive deadline wrap-around bugfix for SCHED_DEADLINE cpu heap

2016-08-01 Thread Juri Lelli
om dl_time_before(), the kernel should handle > correctly abs deadlines wrap-arounds. > > This patch fixes the problem with a minimally invasive change that > forces cpudl_change_key() to heapify up in this case. > > Cc: Peter Zijlstra > Cc: Juri Lelli > Cc: Luca A

Re: [RFC PATCH 1/4] Minimally invasive deadline wrap-around bugfix for SCHED_DEADLINE cpu heap

2016-08-01 Thread Juri Lelli
On 01/08/16 12:43, Juri Lelli wrote: > Hi, > > On 19/07/16 11:44, Tommaso Cucinotta wrote: > > Current code in cpudeadline.c has a bug in re-heapifying when adding a > > new element at the end of the heap, because a deadline value of 0 is > > temporarily set in the new

Re: [RFC PATCH 2/4] SCHED_DEADLINE cpu heap code clarification/refactory.

2016-08-01 Thread Juri Lelli
of same code) s/repeatition/repetition/ > 2. call to cpudl_change_key() replaced with heapify_up() when >cpudl_set actually inserts a new node in the heap > Maybe we want a separate patch (we usually want 1 patch - 1 change) ? > Cc: Peter Zijlstra > Cc: Juri Lelli > Cc: Luc

Re: [PATCH] sched/deadline: document behavior of sched_yield()

2016-09-09 Thread Juri Lelli
Hi Tommaso, On 08/09/16 22:09, Tommaso Cucinotta wrote: > This is a documentation only patch, explaining the > behavior of sched_yield() when a SCHED_DEADLINE > task calls it (give up remaining runtime and > suspend till next period). I like the patch, but changelog lacks a SoB. Thanks, - Juri

Re: [PATCH 2/2] sched: cpufreq: use rt_avg as estimate of required RT CPU capacity

2016-08-31 Thread Juri Lelli
On 31/08/16 18:40, Peter Zijlstra wrote: > On Wed, Aug 31, 2016 at 06:28:10PM +0200, Thomas Gleixner wrote: > > > That is the way it's been with cpufreq and many systems (including all > > > mobile devices) rely on that to not destroy power. RT + variable cpufreq > > > is not deterministic. > > >

Re: [PATCH v6 2/8] arm: parse cpu capacity-dmips-mhz from DT

2016-08-31 Thread Juri Lelli
On 31/08/16 10:14, Vincent Guittot wrote: > On 30 August 2016 at 18:28, Juri Lelli wrote: > > Hi Vincent, > > > > On 16/08/16 10:20, Vincent Guittot wrote: > >> Hi Juri, > >> > >> > >> On 19 July 2016 at 14:40

Re: [PATCH v6 2/8] arm: parse cpu capacity-dmips-mhz from DT

2016-09-01 Thread Juri Lelli
On 01/09/16 10:22, Vincent Guittot wrote: > On 31 August 2016 at 19:08, Juri Lelli wrote: > > On 31/08/16 10:14, Vincent Guittot wrote: > >> On 30 August 2016 at 18:28, Juri Lelli wrote: > >> > Hi Vincent, > >> > > >> > On

Re: [PATCH 2/2] sched: cpufreq: use rt_avg as estimate of required RT CPU capacity

2016-09-02 Thread Juri Lelli
On 01/09/16 14:48, Steve Muckle wrote: > On Wed, Aug 31, 2016 at 06:00:02PM +0100, Juri Lelli wrote: > > > Another problem is that we have many semi related knobs; we have the > > > global RT runtime limit knob, but that doesn't affect cpufreq (maybe it > > > sho

[PATCH v5] sched/deadline: remove useless param from setup_new_dl_entity

2016-08-05 Thread Juri Lelli
mutex_setprio() takes care of that already for us. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Steven Rostedt Cc: Luca Abeni Cc: Xunlei Pang Signed-off-by: Juri Lelli --- Changes from v4: - remove dead code checking for boosted status, as never triggered after rt_mutex_setprio() Changes f

Re: [PATCH v4] sched/deadline: remove useless param from setup_new_dl_entity

2016-08-05 Thread Juri Lelli
On 22/07/16 10:58, Xunlei Pang wrote: > On 2016/07/21 at 22:46, Juri Lelli wrote: [...] > > @@ -1734,9 +1724,11 @@ static void switched_to_dl(struct rq *rq, struct > > task_struct *p) > > if (task_on_rq_queued(p)) { > > /* > > * If p

Re: [PATCH v5] sched/deadline: remove useless param from setup_new_dl_entity

2016-08-05 Thread Juri Lelli
On 05/08/16 09:56, Steven Rostedt wrote: > On Fri, 5 Aug 2016 11:09:59 +0100 > Juri Lelli wrote: > > > @@ -1720,19 +1720,28 @@ static void switched_from_dl(struct rq *rq, struct > > task_struct *p) > > */ > > static void switched_to_dl(struct rq *rq, struct

Re: [PATCH v5] sched/deadline: remove useless param from setup_new_dl_entity

2016-08-05 Thread Juri Lelli
On 05/08/16 10:54, Steven Rostedt wrote: > On Fri, 5 Aug 2016 15:34:44 +0100 > Juri Lelli wrote: > > > On 05/08/16 09:56, Steven Rostedt wrote: > > > On Fri, 5 Aug 2016 11:09:59 +0100 > > > Juri Lelli wrote: > > > > > > > @@ -1720,19

[PATCH v6] sched/deadline: remove useless param from setup_new_dl_entity

2016-08-05 Thread Juri Lelli
mutex_setprio() takes care of that already for us. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Steven Rostedt Cc: Luca Abeni Cc: Xunlei Pang Signed-off-by: Juri Lelli Reviewed-by: Steven Rostedt --- Changes from v5: - simply return if task is not enqueued; improves readability and reduces

Re: [PATCH V2 4/5] arch_topology: Return 0 or -ve errors from topology_parse_cpu_capacity()

2017-06-22 Thread Juri Lelli
Hi, On 21/06/17 10:16, Viresh Kumar wrote: > Use the standard way of returning errors instead of returning 0(failure) > OR 1(success) and making it hard to read. > > Signed-off-by: Viresh Kumar > --- > arch/arm/kernel/topology.c | 2 +- > drivers/base/arch_topology.c | 8 > 2 files c

Re: [PATCH V2 1/5] arch_topology: Get rid of "cap_parsing_done"

2017-06-22 Thread Juri Lelli
Hi, On 21/06/17 10:16, Viresh Kumar wrote: > We can reuse "cap_parsing_failed" instead of keeping an additional > variable here. > > Signed-off-by: Viresh Kumar > --- > drivers/base/arch_topology.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/base/arch_

Re: [PATCH v4 8/8] arm,arm64,drivers: add a prefix to drivers arch_topology interfaces

2017-05-26 Thread Juri Lelli
Hi, On 25/05/17 15:18, Greg KH wrote: > On Thu, Apr 20, 2017 at 03:43:16PM +0100, Juri Lelli wrote: > > Now that some functions that deal with arch topology information live > > under drivers, there is a clash of naming that might create confusion. > > > > Tidy thin

Re: [PATCH v4 8/8] arm,arm64,drivers: add a prefix to drivers arch_topology interfaces

2017-05-30 Thread Juri Lelli
On 29/05/17 12:46, Dietmar Eggemann wrote: > On 05/29/2017 11:58 AM, Greg KH wrote: > > On Mon, May 29, 2017 at 11:20:24AM +0200, Dietmar Eggemann wrote: > > > Hi Greg, > > > > > > On 05/26/2017 08:36 PM, Greg KH wrote: > > > > On Fri, Ma

Re: [PATCH] sched/deadline: fix dl bandwidth of root domain overflow after dl task dead

2015-09-01 Thread Juri Lelli
Hi, On 30/08/15 12:25, Wanpeng Li wrote: > On 8/10/15 10:10 PM, Juri Lelli wrote: >> On 06/08/15 09:39, Wanpeng Li wrote: >>> Hi Juri, >>> >> Hi, >> >>> 2015-05-06 16:14 GMT+08:00 Juri Lelli >> <mailto:juri.le...@arm.com>>: >>&g

Re: [PATCH] Fix migration of SCHED_DEADLINE tasks

2015-10-15 Thread Juri Lelli
Hi Luca, On 15/10/15 12:09, Luca Abeni wrote: > Commit 9d5142624256 ("sched/deadline: Reduce rq lock contention by > eliminating locking of non-feasible target") broke select_task_rq_dl() > and find_lock_later_rq(), because it introduced a comparison between > the local task's deadline and dl.earl

Re: [PATCH] Fix migration of SCHED_DEADLINE tasks

2015-10-16 Thread Juri Lelli
Hi, On 16/10/15 09:03, Luca Abeni wrote: > On 10/15/2015 06:40 PM, Juri Lelli wrote: >> On 15/10/15 12:09, Luca Abeni wrote: >>> Commit 9d5142624256 ("sched/deadline: Reduce rq lock contention by >>> eliminating locking of non-feasible

[PATCH 3/4] locking/rtmutex: fix open coded check in rt_mutex_waiter_less()

2015-09-02 Thread Juri Lelli
rt_mutex_waiter_less() check of tasks deadlines is open coded. Since this is subject to wraparound issues, make it use the correct helper. Cc: Ingo Molnar Cc: Peter Zijlstra Reported-by: Luca Abeni Signed-off-by: Juri Lelli --- kernel/locking/rtmutex.c | 3 ++- 1 file changed, 2 insertions

[PATCH 1/4] sched/{cpuset,core}: restore complete root_domain status across hotplug

2015-09-02 Thread Juri Lelli
Cc: Peter Zijlstra Cc: Li Zefan Cc: cgro...@vger.kernel.org Reported-by: Wanpeng Li Signed-off-by: Juri Lelli --- include/linux/sched.h | 2 ++ kernel/cpuset.c | 41 + kernel/sched/core.c | 17 + 3 files changed, 60 insertions

[PATCH 4/4] sched/rt: make (do_)balance_runtime() return void

2015-09-02 Thread Juri Lelli
The return value of (do_)balance_runtime() is not consumed by anybody. Make them return void. Cc: Ingo Molnar Cc: Peter Zijlstra Signed-off-by: Juri Lelli --- kernel/sched/rt.c | 22 ++ 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/kernel/sched/rt.c b

[PATCH 2/4] sched/deadline: unify dl_time_before usage

2015-09-02 Thread Juri Lelli
Move dl_time_before static definition in include/linux/sched/deadline.h so that it can be used by different parties without being re-defined. Cc: Ingo Molnar Cc: Peter Zijlstra Reported-by: Luca Abeni Signed-off-by: Juri Lelli --- include/linux/sched/deadline.h | 5 + kernel/sched

[PATCH 0/4] sched fixes and clean-ups

2015-09-02 Thread Juri Lelli
of admission control decisions (admitted bandwidth). This patch is invasive, but it seems to fix the problem (and I couldn't find cleaner fixes :-/). Please give special attention to it :-). Thanks! Best, - Juri Juri Lelli (4): sched/{cpuset,core}: restore complete root_domain status a

Re: [RFCv5 PATCH 38/46] sched: scheduler-driven cpu frequency selection

2015-09-04 Thread Juri Lelli
On 15/08/15 13:35, Peter Zijlstra wrote: > On Tue, Jul 07, 2015 at 07:24:21PM +0100, Morten Rasmussen wrote: >> diff --git a/kernel/sched/cpufreq_sched.c b/kernel/sched/cpufreq_sched.c >> new file mode 100644 >> index 000..5020f24 >> --- /dev/null >> +++ b/kernel/sched/cpufreq_sched.c >> @@ -0,

Re: [PATCH] sched/deadline: Fix switched_from_dl

2018-08-06 Thread Juri Lelli
On 01/08/18 23:19, Steven Rostedt wrote: > On Wed, 11 Jul 2018 09:29:48 +0200 > Juri Lelli wrote: > > > Mark noticed that syzkaller is able to reliably trigger the following > > > > dl_rq->running_bw > dl_rq->this_bw > > WARNING: CPU:

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-07 Thread Juri Lelli
Hi, Minor comments below. On 06/08/18 17:39, Patrick Bellasi wrote: [...] > + * > + * Task Utilization Attributes > + * === > + * > + * A subset of sched_attr attributes allows to specify the utilization which > + * should be expected by a task. These attributes allows t

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-07 Thread Juri Lelli
On 06/08/18 17:39, Patrick Bellasi wrote: [...] > @@ -4218,6 +4245,13 @@ static int __sched_setscheduler(struct task_struct *p, > return retval; > } > > + /* Configure utilization clamps for the task */ > + if (attr->sched_flags & SCHED_FLAG_UTIL_CLAMP) { > +

Re: [PATCH v3 06/14] sched/cpufreq: uclamp: add utilization clamping for RT tasks

2018-08-07 Thread Juri Lelli
Hi, On 06/08/18 17:39, Patrick Bellasi wrote: [...] > @@ -223,13 +224,25 @@ static unsigned long sugov_get_util(struct sugov_cpu > *sg_cpu) >* utilization (PELT windows are synchronized) we can directly add them >* to obtain the CPU's actual utilization. >* > - * CF

Re: [PATCH v6 04/11] cpufreq/schedutil: use rt utilization tracking

2018-06-22 Thread Juri Lelli
On 21/06/18 20:45, Peter Zijlstra wrote: > On Fri, Jun 08, 2018 at 02:09:47PM +0200, Vincent Guittot wrote: > > static unsigned long sugov_aggregate_util(struct sugov_cpu *sg_cpu) > > { > > struct rq *rq = cpu_rq(sg_cpu->cpu); > > + unsigned long util; > > > > if (rq->rt.rt_nr_running

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-09 Thread Juri Lelli
On 09/08/18 10:14, Patrick Bellasi wrote: > On 07-Aug 14:35, Juri Lelli wrote: > > On 06/08/18 17:39, Patrick Bellasi wrote: > > > > [...] > > > > > @@ -4218,6 +4245,13 @@ static int __sched_setscheduler(struct task_struct > > &

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-10 Thread Juri Lelli
On 09/08/18 16:23, Patrick Bellasi wrote: > On 09-Aug 11:50, Juri Lelli wrote: > > On 09/08/18 10:14, Patrick Bellasi wrote: > > > On 07-Aug 14:35, Juri Lelli wrote: > > > > On 06/08/18 17:39, Patrick Bellasi wrote: > > [...] > > > > 1) make

Re: [PATCH v3 06/14] sched/cpufreq: uclamp: add utilization clamping for RT tasks

2018-08-13 Thread Juri Lelli
On 13/08/18 11:12, Patrick Bellasi wrote: > Hi Vincent! > > On 09-Aug 18:03, Vincent Guittot wrote: > > > On 07-Aug 15:26, Juri Lelli wrote: > > [...] > > > > > > + util_cfs = cpu_util_cfs(rq); > > > > > + util_rt = cpu_uti

Re: [PATCH v3 01/14] sched/core: uclamp: extend sched_setattr to support utilization clamping

2018-08-13 Thread Juri Lelli
On 13/08/18 13:14, Patrick Bellasi wrote: > On 07-Aug 11:59, Juri Lelli wrote: > > Hi, > > > > Minor comments below. > > > > On 06/08/18 17:39, Patrick Bellasi wrote: > > > > [...] > > > > > + * > > > + * Task Utilization A

Re: [PATCH] sched/fair: vruntime should normalize when switching from fair

2018-08-23 Thread Juri Lelli
On 23/08/18 18:52, Dietmar Eggemann wrote: > Hi, > > On 08/21/2018 01:54 AM, Miguel de Dios wrote: > > On 08/17/2018 11:27 AM, Steve Muckle wrote: > > > From: John Dias > > > > > > When rt_mutex_setprio changes a task's scheduling class to RT, > > > we're seeing cases where the task's vruntime i

Re: [PATCH V3] sched/deadline: Update rq_clock of later_rq when pushing a task

2018-07-20 Thread Juri Lelli
On 20/07/18 14:48, Peter Zijlstra wrote: > On Fri, Jul 20, 2018 at 02:46:15PM +0200, Peter Zijlstra wrote: > > On Fri, Jul 20, 2018 at 11:16:30AM +0200, Daniel Bristot de Oliveira wrote: > > > diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c > > > index fbfc3f1d368a..8b50eea4b607 1006

Re: [PATCH V3] sched/deadline: Update rq_clock of later_rq when pushing a task

2018-07-20 Thread Juri Lelli
On 20/07/18 17:36, Daniel Bristot de Oliveira wrote: > On 07/20/2018 02:53 PM, Juri Lelli wrote: > > On 20/07/18 14:48, Peter Zijlstra wrote: > >> On Fri, Jul 20, 2018 at 02:46:15PM +0200, Peter Zijlstra wrote: > >>> On Fri, Jul 20, 2018 at 11:16:30AM +0200, Daniel Br

Re: [lkp-robot] [sched/deadline] e0367b1267: WARNING:at_kernel/sched/sched.h:#assert_clock_updated

2018-01-25 Thread Juri Lelli
Hi, On 25/01/18 14:28, kernel test robot wrote: > > FYI, we noticed the following commit (built with gcc-7): > > commit: e0367b12674bf4420870cd0237e3ebafb2ec9593 ("sched/deadline: Move CPU > frequency selection triggering points") > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.g

Re: [LTP] [lkp-robot] [sched/deadline] e0367b1267: WARNING:at_kernel/sched/sched.h:#assert_clock_updated

2018-01-25 Thread Juri Lelli
On 25/01/18 13:24, Cyril Hrubis wrote: > Hi! > > Hummm, wondering how LTP sched tests could trigger this, since a quick > > grep into ltp didn't show DEADLINE usage. > > See kernel/syscalls/sched_setattr/sched_setattr01.c Right, saw that. I was still thinking though why the report seemed to point

Re: [PATCH v4 0/8] Fix issues and factorize arm/arm64 capacity information code

2017-05-11 Thread Juri Lelli
Hi Greg, I'm not sure what your plans are with this set. Are we targeting 4.12? IMHO, if possible, it would be good to have this refactoring in now, so that we can base further development on it for the next cycle. Thanks, - Juri On 20/04/17 15:43, Juri Lelli wrote: > Hi, > >

Re: [PATCH v4 0/8] Fix issues and factorize arm/arm64 capacity information code

2017-05-11 Thread Juri Lelli
On 11/05/17 10:59, Greg KH wrote: > On Thu, May 11, 2017 at 09:48:30AM +0100, Juri Lelli wrote: > > Hi Greg, > > > > I'm not sure what your plans are with this set. Are we targeting 4.12? > > > > IMHO, if possible, it would be good to have this refactoring i

Re: [PATCH] sched/deadline: Zero out positive runtime after throttling constrained tasks

2017-05-11 Thread Juri Lelli
Hi, On 10/05/17 21:03, Xunlei Pang wrote: > When a contrained task is throttled by dl_check_constrained_dl(), > it may carry the remaining positive runtime, as a result when > dl_task_timer() fires and calls replenish_dl_entity(), it will > not be replenished correctly due to the positive dl_se->r

Re: [RFC][PATCH] sched/deadline: Remove if statement before clearing throttle and yielded

2017-05-11 Thread Juri Lelli
Hi, On 10/05/17 09:50, Steven Rostedt wrote: > [ > This is an RFC as I didn't run any benchmarks. It just seemed a bit > weird to me that we would add such a check instead of just clearing > these variables out regardless. > ] > > The function replenish_dl_entity() clears dl_throttled and

Re: [PATCH v4 1/5] sched/deadline: Refer to cpudl.elements atomically

2017-05-15 Thread Juri Lelli
Hi, On 12/05/17 10:25, Steven Rostedt wrote: > On Fri, 12 May 2017 14:48:45 +0900 > Byungchul Park wrote: > > > cpudl.elements is an instance that should be protected with a spin lock. > > Without it, the code would be insane. > > And how much contention will this add? Spin locks in the schedul

Re: [PATCH] Documentation/scheduler/sched-rt-group: Update SCHED DEADLINE references

2018-02-01 Thread Juri Lelli
off-by: Daniel Bristot de Oliveira > Cc: Jonathan Corbet > Cc: Juri Lelli > Cc: Luca Abeni > Cc: Tommaso Cucinotta > Cc: Claudio Scordino > Cc: Peter Zijlstra > Cc: linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > > --- > Documentation/scheduler/sch

Re: [BUG] schedutil governor produces regular max freq spikes because of lockup detector watchdog threads

2018-01-10 Thread Juri Lelli
On 09/01/18 16:50, Rafael J. Wysocki wrote: > On Tue, Jan 9, 2018 at 3:43 PM, Leonard Crestez > wrote: [...] > > Every 4 seconds (really it's /proc/sys/kernel/watchdog_thresh * 2 / 5 > > and watchdog_thresh defaults to 10). There is a per-cpu hrtimer which > > wakes the per-cpu thread in order

Re: [BUG] schedutil governor produces regular max freq spikes because of lockup detector watchdog threads

2018-01-10 Thread Juri Lelli
On 10/01/18 13:35, Rafael J. Wysocki wrote: > On Wed, Jan 10, 2018 at 11:54 AM, Juri Lelli wrote: > > On 09/01/18 16:50, Rafael J. Wysocki wrote: > >> On Tue, Jan 9, 2018 at 3:43 PM, Leonard Crestez > >> wrote: > > > > [...] > > > &g

Re: [QUESTION] Mainline support for B43_PHY_AC wifi cards

2018-03-25 Thread Juri Lelli
On 24/03/18 00:01, Rafał Miłecki wrote: > On 23 March 2018 at 15:09, Juri Lelli wrote: > > On 23/03/18 14:43, Rafał Miłecki wrote: > >> Hi, > >> > >> On 23 March 2018 at 10:47, Juri Lelli wrote: > >> > I've got a Dell XPS 13 9343/0TM99H (BI

Re: [PATCH v6 2/2] cpuset: Add cpuset.sched_load_balance to v2

2018-03-26 Thread Juri Lelli
On 23/03/18 14:44, Waiman Long wrote: > On 03/23/2018 03:59 AM, Juri Lelli wrote: [...] > > OK, thanks for confirming. Can you tell again however why do you think > > we need to remove sched_load_balance from root level? Won't we end up > > having tasks put on isolated

Re: [PATCH v6 2/2] cpuset: Add cpuset.sched_load_balance to v2

2018-03-26 Thread Juri Lelli
On 26/03/18 16:28, Waiman Long wrote: > On 03/26/2018 08:47 AM, Juri Lelli wrote: > > On 23/03/18 14:44, Waiman Long wrote: > >> On 03/23/2018 03:59 AM, Juri Lelli wrote: > > [...] > > > >>> OK, thanks for confirming. Can you tell again howeve

Re: [PATCH V2 6/7] thermal/drivers/cpu_cooling: Introduce the cpu idle cooling driver

2018-03-27 Thread Juri Lelli
Hi Daniel, On 27/03/18 12:26, Daniel Lezcano wrote: > On 27/03/2018 04:03, Leo Yan wrote: > > Hi Daniel, > > > > On Wed, Feb 21, 2018 at 04:29:27PM +0100, Daniel Lezcano wrote: > >> The cpu idle cooling driver performs synchronized idle injection across all > >> cpus belonging to the same cluster

  1   2   3   4   5   6   7   8   9   10   >