Re: [PATCH V2] powerpc/kernel: Add 'ibm,thread-groups' property for CPU allocation
From: Michael Bringmann <hidden>
Date: 2018-01-29 15:03:09
You are correct. I found a problem with multiple cores last week, and I have a new patch in testing. I will resubmit it after more testing. Sorry for the inconvenience. Michael On 01/27/2018 03:52 AM, Michael Ellerman wrote:
Michael Bringmann [off-list ref] writes:quoted
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c index b15bae2..0a49231 100644 --- a/arch/powerpc/kernel/prom.c +++ b/arch/powerpc/kernel/prom.c@@ -303,6 +306,71 @@ static void __init check_cpu_feature_properties(unsigned long node) } } +static void __init early_init_setup_thread_group_mask(unsigned long node, + cpumask_t *thread_group_mask) +{ + const __be32 *thrgrp; + int len, rc = 0; + u32 cc_type = 0, no_split = 0, thr_per_split = 0; + int j, k; + + cpumask_clear(thread_group_mask); + + thrgrp = of_get_flat_dt_prop(node, "ibm,thread-groups", &len); + if (!thrgrp) + return;This breaks booting on all my systems. cheers
-- Michael W. Bringmann Linux Technology Center IBM Corporation Tie-Line 363-5196 External: (512) 286-5196 Cell: (512) 466-0650 mwb@linux.vnet.ibm.com