Re: [PATCH] sched: pull tasks when CPU is about to run SCHED_IDLE tasks

2021-01-11 Thread He Chen
On Wed, Dec 23, 2020 at 12:30:26PM +0100, Vincent Guittot wrote: > On Wed, 23 Dec 2020 at 09:32, wrote: > > > > From: Chen Xiaoguang > > > > Before a CPU switches from running SCHED_NORMAL task to > > SCHED_IDLE task, trying to pull SCHED_NORMAL tasks from other > > Could you explain more in det

[tip:x86/cpufeature] x86/cpuid: Provide get_scattered_cpuid_leaf()

2016-11-16 Thread tip-bot for He Chen
Commit-ID: 47bdf3378d62a627cfb8a54e1180c08d67078b61 Gitweb: http://git.kernel.org/tip/47bdf3378d62a627cfb8a54e1180c08d67078b61 Author: He Chen AuthorDate: Fri, 11 Nov 2016 17:25:35 +0800 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 11:13:09 +0100 x86/cpuid: Provide

[tip:x86/cpufeature] x86/cpuid: Cleanup cpuid_regs definitions

2016-11-16 Thread tip-bot for He Chen
Commit-ID: 47f10a36003eaf493125a5e6687dd1ff775bfd8c Gitweb: http://git.kernel.org/tip/47f10a36003eaf493125a5e6687dd1ff775bfd8c Author: He Chen AuthorDate: Fri, 11 Nov 2016 17:25:34 +0800 Committer: Thomas Gleixner CommitDate: Wed, 16 Nov 2016 11:13:09 +0100 x86/cpuid: Cleanup

Re: [Patch v6.1] x86/kvm: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-14 Thread He Chen
lp improve the system] > > url: > https://github.com/0day-ci/linux/commits/He-Chen/x86-kvm-Add-AVX512_4VNNIW-and-AVX512_4FMAPS-support/20161114-170941 > base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next > config: x86_64-kexec (attached as .config) > compiler

Re: [PATCH v6 3/3] x86/kvm: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-14 Thread He Chen
On Mon, Nov 14, 2016 at 06:58:22AM +0100, Borislav Petkov wrote: > On Mon, Nov 14, 2016 at 09:41:04AM +0800, He Chen wrote: > > Yep, Luwei wrote it and I send it on behalf of him. > > Then it needs to have the following format so that tools can pick up the > proper author:

[Patch v6.1] x86/kvm: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-14 Thread He Chen
for deep learning enhanced word variable precision. AVX512_4FMAPS: Vector instructions for deep learning floating-point single precision. Reviewed-by: Borislav Petkov Signed-off-by: He Chen Signed-off-by: Luwei Kang --- arch/x86/kvm/cpuid.c | 14 +- 1 file changed, 13 insertions(+)

Re: [PATCH v6 3/3] x86/kvm: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-13 Thread He Chen
On Sat, Nov 12, 2016 at 01:53:29PM +0100, Borislav Petkov wrote: > On Fri, Nov 11, 2016 at 05:25:36PM +0800, He Chen wrote: > > Add two new AVX512 subfeatures support for KVM guest. > > > > AVX512_4VNNIW: > > Vector instructions for deep learning enhan

[PATCH v6 1/3] x86/cpuid: Cleanup cpuid_regs definitions

2016-11-11 Thread He Chen
make cpuid_regs more clear and avoid potential name clash. Signed-off-by: He Chen --- arch/x86/events/intel/pt.c | 45 +--- arch/x86/include/asm/processor.h | 11 ++ arch/x86/kernel/cpu/scattered.c | 28 ++--- arch/x86

[PATCH v6 3/3] x86/kvm: Add AVX512_4VNNIW and AVX512_4FMAPS support

2016-11-11 Thread He Chen
-by: He Chen --- arch/x86/kvm/cpuid.c | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c index afa7bbb..ddcdf7c 100644 --- a/arch/x86/kvm/cpuid.c +++ b/arch/x86/kvm/cpuid.c @@ -16,6 +16,7 @@ #include #include #include

[PATCH v6 2/3] x86/cpuid: Add a helper in scattered.c to return cpuid

2016-11-11 Thread He Chen
, and it can be called outside by modules. Reviewed-by: Borislav Petkov Signed-off-by: He Chen --- arch/x86/include/asm/processor.h | 3 +++ arch/x86/kernel/cpu/scattered.c | 49 ++-- 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/arch/x86

[PATCH v6 0/3] x86/kvm: Support AVX512_4VNNIW and AVX512_4FMAPS for KVM guest

2016-11-11 Thread He Chen
a helper in scattered.c to get scattered leaf. Changes in v2: * add new macros for new AVX512 scattered features. * add a cpuid_count_edx function to processor.h He Chen (3): x86/cpuid: Cleanup cpuid_regs definitions x86/cpuid: Add a helper in scattered.c to return cpuid x86/kvm: Add

[PATCH v5 0/3] cpuid: Support AVX512_4VNNIW and AVX512_4FMAPS for KVM guest

2016-11-09 Thread He Chen
cpuid_count_edx function to processor.h He Chen (3): cpuid: cleanup cpuid_regs definitions cpuid: Add a helper in scattered.c to return cpuid cpuid: add AVX512_4VNNIW and AVX512_4FMAPS instructions support arch/x86/events/intel/pt.c | 45 ++- arch/x86/include

[PATCH v5 2/3] cpuid: Add a helper in scattered.c to return cpuid

2016-11-09 Thread He Chen
, and it can be called outside by modules. Signed-off-by: He Chen --- arch/x86/include/asm/processor.h | 3 +++ arch/x86/kernel/cpu/scattered.c | 49 ++-- 2 files changed, 40 insertions(+), 12 deletions(-) diff --git a/arch/x86/include/asm/processor.h b/arch

[PATCH v5 1/3] cpuid: cleanup cpuid_regs definitions

2016-11-09 Thread He Chen
make cpuid_regs more clear and avoid potential name clash. Signed-off-by: He Chen --- arch/x86/events/intel/pt.c | 45 +--- arch/x86/include/asm/processor.h | 11 ++ arch/x86/kernel/cpu/scattered.c | 28 ++--- arch/x86

[PATCH v5 3/3] cpuid: add AVX512_4VNNIW and AVX512_4FMAPS instructions support

2016-11-09 Thread He Chen
Add two new AVX512 instructions support for KVM guest. AVX512_4VNNIW: Vector instructions for deep learning enhanced word variable precision. AVX512_4FMAPS: Vector instructions for deep learning floating-point single precision. Signed-off-by: Luwei Kang Signed-off-by: He Chen --- arch/x86

[PATCH v4 1/2] cpuid: Add a helper in scattered.c to return cpuid leaf info

2016-11-08 Thread He Chen
Some sparse cpuid leafs are gathered in a fake leaf to save size of x86_capability array in current code, but sometimes, kernel or other modules (e.g. KVM cpuid enumeration) may need actual hardware leaf information. This patch adds a helper get_scattered_cpuid_leaf to rebuild actual cpuid leaf, a

[PATCH v4 2/2] cpuid: add AVX512_4VNNIW and AVX512_4FMAPS instructions support

2016-11-08 Thread He Chen
Add two new AVX512 instructions support for KVM guest. AVX512_4VNNIW: Vector instructions for deep learning enhanced word variable precision. AVX512_4FMAPS: Vector instructions for deep learning floating-point single precision. --- arch/x86/kvm/cpuid.c | 14 +- 1 file changed, 13 ins

[PATCH v4 0/2] cpuid: Support AVX512_4VNNIW and AVX512_4FMAPS for KVM guest

2016-11-08 Thread He Chen
AVX512 instructions for KVM. * coding style. * refine commit message. Changes in v3: * add a helper in scattered.c to get scattered leaf. Changes in v2: * add new macros for new AVX512 scattered features. * add a cpuid_count_edx function to processor.h He Chen (2): cpuid: Add a helper in

Re: [PATCH v3] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-11-06 Thread He Chen
On Fri, Nov 04, 2016 at 11:52:35AM +0100, Borislav Petkov wrote: > Please CC me on your future submissions, thanks. > Sure. > On Fri, Nov 04, 2016 at 03:07:19PM +0800, He Chen wrote: > > The spec can be found in Intel Software Developer Manual or in > > Instruction Set E

[PATCH v3] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-11-04 Thread He Chen
The spec can be found in Intel Software Developer Manual or in Instruction Set Extensions Programming Reference. Signed-off-by: Luwei Kang Signed-off-by: He Chen --- Changes in v3: * add a helper in scattered.c to get scattered leaf. Changes in v2: * add new macros for new AVX512 scattered

Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-11-01 Thread He Chen
On Mon, Oct 31, 2016 at 12:41:32PM +0100, Paolo Bonzini wrote: > > > On 31/10/2016 12:05, Borislav Petkov wrote: > > On Mon, Oct 31, 2016 at 11:47:48AM +0100, Paolo Bonzini wrote: > >> The information is all in arch/x86/kernel/cpu/scattered.c's cpuid_bits > >> array. Borislav, would it be okay t

[PATCH v2] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-10-31 Thread He Chen
The spec can be found in Intel Software Developer Manual or in Instruction Set Extensions Programming Reference. Signed-off-by: Luwei Kang Signed-off-by: He Chen --- Changes in v2: * add new macros for new AVX512 scattered features * add a cpuid_count_edx function to processor.h --- arch/x86

[PATCH v2] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-10-31 Thread He Chen
The spec can be found in Intel Software Developer Manual or in Instruction Set Extensions Programming Reference. Signed-off-by: Luwei Kang Signed-off-by: He Chen --- Changes in v2: * add new macros for new AVX512 scattered features * add a cpuid_count_edx function to processor.h --- arch/x86

Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-10-28 Thread He Chen
On Fri, Oct 28, 2016 at 11:54:13AM +0200, Paolo Bonzini wrote: > > > On 28/10/2016 11:46, He Chen wrote: > > On Fri, Oct 28, 2016 at 11:31:05AM +0200, Paolo Bonzini wrote: > >> > >> > >> On 28/10/2016 11:12, He Chen wrote: > >>> The spec

Re: [PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-10-28 Thread He Chen
On Fri, Oct 28, 2016 at 11:31:05AM +0200, Paolo Bonzini wrote: > > > On 28/10/2016 11:12, He Chen wrote: > > The spec can be found in Intel Software Developer Manual or in > > Instruction Set Extensions Programming Reference. > > > > Signed-off-by: Luwei

[PATCH] x86/cpuid: expose AVX512_4VNNIW and AVX512_4FMAPS features to kvm guest

2016-10-28 Thread He Chen
The spec can be found in Intel Software Developer Manual or in Instruction Set Extensions Programming Reference. Signed-off-by: Luwei Kang Signed-off-by: He Chen --- arch/x86/kvm/cpuid.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/cpuid.c b/arch/x86