* sched: fix: initialization of sched_domain_topology for NUMA
@ 2014-05-12 21:16 ` Vincent Guittot
0 siblings, 0 replies; 12+ messages in thread
From: Vincent Guittot @ 2014-05-12 21:16 UTC (permalink / raw)
To: mingo, peterz, jet.chen
Cc: fengguang.wu, linux-ia64, linux-s390, linux-kernel, Vincent Guittot
sched_domain_topology table is a null terminated array.
Add 1 row in the allocation size that will be used as the last row of the
table.
Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
link: https://lkml.org/lkml/2014/5/12/130
---
Hi Ingo and Peter,
This patch fixes the problem that has been reported by Jet Chen
Regards,
Vincent
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4ea7b3f..205fa17 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6234,7 +6234,7 @@ static void sched_init_numa(void)
/* Compute default topology size */
for (i = 0; sched_domain_topology[i].mask; i++);
- tl = kzalloc((i + level) *
+ tl = kzalloc((i + level + 1) *
sizeof(struct sched_domain_topology_level), GFP_KERNEL);
if (!tl)
return;
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* sched: fix: initialization of sched_domain_topology for NUMA
@ 2014-05-12 21:16 ` Vincent Guittot
0 siblings, 0 replies; 12+ messages in thread
From: Vincent Guittot @ 2014-05-12 21:16 UTC (permalink / raw)
To: mingo, peterz, jet.chen
Cc: fengguang.wu, linux-ia64, linux-s390, linux-kernel, Vincent Guittot
sched_domain_topology table is a null terminated array.
Add 1 row in the allocation size that will be used as the last row of the
table.
Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
link: https://lkml.org/lkml/2014/5/12/130
---
Hi Ingo and Peter,
This patch fixes the problem that has been reported by Jet Chen
Regards,
Vincent
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4ea7b3f..205fa17 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6234,7 +6234,7 @@ static void sched_init_numa(void)
/* Compute default topology size */
for (i = 0; sched_domain_topology[i].mask; i++);
- tl = kzalloc((i + level) *
+ tl = kzalloc((i + level + 1) *
sizeof(struct sched_domain_topology_level), GFP_KERNEL);
if (!tl)
return;
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: sched: fix: initialization of sched_domain_topology for NUMA
2014-05-12 21:16 ` Vincent Guittot
@ 2014-05-13 8:26 ` Peter Zijlstra
-1 siblings, 0 replies; 12+ messages in thread
From: Peter Zijlstra @ 2014-05-13 8:26 UTC (permalink / raw)
To: Vincent Guittot
Cc: mingo, jet.chen, fengguang.wu, linux-ia64, linux-s390, linux-kernel
On Mon, May 12, 2014 at 11:16:16PM +0200, Vincent Guittot wrote:
> sched_domain_topology table is a null terminated array.
> Add 1 row in the allocation size that will be used as the last row of the
> table.
>
> Reported-by: Jet Chen <jet.chen@intel.com>
> Tested-by: Jet Chen <jet.chen@intel.com>
> Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
> link: https://lkml.org/lkml/2014/5/12/130
>
> ---
>
> Hi Ingo and Peter,
>
> This patch fixes the problem that has been reported by Jet Chen
>
I have no mail from Jet Chen on any recent issues.
Also, please describe both the problem and the fix in the Changelog
without need to refer to secondary sources.
As it stands I've no clue wth this is about.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: sched: fix: initialization of sched_domain_topology for NUMA
@ 2014-05-13 8:26 ` Peter Zijlstra
0 siblings, 0 replies; 12+ messages in thread
From: Peter Zijlstra @ 2014-05-13 8:26 UTC (permalink / raw)
To: Vincent Guittot
Cc: mingo, jet.chen, fengguang.wu, linux-ia64, linux-s390, linux-kernel
On Mon, May 12, 2014 at 11:16:16PM +0200, Vincent Guittot wrote:
> sched_domain_topology table is a null terminated array.
> Add 1 row in the allocation size that will be used as the last row of the
> table.
>
> Reported-by: Jet Chen <jet.chen@intel.com>
> Tested-by: Jet Chen <jet.chen@intel.com>
> Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
> link: https://lkml.org/lkml/2014/5/12/130
>
> ---
>
> Hi Ingo and Peter,
>
> This patch fixes the problem that has been reported by Jet Chen
>
I have no mail from Jet Chen on any recent issues.
Also, please describe both the problem and the fix in the Changelog
without need to refer to secondary sources.
As it stands I've no clue wth this is about.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: sched: fix: initialization of sched_domain_topology for NUMA
2014-05-13 8:26 ` Peter Zijlstra
@ 2014-05-13 8:33 ` Vincent Guittot
-1 siblings, 0 replies; 12+ messages in thread
From: Vincent Guittot @ 2014-05-13 8:33 UTC (permalink / raw)
To: Peter Zijlstra
Cc: Ingo Molnar, jet.chen, fengguang.wu, linux-ia64, linux-s390,
linux-kernel
On 13 May 2014 10:26, Peter Zijlstra <peterz@infradead.org> wrote:
> On Mon, May 12, 2014 at 11:16:16PM +0200, Vincent Guittot wrote:
>> sched_domain_topology table is a null terminated array.
>> Add 1 row in the allocation size that will be used as the last row of the
>> table.
>>
>> Reported-by: Jet Chen <jet.chen@intel.com>
>> Tested-by: Jet Chen <jet.chen@intel.com>
>> Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
>> link: https://lkml.org/lkml/2014/5/12/130
>>
>> ---
>>
>> Hi Ingo and Peter,
>>
>> This patch fixes the problem that has been reported by Jet Chen
>>
>
> I have no mail from Jet Chen on any recent issues.
Hi Peter,
I have just noticed that you were not in the list of the original message
>
> Also, please describe both the problem and the fix in the Changelog
> without need to refer to secondary sources.
Ok, i'm going to update the commit message with more information
>
> As it stands I've no clue wth this is about.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: sched: fix: initialization of sched_domain_topology for NUMA
@ 2014-05-13 8:33 ` Vincent Guittot
0 siblings, 0 replies; 12+ messages in thread
From: Vincent Guittot @ 2014-05-13 8:33 UTC (permalink / raw)
To: Peter Zijlstra
Cc: Ingo Molnar, jet.chen, fengguang.wu, linux-ia64, linux-s390,
linux-kernel
On 13 May 2014 10:26, Peter Zijlstra <peterz@infradead.org> wrote:
> On Mon, May 12, 2014 at 11:16:16PM +0200, Vincent Guittot wrote:
>> sched_domain_topology table is a null terminated array.
>> Add 1 row in the allocation size that will be used as the last row of the
>> table.
>>
>> Reported-by: Jet Chen <jet.chen@intel.com>
>> Tested-by: Jet Chen <jet.chen@intel.com>
>> Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
>> link: https://lkml.org/lkml/2014/5/12/130
>>
>> ---
>>
>> Hi Ingo and Peter,
>>
>> This patch fixes the problem that has been reported by Jet Chen
>>
>
> I have no mail from Jet Chen on any recent issues.
Hi Peter,
I have just noticed that you were not in the list of the original message
>
> Also, please describe both the problem and the fix in the Changelog
> without need to refer to secondary sources.
Ok, i'm going to update the commit message with more information
>
> As it stands I've no clue wth this is about.
^ permalink raw reply [flat|nested] 12+ messages in thread
* sched: fix: initialization of sched_domain_topology for NUMA
2014-05-13 8:26 ` Peter Zijlstra
@ 2014-05-13 9:11 ` Vincent Guittot
-1 siblings, 0 replies; 12+ messages in thread
From: Vincent Guittot @ 2014-05-13 9:11 UTC (permalink / raw)
To: peterz, mingo
Cc: jet.chen, fengguang.wu, linux-ia64, linux-s390, linux-kernel,
Vincent Guittot
Jet Chen has reported a kernel panics when booting qemu-system-x86_64 with
kvm64 cpu. A panic occured while building the sched_domain.
In sched_init_numa, we create a new topology table in which both default
levels and numa levels are copied. The last row of the table must have a null
pointer in the mask field.
The current implementation doesn't add this last row in the computation of the
table size. So we add 1 row in the allocation size that will be used as the
last row of the table. The kzalloc will ensure that the mask field is NULL.
Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
link: https://lkml.org/lkml/2014/5/12/130
---
Hi Peter,
Does this commit message contain enough information ?
Regards,
Vincent
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4ea7b3f..205fa17 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6234,7 +6234,7 @@ static void sched_init_numa(void)
/* Compute default topology size */
for (i = 0; sched_domain_topology[i].mask; i++);
- tl = kzalloc((i + level) *
+ tl = kzalloc((i + level + 1) *
sizeof(struct sched_domain_topology_level), GFP_KERNEL);
if (!tl)
return;
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* sched: fix: initialization of sched_domain_topology for NUMA
@ 2014-05-13 9:11 ` Vincent Guittot
0 siblings, 0 replies; 12+ messages in thread
From: Vincent Guittot @ 2014-05-13 9:11 UTC (permalink / raw)
To: peterz, mingo
Cc: jet.chen, fengguang.wu, linux-ia64, linux-s390, linux-kernel,
Vincent Guittot
Jet Chen has reported a kernel panics when booting qemu-system-x86_64 with
kvm64 cpu. A panic occured while building the sched_domain.
In sched_init_numa, we create a new topology table in which both default
levels and numa levels are copied. The last row of the table must have a null
pointer in the mask field.
The current implementation doesn't add this last row in the computation of the
table size. So we add 1 row in the allocation size that will be used as the
last row of the table. The kzalloc will ensure that the mask field is NULL.
Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
link: https://lkml.org/lkml/2014/5/12/130
---
Hi Peter,
Does this commit message contain enough information ?
Regards,
Vincent
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 4ea7b3f..205fa17 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6234,7 +6234,7 @@ static void sched_init_numa(void)
/* Compute default topology size */
for (i = 0; sched_domain_topology[i].mask; i++);
- tl = kzalloc((i + level) *
+ tl = kzalloc((i + level + 1) *
sizeof(struct sched_domain_topology_level), GFP_KERNEL);
if (!tl)
return;
--
1.9.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: sched: fix: initialization of sched_domain_topology for NUMA
2014-05-13 9:11 ` Vincent Guittot
@ 2014-05-13 10:15 ` Peter Zijlstra
-1 siblings, 0 replies; 12+ messages in thread
From: Peter Zijlstra @ 2014-05-13 10:15 UTC (permalink / raw)
To: Vincent Guittot
Cc: mingo, jet.chen, fengguang.wu, linux-ia64, linux-s390, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 949 bytes --]
On Tue, May 13, 2014 at 11:11:01AM +0200, Vincent Guittot wrote:
> Jet Chen has reported a kernel panics when booting qemu-system-x86_64 with
> kvm64 cpu. A panic occured while building the sched_domain.
>
> In sched_init_numa, we create a new topology table in which both default
> levels and numa levels are copied. The last row of the table must have a null
> pointer in the mask field.
>
> The current implementation doesn't add this last row in the computation of the
> table size. So we add 1 row in the allocation size that will be used as the
> last row of the table. The kzalloc will ensure that the mask field is NULL.
>
> Reported-by: Jet Chen <jet.chen@intel.com>
> Tested-by: Jet Chen <jet.chen@intel.com>
> Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
> link: https://lkml.org/lkml/2014/5/12/130
>
> ---
>
> Hi Peter,
>
> Does this commit message contain enough information ?
Yes, thanks!
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: sched: fix: initialization of sched_domain_topology for NUMA
@ 2014-05-13 10:15 ` Peter Zijlstra
0 siblings, 0 replies; 12+ messages in thread
From: Peter Zijlstra @ 2014-05-13 10:15 UTC (permalink / raw)
To: Vincent Guittot
Cc: mingo, jet.chen, fengguang.wu, linux-ia64, linux-s390, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 949 bytes --]
On Tue, May 13, 2014 at 11:11:01AM +0200, Vincent Guittot wrote:
> Jet Chen has reported a kernel panics when booting qemu-system-x86_64 with
> kvm64 cpu. A panic occured while building the sched_domain.
>
> In sched_init_numa, we create a new topology table in which both default
> levels and numa levels are copied. The last row of the table must have a null
> pointer in the mask field.
>
> The current implementation doesn't add this last row in the computation of the
> table size. So we add 1 row in the allocation size that will be used as the
> last row of the table. The kzalloc will ensure that the mask field is NULL.
>
> Reported-by: Jet Chen <jet.chen@intel.com>
> Tested-by: Jet Chen <jet.chen@intel.com>
> Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
> link: https://lkml.org/lkml/2014/5/12/130
>
> ---
>
> Hi Peter,
>
> Does this commit message contain enough information ?
Yes, thanks!
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* [tip:sched/core] sched: Fix initialization of sched_domain_topology for NUMA
2014-05-13 9:11 ` Vincent Guittot
(?)
(?)
@ 2014-05-19 13:09 ` tip-bot for Vincent Guittot
-1 siblings, 0 replies; 12+ messages in thread
From: tip-bot for Vincent Guittot @ 2014-05-19 13:09 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, jet.chen, peterz, vincent.guittot, tglx
Commit-ID: a925d012722620476cd63593e39628513a4c174c
Gitweb: http://git.kernel.org/tip/a925d012722620476cd63593e39628513a4c174c
Author: Vincent Guittot <vincent.guittot@linaro.org>
AuthorDate: Tue, 13 May 2014 11:11:01 +0200
Committer: Thomas Gleixner <tglx@linutronix.de>
CommitDate: Mon, 19 May 2014 22:02:41 +0900
sched: Fix initialization of sched_domain_topology for NUMA
Jet Chen has reported a kernel panics when booting qemu-system-x86_64 with
kvm64 cpu. A panic occured while building the sched_domain.
In sched_init_numa, we create a new topology table in which both default
levels and numa levels are copied. The last row of the table must have a null
pointer in the mask field.
The current implementation doesn't add this last row in the computation of the
table size. So we add 1 row in the allocation size that will be used as the
last row of the table. The kzalloc will ensure that the mask field is NULL.
Cc: fengguang.wu@intel.com
Cc: mingo@kernel.org
Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1399972261-25693-1-git-send-email-vincent.guittot@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 29c542e..ca76cc6 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6231,7 +6231,7 @@ static void sched_init_numa(void)
/* Compute default topology size */
for (i = 0; sched_domain_topology[i].mask; i++);
- tl = kzalloc((i + level) *
+ tl = kzalloc((i + level + 1) *
sizeof(struct sched_domain_topology_level), GFP_KERNEL);
if (!tl)
return;
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [tip:sched/core] sched/numa: Fix initialization of sched_domain_topology for NUMA
2014-05-13 9:11 ` Vincent Guittot
` (2 preceding siblings ...)
(?)
@ 2014-05-22 12:27 ` tip-bot for Vincent Guittot
-1 siblings, 0 replies; 12+ messages in thread
From: tip-bot for Vincent Guittot @ 2014-05-22 12:27 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, hpa, mingo, jet.chen, peterz, vincent.guittot, tglx
Commit-ID: c515db8cd311ef77b2dc7cbd6b695022655bb0f3
Gitweb: http://git.kernel.org/tip/c515db8cd311ef77b2dc7cbd6b695022655bb0f3
Author: Vincent Guittot <vincent.guittot@linaro.org>
AuthorDate: Tue, 13 May 2014 11:11:01 +0200
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Thu, 22 May 2014 11:16:29 +0200
sched/numa: Fix initialization of sched_domain_topology for NUMA
Jet Chen has reported a kernel panics when booting qemu-system-x86_64 with
kvm64 cpu. A panic occured while building the sched_domain.
In sched_init_numa, we create a new topology table in which both default
levels and numa levels are copied. The last row of the table must have a null
pointer in the mask field.
The current implementation doesn't add this last row in the computation of the
table size. So we add 1 row in the allocation size that will be used as the
last row of the table. The kzalloc will ensure that the mask field is NULL.
Reported-by: Jet Chen <jet.chen@intel.com>
Tested-by: Jet Chen <jet.chen@intel.com>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: fengguang.wu@intel.com
Link: http://lkml.kernel.org/r/1399972261-25693-1-git-send-email-vincent.guittot@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index a78c5b6..45d077e 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -6231,7 +6231,7 @@ static void sched_init_numa(void)
/* Compute default topology size */
for (i = 0; sched_domain_topology[i].mask; i++);
- tl = kzalloc((i + level) *
+ tl = kzalloc((i + level + 1) *
sizeof(struct sched_domain_topology_level), GFP_KERNEL);
if (!tl)
return;
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2014-05-22 12:28 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-12 21:16 sched: fix: initialization of sched_domain_topology for NUMA Vincent Guittot
2014-05-12 21:16 ` Vincent Guittot
2014-05-13 8:26 ` Peter Zijlstra
2014-05-13 8:26 ` Peter Zijlstra
2014-05-13 8:33 ` Vincent Guittot
2014-05-13 8:33 ` Vincent Guittot
2014-05-13 9:11 ` Vincent Guittot
2014-05-13 9:11 ` Vincent Guittot
2014-05-13 10:15 ` Peter Zijlstra
2014-05-13 10:15 ` Peter Zijlstra
2014-05-19 13:09 ` [tip:sched/core] sched: Fix " tip-bot for Vincent Guittot
2014-05-22 12:27 ` [tip:sched/core] sched/numa: " tip-bot for Vincent Guittot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.