Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-08-14 Thread Hanjun Guo
On 2013-8-14 19:27, Catalin Marinas wrote: > On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: >> On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: >>> On 27 July 2013 12:42, Hanjun Guo wrote: Power aware scheduling needs the cpu topology information to improve the

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-08-14 Thread Catalin Marinas
On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: > On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: > > On 27 July 2013 12:42, Hanjun Guo wrote: > > > Power aware scheduling needs the cpu topology information to improve the > > > cpu scheduler decision making. > > > >

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-08-14 Thread Catalin Marinas
On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-08-14 Thread Hanjun Guo
On 2013-8-14 19:27, Catalin Marinas wrote: On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-30 Thread Hanjun Guo
On 2013-7-29 21:36, Dave Martin wrote: > On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: >> On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: >>> On 27 July 2013 12:42, Hanjun Guo wrote: Power aware scheduling needs the cpu topology information to improve the

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-30 Thread Hanjun Guo
On 2013-7-29 17:46, Vincent Guittot wrote: > On 27 July 2013 12:42, Hanjun Guo wrote: >> Power aware scheduling needs the cpu topology information to improve the >> cpu scheduler decision making. > > It's not only power aware scheduling. The scheduler already uses > topology and cache sharing

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-30 Thread Hanjun Guo
On 2013-7-29 17:46, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision making. It's not only power aware scheduling. The scheduler already uses topology and

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-30 Thread Hanjun Guo
On 2013-7-29 21:36, Dave Martin wrote: On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Lorenzo Pieralisi
On Mon, Jul 29, 2013 at 02:36:30PM +0100, Dave Martin wrote: > On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: > > On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: > > > On 27 July 2013 12:42, Hanjun Guo wrote: > > > > Power aware scheduling needs the cpu topology

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Dave Martin
On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: > On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: > > On 27 July 2013 12:42, Hanjun Guo wrote: > > > Power aware scheduling needs the cpu topology information to improve the > > > cpu scheduler decision making. > > > >

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Vincent Guittot
On 29 July 2013 11:54, Will Deacon wrote: > On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: >> On 27 July 2013 12:42, Hanjun Guo wrote: >> > Power aware scheduling needs the cpu topology information to improve the >> > cpu scheduler decision making. >> >> It's not only power

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Vincent Guittot
On 29 July 2013 12:15, Sudeep KarkadaNagesha wrote: > On 29/07/13 10:46, Vincent Guittot wrote: >> On 27 July 2013 12:42, Hanjun Guo wrote: >>> Power aware scheduling needs the cpu topology information to improve the >>> cpu scheduler decision making. >> >> It's not only power aware scheduling.

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Sudeep KarkadaNagesha
On 29/07/13 10:46, Vincent Guittot wrote: > On 27 July 2013 12:42, Hanjun Guo wrote: >> Power aware scheduling needs the cpu topology information to improve the >> cpu scheduler decision making. > > It's not only power aware scheduling. The scheduler already uses > topology and cache sharing

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Will Deacon
On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: > On 27 July 2013 12:42, Hanjun Guo wrote: > > Power aware scheduling needs the cpu topology information to improve the > > cpu scheduler decision making. > > It's not only power aware scheduling. The scheduler already uses >

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Vincent Guittot
On 27 July 2013 12:42, Hanjun Guo wrote: > Power aware scheduling needs the cpu topology information to improve the > cpu scheduler decision making. It's not only power aware scheduling. The scheduler already uses topology and cache sharing when CONFIG_SCHED_MC and/or CONFIG_SCHED_SMT are

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Vincent Guittot
On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision making. It's not only power aware scheduling. The scheduler already uses topology and cache sharing when CONFIG_SCHED_MC and/or

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Will Deacon
On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision making. It's not only power aware scheduling. The scheduler

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Sudeep KarkadaNagesha
On 29/07/13 10:46, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision making. It's not only power aware scheduling. The scheduler already uses topology and

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Vincent Guittot
On 29 July 2013 12:15, Sudeep KarkadaNagesha sudeep.karkadanage...@arm.com wrote: On 29/07/13 10:46, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision making.

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Vincent Guittot
On 29 July 2013 11:54, Will Deacon will.dea...@arm.com wrote: On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Dave Martin
On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision

Re: [RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-29 Thread Lorenzo Pieralisi
On Mon, Jul 29, 2013 at 02:36:30PM +0100, Dave Martin wrote: On Mon, Jul 29, 2013 at 10:54:01AM +0100, Will Deacon wrote: On Mon, Jul 29, 2013 at 10:46:06AM +0100, Vincent Guittot wrote: On 27 July 2013 12:42, Hanjun Guo hanjun@linaro.org wrote: Power aware scheduling needs the cpu

[RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-27 Thread Hanjun Guo
Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision making. For ARM64, we can get the topology from the MPIDR register which defines the the affinity of processors. This patch is mainly based on arch/arm/kernel/topology.c written by Vincent Guittot,

[RFC][PATCH 1/2] ARM64: add cpu topology definition

2013-07-27 Thread Hanjun Guo
Power aware scheduling needs the cpu topology information to improve the cpu scheduler decision making. For ARM64, we can get the topology from the MPIDR register which defines the the affinity of processors. This patch is mainly based on arch/arm/kernel/topology.c written by Vincent Guittot,