[PATCHv2 3/3] powerpc/smp: Use existing L2 cache_map cpumask to find L3 cache siblings

2021-07-28 Thread Parth Shah
s, but fill the mask using same property "2" array. Signed-off-by: Parth Shah --- arch/powerpc/include/asm/smp.h | 3 ++ arch/powerpc/kernel/cacheinfo.c | 3 ++ arch/powerpc/kernel/smp.c | 66 ++--- 3 files changed, 51 insertions(+), 21 deletions(-) dif

[PATCHv2 2/3] powerpc/cacheinfo: Remove the redundant get_shared_cpu_map()

2021-07-28 Thread Parth Shah
From: "Gautham R. Shenoy" The helper function get_shared_cpu_map() was added in 'commit 500fe5f550ec ("powerpc/cacheinfo: Report the correct shared_cpu_map on big-cores")' and subsequently expanded upon in 'commit 0be47634db0b ("powerpc/cacheinfo: Print correct cache-sibling map/list for L2 ca

[PATCHv2 1/3] powerpc/cacheinfo: Lookup cache by dt node and thread-group id

2021-07-28 Thread Parth Shah
: Remove "static" keyword for the definition of "thread_group_l1_cache_map" and "thread_group_l2_cache_map" to get rid of the compile error.] Signed-off-by: Parth Shah --- arch/powerpc/include/asm/smp.h | 3 ++ arch/powerpc/kernel/cacheinfo.c | 80 -

[PATCHv2 0/3] Subject: [PATCHv2 0/3] Make cache-object aware of L3 siblings by parsing "ibm, thread-groups" property

2021-07-28 Thread Parth Shah
send-email-...@linux.vnet.ibm.co - Patch 3: Use existing L2 cache_map to detect L3 cache siblings Gautham R. Shenoy (2): powerpc/cacheinfo: Lookup cache by dt node and thread-group id powerpc/cacheinfo: Remove the redundant get_shared_cpu_map() Parth Shah (1): powerpc/smp: Use existin

[RFC 2/2] kernel/idle: Update and use idle-hint in VPA region

2021-07-12 Thread Parth Shah
hypervsior or not. Signed-off-by: Parth Shah --- arch/powerpc/include/asm/paravirt.h | 12 ++-- kernel/sched/idle.c | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/paravirt.h b/arch/powerpc/include/asm/paravirt.h index

[RFC 1/2] powerpc/book3s_hv: Add new idle-hint attribute in VPA region

2021-07-12 Thread Parth Shah
In lppaca region, add a new attribute idle_hint which can allow guest scheduler for better cpu selection. Hypervisor can update idle_hint attribute based on the prediction that if vCPU needs to be scheduled then can it be scheduled instantly or not. Signed-off-by: Parth Shah --- arch/powerpc

[RFC 0/2] Paravirtualize idle CPU wakeup optimization

2021-07-12 Thread Parth Shah
d methodlogy does not affect much. Parth Shah (2): powerpc/book3s_hv: Add new idle-hint attribute in VPA region kernel/idle: Update and use idle-hint in VPA region arch/powerpc/include/asm/idle_hint.h | 28 +++ arch/powerpc/include/asm/lppaca.h| 3 ++- arch/pow

[PATCH 3/3] powerpc/smp: Use existing L2 cache_map cpumask to find L3 cache siblings

2021-06-15 Thread Parth Shah
or L3 and use the L2 cache map itself to find the presence of L3 siblings. Signed-off-by: Parth Shah --- arch/powerpc/include/asm/smp.h | 2 ++ arch/powerpc/kernel/cacheinfo.c | 3 +++ arch/powerpc/kernel/smp.c | 20 +++- 3 files changed, 20 insertions(+), 5 deletions(-

[PATCH 2/3] powerpc/cacheinfo: Remove the redundant get_shared_cpu_map()

2021-06-15 Thread Parth Shah
From: "Gautham R. Shenoy" The helper function get_shared_cpu_map() was added in 'commit 500fe5f550ec ("powerpc/cacheinfo: Report the correct shared_cpu_map on big-cores")' and subsequently expanded upon in 'commit 0be47634db0b ("powerpc/cacheinfo: Print correct cache-sibling map/list for L2 ca

[PATCH 1/3] powerpc/cacheinfo: Lookup cache by dt node and thread-group id

2021-06-15 Thread Parth Shah
: Remove "static" keyword for the definition of "thread_group_l1_cache_map" and "thread_group_l2_cache_map" to get rid of the compile error.] Signed-off-by: Parth Shah --- arch/powerpc/include/asm/smp.h | 3 ++ arch/powerpc/kernel/cacheinfo.c | 80 -

[PATCH 0/3] Make cache-object aware of L3 siblings by parsing "ibm, thread-groups" property

2021-06-15 Thread Parth Shah
vnet.ibm.co - Patch 3: Use existing L2 cache_map to detect L3 cache siblings Gautham R. Shenoy (2): powerpc/cacheinfo: Lookup cache by dt node and thread-group id powerpc/cacheinfo: Remove the redundant get_shared_cpu_map() Parth Shah (1): powerpc/smp: Use existing L2 cache_map cpumask to fi

[RFC 0/2] Define a new apporach to determine if an idle vCPU will be scheduled instantly or not

2021-04-01 Thread Parth Shah
f KVM guest. The results for these tests further confirmed that there is no major regression on the workload performance. Parth Shah (2): KVM:PPC: Add new hcall to provide hint if a vcpu task will be scheduled instantly. sched: Use H_IDLE_HINT hcall to find if a vCPU can be wakeup targe

[RFC 1/2] KVM:PPC: Add new hcall to provide hint if a vcpu task will be scheduled instantly.

2021-04-01 Thread Parth Shah
available_idle or sched_idle then hint guestOS that the given vCPU can be scheduled instantly by the hypervisor. Signed-off-by: Parth Shah --- arch/powerpc/include/asm/hvcall.h | 3 ++- arch/powerpc/kvm/book3s_hv.c | 13 + arch/powerpc/kvm/trace_hv.h | 1 + include/linux

[RFC 2/2] sched: Use H_IDLE_HINT hcall to find if a vCPU can be wakeup target

2021-04-01 Thread Parth Shah
instantly. Signed-off-by: Parth Shah --- arch/powerpc/include/asm/paravirt.h | 21 +++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/paravirt.h b/arch/powerpc/include/asm/paravirt.h index edc08f04aef7..c7dd0368e1a4 100644 --- a/arch

Re: [PATCH v3 1/2] powerpc/vcpu: Assume dedicated processors as non-preempt

2019-12-09 Thread Parth Shah
99.9000th: 82 > min=0, max=9887 min=0, max=121 > > Performance counter stats for 'system wide' (5 runs): > > context-switches43,373 ( +- 0.40% ) 44,597 ( +- 0.55% ) > cpu-migrations 1,211 ( +- 5.04%