Re: [PATCH v2 3/3] x86/umwait: Control umwait maximum time

2019-01-16 Thread Fenghua Yu
On Wed, Jan 16, 2019 at 04:30:59PM -0800, Andy Lutomirski wrote: > On Wed, Jan 16, 2019 at 4:13 PM Fenghua Yu wrote: > > > > On Wed, Jan 16, 2019 at 04:00:29PM -0800, Andy Lutomirski wrote: > > > On Wed, Jan 16, 2019 at 1:24 PM Fenghua Yu wrote: > > > &

Re: [PATCH v2 3/3] x86/umwait: Control umwait maximum time

2019-01-16 Thread Fenghua Yu
On Wed, Jan 16, 2019 at 04:00:29PM -0800, Andy Lutomirski wrote: > On Wed, Jan 16, 2019 at 1:24 PM Fenghua Yu wrote: > > > > IA32_UMWAIT_CONTROL[31:2] determines the maximum time in TSC-quanta > > that processor can stay in C0.1 or C0.2. > > > > The maximum time

[PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-01-16 Thread Fenghua Yu
indicated by the presence of the CPUID feature flag WAITPKG CPUID.0x07.0x0:ECX[5]. Please check the latest Intel Architecture Instruction Set Extensions and Future Features Programming Reference for more details on the instructions and CPUID feature WAITPKG flag. Signed-off-by: Fenghua Yu

[PATCH v2 2/3] x86/umwait: Setup umwait C0.2 state

2019-01-16 Thread Fenghua Yu
ntrol/umwait_enable_c0_2" file is created to allow user to check if C0.2 is enabled or disabled and also allow user to enable or disable C0.2. Value "0" in the file means C0.2 is disabled. Value "1" means C0.2 is enabled. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/msr-index.h |

[PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions

2019-01-16 Thread Fenghua Yu
indicated by the presence of the CPUID feature flag WAITPKG CPUID.0x07.0x0:ECX[5]. Please check the latest Intel Architecture Instruction Set Extensions and Future Features Programming Reference for more details on the instructions and CPUID feature WAITPKG flag. Signed-off-by: Fenghua Yu

[PATCH v2 2/3] x86/umwait: Setup umwait C0.2 state

2019-01-16 Thread Fenghua Yu
ntrol/umwait_enable_c0_2" file is created to allow user to check if C0.2 is enabled or disabled and also allow user to enable or disable C0.2. Value "0" in the file means C0.2 is disabled. Value "1" means C0.2 is enabled. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/msr-index.h |

[PATCH v2 0/3] x86/umwait: Enable user wait instructions

2019-01-16 Thread Fenghua Yu
- Remove vDSO functions - Add sysfs control file for umwait max time v1: Based on comments from Thomas: - Change user APIs to vDSO functions - Change sysfs to positive logic and enable file name - Change patch descriptions etc Fenghua Yu (3): x86/cpufeatures: Enumerate user wait instructions x8

[PATCH v2 3/3] x86/umwait: Control umwait maximum time

2019-01-16 Thread Fenghua Yu
time as the instructions operand. User can specify global umwait maximum time through interface: /sys/devices/system/cpu/umwait_control/umwait_max_time The value in the interface is in decimal in TSC-quanta. Bits[1:0] are cleared when the value is stored. Signed-off-by: Fenghua Yu --- arch/x86

[PATCH v2 0/3] x86/umwait: Enable user wait instructions

2019-01-16 Thread Fenghua Yu
- Remove vDSO functions - Add sysfs control file for umwait max time v1: Based on comments from Thomas: - Change user APIs to vDSO functions - Change sysfs to positive logic and enable file name - Change patch descriptions etc Fenghua Yu (3): x86/cpufeatures: Enumerate user wait instructions x8

[PATCH v2 3/3] x86/umwait: Control umwait maximum time

2019-01-16 Thread Fenghua Yu
time as the instructions operand. User can specify global umwait maximum time through interface: /sys/devices/system/cpu/umwait_control/umwait_max_time The value in the interface is in decimal in TSC-quanta. Bits[1:0] are cleared when the value is stored. Signed-off-by: Fenghua Yu --- arch/x86

Re: [PATCH v4 00/10] selftests/resctrl: Add resctrl selftest

2019-01-16 Thread Fenghua Yu
On Wed, Jan 16, 2019 at 03:54:07PM +, Moger, Babu wrote: > Hi Fenghua/Sai/Arshiya, > We were thinking of updating these selftests to work on both Intel and > AMD. What do you guys think? > > If that is ok, I can update these patches and resubmit. If you have > already updated, please post th

[PATCH v4 02/10] selftests/resctrl: Add basic resctrl file system operations and data

2018-12-21 Thread Fenghua Yu
From: Sai Praneeth Prakhya The basic resctrl file system operations and data are added for future usage by resctrl selftest tool. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile| 10

[PATCH v4 09/10] selftests/resctrl: Add Cache Allocation Technology (CAT) selftest

2018-12-21 Thread Fenghua Yu
of cache. We don't use CQM to calculate cache usage because some CAT enabled platforms don't have CQM. Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile | 2 +- tools/testing

[PATCH v4 07/10] selftests/resctrl: Add MBA test

2018-12-21 Thread Fenghua Yu
ned-off-by: Sai Praneeth Prakhya , Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile | 2 +- tools/testing/selftests/resctrl/mba_test.c| 173 ++ tools/testing/selftests/resctrl/resctrl.h | 2 + .../testing/selftests/resctrl/resctrl_tests.c | 15 +

[PATCH v4 01/10] selftests/resctrl: Add README for resctrl tests

2018-12-21 Thread Fenghua Yu
resctrl tests will be implemented. README is added for the tool first. Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/README | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 tools/testing/selftests/resctrl/README diff --git a/tools/testing

[PATCH v4 03/10] selftests/resctrl: Read memory bandwidth from perf IMC counter and from resctrl file system

2018-12-21 Thread Fenghua Yu
Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/resctrl_val.c | 431 ++ 1 file changed, 431 insertions(+) create mode 100644 tools/testing/selftests/resctrl/resctrl_val.c diff --git a/tools/testing/selftests/resctrl/resctrl_val.c b/tools/testing/selftests/resctrl

[PATCH v4 04/10] selftests/resctrl: Add callback to start a benchmark

2018-12-21 Thread Fenghua Yu
From: Sai Praneeth Prakhya The callback starts a child process and puts the child pid in created resctrl group with specified memory bandwidth in schemata. The child starts running benchmark. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu

[PATCH v4 00/10] selftests/resctrl: Add resctrl selftest

2018-12-21 Thread Fenghua Yu
est selftests/resctrl Add Cache QoS Monitoring (CQM) selftest selftests/resctrl: Add Cache Allocation Technology (CAT) selftest Fenghua Yu (2): selftests/resctrl: Add README for resctrl tests selftests/resctrl: Add the test in MAINTAINERS Sai Praneeth Prakhya (4): selftests/resctrl: Ad

[PATCH v4 06/10] selftests/resctrl: Add MBM test

2018-12-21 Thread Fenghua Yu
th Prakhya , Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile | 8 +- tools/testing/selftests/resctrl/mbm_test.c| 145 ++ tools/testing/selftests/resctrl/resctrl.h | 3 + .../testing/selftests/resctrl/resctrl_tests.c | 123 +++ too

[PATCH v4 08/10] selftests/resctrl Add Cache QoS Monitoring (CQM) selftest

2018-12-21 Thread Fenghua Yu
: Sai Praneeth Prakhya Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile | 2 +- tools/testing/selftests/resctrl/cache.c | 102 tools/testing/selftests/resctrl/cqm_test.c| 169 + tools/testing/selftests/resctrl/fill_buf.c| 107

[PATCH v4 05/10] selftests/resctrl: Add built in benchmark

2018-12-21 Thread Fenghua Yu
Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/fill_buf.c | 175 + 1 file changed, 175 insertions(+) create mode 100644 tools/testing/selftests/resctrl/fill_buf.c diff --git a/tools/testing/selftests/resctrl

[PATCH v4 10/10] selftests/resctrl: Add the test in MAINTAINERS

2018-12-21 Thread Fenghua Yu
The resctrl selftest will be maintained by RDT maintainers. Signed-off-by: Fenghua Yu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 842b697a1511..edafdecb1e41 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12650,6 +12650,7 @@ S

[PATCH v3 1/8] selftests/resctrl: Add README for resctrl tests

2018-10-31 Thread Fenghua Yu
resctrl tests will be implemented. README is added for the tool first. Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/README | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 tools/testing/selftests/resctrl/README diff --git a/tools

[PATCH v3 3/8] selftests/resctrl: Read memory bandwidth from perf IMC counter and from resctrl file system

2018-10-31 Thread Fenghua Yu
Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/membw.c | 431 1 file changed, 431 insertions(+) create mode 100644 tools/testing/selftests/resctrl/membw.c diff --git a/tools/testing/selftests/resctrl/membw.c b/tools/testing/selftests/resctrl

[PATCH v3 0/8] selftests/resctrl: Add resctrl selftest

2018-10-31 Thread Fenghua Yu
unnessary code and use pipe to communicate b/w processes v2: - Change code based on comments from Babu Moger - Clean up other places. Arshiya Hayatkhan Pathan (2): selftests/resctrl: Add MBM test selftests/resctrl: Add MBA test Fenghua Yu (2): selftests/resctrl: Add README for resctrl te

[PATCH v3 5/8] selftests/resctrl: Add built in benchmark

2018-10-31 Thread Fenghua Yu
Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/fill_buf.c | 175 + 1 file changed, 175 insertions(+) create mode 100644 tools/testing/selftests/resctrl/fill_buf.c diff --git a/tools/testing/selftests

[PATCH v3 2/8] selftests/resctrl: Add basic resctrl file system operations and data

2018-10-31 Thread Fenghua Yu
From: Sai Praneeth Prakhya The basic resctrl file system operations and data are added for future usage by resctrl selftest tool. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile| 10

[PATCH v3 7/8] selftests/resctrl: Add MBA test

2018-10-31 Thread Fenghua Yu
ned-off-by: Sai Praneeth Prakhya , Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile| 2 +- tools/testing/selftests/resctrl/mba_test.c | 173 tools/testing/selftests/resctrl/resctrl.h | 2 + tools/testing/selftests/resctrl/resct

[PATCH v3 8/8] selftests/resctrl: Add the test in MAINTAINERS

2018-10-31 Thread Fenghua Yu
The resctrl selftest will be maintained by RDT maintainers. Signed-off-by: Fenghua Yu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 48a65c3a4189..ecd1369ef761 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12270,6 +12270,7 @@ S

[PATCH v3 4/8] selftests/resctrl: Add callback to start a benchmark

2018-10-31 Thread Fenghua Yu
From: Sai Praneeth Prakhya The callback starts a child process and puts the child pid in created resctrl group with specified memory bandwidth in schemata. The child starts running benchmark. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu

[PATCH v3 6/8] selftests/resctrl: Add MBM test

2018-10-31 Thread Fenghua Yu
th Prakhya , Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile| 8 +- tools/testing/selftests/resctrl/mbm_test.c | 145 tools/testing/selftests/resctrl/membw.c | 2 + tools/testing/selftests/resctrl/resctrl.h | 3 + too

Re: Fwd: [PATCH v2 2/8] selftests/resctrl: Add basic resctrl file system operations and data

2018-10-30 Thread Fenghua Yu
> From: Moger, Babu > > From: Fenghua Yu > > From: Sai Praneeth Prakhya > > > > The basic resctrl file system operations and data are added for future > > usage by resctrl selftest tool. > > > > + return 0; > > +} > > + > >

[PATCH v2 2/8] selftests/resctrl: Add basic resctrl file system operations and data

2018-10-25 Thread Fenghua Yu
From: Sai Praneeth Prakhya The basic resctrl file system operations and data are added for future usage by resctrl selftest tool. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile| 10

[PATCH v2 4/8] selftests/resctrl: Add callback to start a benchmark

2018-10-25 Thread Fenghua Yu
From: Sai Praneeth Prakhya The callback starts a child process and puts the child pid in created resctrl group with specified memory bandwidth in schemata. The child starts running benchmark. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu

[PATCH v2 1/8] selftests/resctrl: Add README for resctrl tests

2018-10-25 Thread Fenghua Yu
resctrl tests will be implemented. README is added for the tool first. Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/README | 53 ++ 1 file changed, 53 insertions(+) create mode 100644 tools/testing/selftests/resctrl/README diff --git a/tools

[PATCH v2 5/8] selftests/resctrl: Add built in benchmark

2018-10-25 Thread Fenghua Yu
Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/fill_buf.c | 175 + 1 file changed, 175 insertions(+) create mode 100644 tools/testing/selftests/resctrl/fill_buf.c diff --git a/tools/testing/selftests

[PATCH v2 8/8] selftests/resctrl: Add the test in MAINTAINERS

2018-10-25 Thread Fenghua Yu
The resctrl selftests will be maintained by RDT maintainers. Signed-off-by: Fenghua Yu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 48a65c3a4189..ecd1369ef761 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12270,6 +12270,7 @@ S

[PATCH v2 0/8] selftests/resctrl: Add resctrl selftest

2018-10-25 Thread Fenghua Yu
up other places. Arshiya Hayatkhan Pathan (2): selftests/resctrl: Add mbm test selftests/resctrl: Add mba test Fenghua Yu (2): selftests/resctrl: Add README for resctrl tests selftests/resctrl: Add the test in MAINTAINERS Sai Praneeth Prakhya (4): selftests/resctrl: Add basic resctrl file sy

[PATCH v2 7/8] selftests/resctrl: Add mba test

2018-10-25 Thread Fenghua Yu
a , Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile| 2 +- tools/testing/selftests/resctrl/mba_test.c | 175 tools/testing/selftests/resctrl/resctrl.h | 4 + tools/testing/selftests/resctrl/resctrl_tests.c | 16 ++- 4 files ch

[PATCH v2 6/8] selftests/resctrl: Add mbm test

2018-10-25 Thread Fenghua Yu
pass the test. Default benchmark is built-in fill_buf. But users can specify their own benchmark by option "-b". We can add memory bandwidth monitoring for multiple processes in the future. Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Sai Praneeth Prakhya , Signed-off-by:

[PATCH v2 3/8] selftests/resctrl: Read memory bandwidth from perf IMC counter and from resctrl file system

2018-10-25 Thread Fenghua Yu
Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/membw.c | 403 1 file changed, 403 insertions(+) create mode 100644 tools/testing/selftests/resctrl/membw.c diff --git a/tools/testing/selftests/resctrl/membw.c b/tools/testing/selftests/resctrl

[tip:x86/urgent] x86/cpufeatures: Enumerate MOVDIR64B instruction

2018-10-24 Thread tip-bot for Fenghua Yu
Commit-ID: ace6485a03266cc3c198ce8e927a1ce0ce139699 Gitweb: https://git.kernel.org/tip/ace6485a03266cc3c198ce8e927a1ce0ce139699 Author: Fenghua Yu AuthorDate: Wed, 24 Oct 2018 14:57:17 -0700 Committer: Ingo Molnar CommitDate: Thu, 25 Oct 2018 07:42:48 +0200 x86/cpufeatures: Enumerate

[tip:x86/urgent] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-10-24 Thread tip-bot for Fenghua Yu
Commit-ID: 33823f4d63f7a010653d219800539409a78ef4be Gitweb: https://git.kernel.org/tip/33823f4d63f7a010653d219800539409a78ef4be Author: Fenghua Yu AuthorDate: Wed, 24 Oct 2018 14:57:16 -0700 Committer: Ingo Molnar CommitDate: Thu, 25 Oct 2018 07:42:48 +0200 x86/cpufeatures: Enumerate

[PATCH 1/2] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-10-24 Thread Fenghua Yu
MOVDIRI flag. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 89a048c2faec..90934ee7b79a 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86

[PATCH 2/2] x86/cpufeatures: Enumerate MOVDIR64B instruction

2018-10-24 Thread Fenghua Yu
Features Programming Reference for more details on the CPUID feature MOVDIR64B flag. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 90934ee7b79a

[PATCH 0/2] x86: Enumerate direct stores instructions

2018-10-24 Thread Fenghua Yu
yet, this time these direct stores instructions patches are sent out separately. Fenghua Yu (2): x86/cpufeatures: Enumerate MOVDIRI instruction x86/cpufeatures: Enumerate MOVDIR64B instruction arch/x86/include/asm/cpufeatures.h | 2 ++ 1 file changed, 2 insertions(+) -- 2.5.0

Re: [PATCH 0/7] selftests/resctrl: Add resctrl selftest

2018-10-17 Thread Fenghua Yu
On Wed, Oct 17, 2018 at 11:04 AM Moger, Babu wrote: > > Hi Fenghua, > My few comments. > > On 10/17/2018 09:40 AM, Moger, Babu wrote: > > On 10/16/2018 03:32 PM, Fenghua Yu wrote: > >>> From: Moger, Babu [mailto:babu.mo...@amd.com] >

Re: [PATCH v4 10/13] arch/x86: Add AMD feature bit X86_FEATURE_MBA in cpuid bits array

2018-10-16 Thread Fenghua Yu
On Mon, Oct 15, 2018 at 08:55:54PM +, Moger, Babu wrote: > From: Sherry Hurwitz > > The feature bit X86_FEATURE_MBA is detected via CPUID leaf 0x8008 > EBX Bit 06. This bit indicates the support of AMD's MBA feature. > > This feature is supported by both Intel and AMD. But they are detec

Re: [PATCH v4 08/13] arch/x86: Bring few more functions into the resource structure

2018-10-16 Thread Fenghua Yu
On Mon, Oct 15, 2018 at 08:55:49PM +, Moger, Babu wrote: > update_mba_bw : Feedback loop bandwidth update functionality is not > needed for AMD. Will you implement update_mba_bw() for AMD in future? > list_for_each_entry(crgrp, head, mon.crdtgrp_list) >

Re: [PATCH 0/7] selftests/resctrl: Add resctrl selftest

2018-10-16 Thread Fenghua Yu
> From: Moger, Babu [mailto:babu.mo...@amd.com] > On 10/16/2018 11:56 AM, Fenghua Yu wrote: > > With more and more resctrl features are being added by Intel, AMD and > > ARM, a test tool is becoming more and more useful to validate that > > both hardware and software

[PATCH 2/7] selftests/resctrl: Read memory bandwidth from perf IMC counter and from resctrl file system

2018-10-16 Thread Fenghua Yu
Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/resctrl_membw.c | 328 tools/testing/selftests/resctrl/resctrl_membw.h | 49 2 files changed, 377 insertions(+) create mode 100644 tools/testing/selftests/resctrl/resctrl_membw.c create mode 100644 tools

[PATCH 0/7] selftests/resctrl: Add resctrl selftest

2018-10-16 Thread Fenghua Yu
Pathan (2): selftests/resctrl: Add mbm test selftests/resctrl: Add mba test Fenghua Yu (1): selftests/resctrl: Add the test in MAINTAINERS Sai Praneeth Prakhya (4): selftests/resctrl: Add basic resctrl file system operations and data selftests/resctrl: Read memory bandwidth from perf IMC

[PATCH 1/7] selftests/resctrl: Add basic resctrl file system operations and data

2018-10-16 Thread Fenghua Yu
From: Sai Praneeth Prakhya The basic resctrl file system operations and data are added for future usage by resctrl selftest tool. Signed-off-by: Sai Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile | 10

[PATCH 4/7] selftests/resctrl: Add built in benchmark

2018-10-16 Thread Fenghua Yu
Praneeth Prakhya Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/fill_buf.c | 178 + 1 file changed, 178 insertions(+) create mode 100644 tools/testing/selftests/resctrl/fill_buf.c diff --git a/tools/testing/selftests

[PATCH 6/7] selftests/resctrl: Add mba test

2018-10-16 Thread Fenghua Yu
a , Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/Makefile| 2 +- tools/testing/selftests/resctrl/mba.c | 144 tools/testing/selftests/resctrl/resctrl.h | 3 + tools/testing/selftests/resctrl/resctrl_tests.c | 10 ++ 4 files ch

[PATCH 5/7] selftests/resctrl: Add mbm test

2018-10-16 Thread Fenghua Yu
pass the test. Default benchmark is built-in fill_buf. But users can specify their own benchmark by option "-ben". We can add memory bandwidth monitoring for multiple processes in the future. Signed-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Sai Praneeth Prakhya , Signed-off-by:

[PATCH 3/7] selftests/resctrl: Add callback to start a benchmark

2018-10-16 Thread Fenghua Yu
-off-by: Arshiya Hayatkhan Pathan Signed-off-by: Fenghua Yu --- tools/testing/selftests/resctrl/resctrl.h | 27 tools/testing/selftests/resctrl/resctrl_val.c | 192 ++ 2 files changed, 219 insertions(+) create mode 100644 tools/testing/selftests/resctrl

[PATCH 7/7] selftests/resctrl: Add the test in MAINTAINERS

2018-10-16 Thread Fenghua Yu
The resctrl selftests will be maintained by RDT maintainers. Signed-off-by: Fenghua Yu --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6ac000cc006d..07d597c68edc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12271,6 +12271,7 @@ S

Re: [PATCH v2 05/11] arch/x86: Introduce a new config parameter PLATFORM_QOS

2018-10-05 Thread Fenghua Yu
On Fri, Oct 05, 2018 at 08:55:52PM +, Moger, Babu wrote: > Introduces a new config parameter PLATFORM_QOS. > > This will be used as a common config parameter for both Intel and AMD. > Each vendor will have their own config parameter to enable RDT feature. > One for Intel(INTEL_RDT) and one for

Re: [RFC PATCH 00/10] arch/x86: AMD QoS support

2018-10-03 Thread Fenghua Yu
On Tue, Oct 02, 2018 at 07:16:23PM +, Moger, Babu wrote: > > > On 10/02/2018 01:46 PM, Fenghua Yu wrote: > > On Tue, Oct 02, 2018 at 05:44:47PM +, Moger, Babu wrote: > >> Hi Fenghua, > >> > >>> -----Original Message- > >>> Fro

Re: [RFC PATCH 00/10] arch/x86: AMD QoS support

2018-10-02 Thread Fenghua Yu
On Tue, Oct 02, 2018 at 05:44:47PM +, Moger, Babu wrote: > Hi Fenghua, > > > -Original Message- > > From: Fenghua Yu > > Sent: Tuesday, October 2, 2018 12:07 PM > > On Mon, Sep 24, 2018 at 07:18:54PM +, Moger, Babu wrote: > > > The public sp

Re: [RFC PATCH 10/10] arch/x86: Introduce QOS feature for AMD

2018-10-02 Thread Fenghua Yu
On Mon, Sep 24, 2018 at 07:19:16PM +, Moger, Babu wrote: > int parse_bw(void *_buf, struct rdt_resource *r, struct rdt_domain *d); > +int parse_bw_amd(void *_buf, struct rdt_resource *r, struct rdt_domain *d); Please note the type of _buf in parse_bw() is changed in latest kernel to fix som

Re: [RFC PATCH 00/10] arch/x86: AMD QoS support

2018-10-02 Thread Fenghua Yu
On Mon, Sep 24, 2018 at 07:18:54PM +, Moger, Babu wrote: > The public specification is still in works. Will add the link when it is > available. Is this the public AMD QoS spec? https://support.amd.com/TechDocs/56375_Quality_of_Service_Extensions.pdf Thanks. -Fenghua

[tip:x86/urgent] x86/intel_rdt: Add Reinette as co-maintainer for RDT

2018-09-20 Thread tip-bot for Fenghua Yu
Commit-ID: a8b3bb338e4ee4cc84a2b9a6fdf27049b84baa59 Gitweb: https://git.kernel.org/tip/a8b3bb338e4ee4cc84a2b9a6fdf27049b84baa59 Author: Fenghua Yu AuthorDate: Thu, 20 Sep 2018 12:37:08 -0700 Committer: Thomas Gleixner CommitDate: Thu, 20 Sep 2018 21:44:35 +0200 x86/intel_rdt: Add

[PATCH] x86/intel_rdt: Add Reinette as co-maintainer for RDT

2018-09-20 Thread Fenghua Yu
Reinette Chatre is doing great job on enabling pseudo-locking and other features in RDT. Add her as co-maintainer for RDT. Suggested-by: Thomas Gleixner Signed-off-by: Fenghua Yu Acked-by: Ingo Molnar Acked-by: Reinette Chatre --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH 1/9] x86/intel_rdt: Fix MBA parsing callback

2018-09-15 Thread Fenghua Yu
On Sat, Sep 15, 2018 at 12:13:53PM +0200, Thomas Gleixner wrote: > On Fri, 14 Sep 2018, Fenghua Yu wrote: > > +int parse_bw(void *_data, struct rdt_resource *r, struct rdt_domain *d); > > Sorry no. This keeps the code equally error prone as it was. Why is that > argument a v

[PATCH V2 3/9] x86/intel_rdt: Global closid helper to support future fixes

2018-09-15 Thread Fenghua Yu
CLOSIDs supported by the resource. Introduce a helper function that can be used to query the number of CLOSIDs that is supported by all resources, irrespective of how many CLOSIDs are supported by a particular resource. Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel

[PATCH V2 6/9] x86/intel_rdt: Do not allow pseudo-locking of MBA resource

2018-09-15 Thread Fenghua Yu
resource. Fixes: e0bdfe8e3 ("x86/intel_rdt: Support creation/removal of pseudo-locked region") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/

[PATCH V2 0/9] x86/intel_rdt: MBA integration fixes

2018-09-15 Thread Fenghua Yu
Chen Yu reported an issue where reading the resctrl "size" file results in a divide-by-zero issue on a system with a MBA resource. Further investigation revealed more issues where the recent RDT features are not well integrated with the MBA resource handling. This series consists out of: - One he

[PATCH V2 2/9] x86/intel_rdt: Fix size reporting of MBA resource

2018-09-15 Thread Fenghua Yu
l.com Reported-by: Chen Yu Tested-by: Chen Yu Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/

[PATCH V2 5/9] x86/intel_rdt: Fix unchecked MSR access

2018-09-15 Thread Fenghua Yu
initial allocation is only attempted on a CAT resource. Fixes: 95f0b77ef ("x86/intel_rdt: Initialize new resource group with sane defaults") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 12 1 file changed, 12

[PATCH V2 9/9] x86/intel_rdt: Fix incorrect loop end condition

2018-09-15 Thread Fenghua Yu
minimum across all resources. Fixes: 95f0b77ef ("x86/intel_rdt: Initialize new resource group with sane defaults") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/

[PATCH V2 4/9] x86/intel_rdt: Fix invalid mode warning when multiple resources are managed

2018-09-15 Thread Fenghua Yu
rdt_bit_usage_show+0x221/0x2b0 Fix this by ensuring that only the number of supported CLOSIDs are considered. Fixes: e651901187ab8 ("x86/intel_rdt: Introduce "bit_usage" to display cache allocations details") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu ---

[PATCH V2 8/9] x86/intel_rdt: Fix exclusive mode handling of MBA resource

2018-09-15 Thread Fenghua Yu
e in the group and ensuring that the CBM checking is only done on CAT/CDP resources. Fixes: 49f7b4efa ("x86/intel_rdt: Enable setting of exclusive mode") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 14 -- 1 file chang

[PATCH V2 1/9] x86/intel_rdt: Fix data type in parsing callbacks

2018-09-15 Thread Fenghua Yu
hen Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt.h | 16 arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 21 - 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/arch/x86/kernel/cpu/i

[PATCH V2 7/9] x86/intel_rdt: Fix incorrect loop end condition

2018-09-15 Thread Fenghua Yu
b4efa ("x86/intel_rdt: Enable setting of exclusive mode") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch

[PATCH 2/9] x86/intel_rdt: Fix size reporting of MBA resource

2018-09-14 Thread Fenghua Yu
ytes") Link: https://lkml.kernel.org/r/20180904174614.26682-1-yu.c.c...@intel.com Reported-by: Chen Yu Tested-by: Chen Yu Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 14 ++ 1 file changed, 10 insertions(+), 4 del

[PATCH 0/9] x86/intel_rdt: MBA integration fixes

2018-09-14 Thread Fenghua Yu
Chen Yu reported an issue where reading the resctrl "size" file results in a divide-by-zero issue on a system with a MBA resource. Further investigation revealed more issues where the recent RDT features are not well integrated with the MBA resource handling. This series consists out of: - One he

[PATCH 3/9] x86/intel_rdt: Global closid helper to support future fixes

2018-09-14 Thread Fenghua Yu
CLOSIDs supported by the resource. Introduce a helper function that can be used to query the number of CLOSIDs that is supported by all resources, irrespective of how many CLOSIDs are supported by a particular resource. Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel

[PATCH 4/9] x86/intel_rdt: Fix invalid mode warning when

2018-09-14 Thread Fenghua Yu
4/0xa9 [ 130.229733] RIP: 0033:0x7ff6f3c88701 Fix this by ensuring that only the number of supported CLOSIDs are considered. Fixes: e651901187ab8 ("x86/intel_rdt: Introduce "bit_usage" to display cache allocations details") Signed-off-by: Reinette Chatre Signed-off-by: Fenghu

[PATCH 6/9] x86/intel_rdt: Do not allow pseudo-locking of MBA resource

2018-09-14 Thread Fenghua Yu
resource. Fixes: e0bdfe8e3 ("x86/intel_rdt: Support creation/removal of pseudo-locked region") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/

[PATCH 5/9] x86/intel_rdt: Fix unchecked MSR access

2018-09-14 Thread Fenghua Yu
;) Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c index ea91750ba27f..74821bc457c0 100644 --- a

[PATCH 7/9] x86/intel_rdt: Fix incorrect loop end condition

2018-09-14 Thread Fenghua Yu
b4efa ("x86/intel_rdt: Enable setting of exclusive mode") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/intel_rdt_rdtgroup.c b/arch

[PATCH 1/9] x86/intel_rdt: Fix MBA parsing callback

2018-09-14 Thread Fenghua Yu
hen Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt.h | 2 +- arch/x86/kernel/cpu/intel_rdt_ctrlmondata.c | 24 ++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/

[PATCH 8/9] x86/intel_rdt: Fix exclusive mode handling of MBA resource

2018-09-14 Thread Fenghua Yu
e in the group and ensuring that the CBM checking is only done on CAT/CDP resources. Fixes: 49f7b4efa ("x86/intel_rdt: Enable setting of exclusive mode") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 14 -- 1 file chang

[PATCH 9/9] x86/intel_rdt: Fix incorrect loop end condition

2018-09-14 Thread Fenghua Yu
minimum across all resources. Fixes: 95f0b77ef ("x86/intel_rdt: Initialize new resource group with sane defaults") Signed-off-by: Reinette Chatre Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/

Re: [PATCH] x86/intel_rdt: Show missing resctrl mount options

2018-09-12 Thread Fenghua Yu
On Sat, Sep 08, 2018 at 02:07:41PM +0200, Thomas Gleixner wrote: > On Tue, 4 Sep 2018, Fenghua Yu wrote: > > > > Signed-off-by: Xiaochen Shen > > Signed-off-by: Fenghua Yu > > Sigh. Am I supposed to assume that this patch is authored by Xiaochen? Yes, Xiaochen i

[PATCH v2] x86/intel_rdt: Show missing resctrl mount options

2018-09-12 Thread Fenghua Yu
#mount -t resctrl resctrl -o cdp,mba_MBps /sys/fs/resctrl #grep resctrl /proc/mountts /sys/fs/resctrl /sys/fs/resctrl resctrl rw,relatime,cdp,mba_MBps 0 0 Signed-off-by: Xiaochen Shen Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 7 +++ 1 file changed,

Re: [PATCH v1] x86/intel_rdt: Switch to bitmap_zalloc()

2018-09-06 Thread Fenghua Yu
u/intel_rdt.c | 10 -- > 1 file changed, 4 insertions(+), 6 deletions(-) > Acked-by: Fenghua Yu

[PATCH] x86/intel_rdt: Show missing resctrl mount options

2018-09-04 Thread Fenghua Yu
esctrl -o cdp,mba_MBps /sys/fs/resctrl #grep resctrl /proc/mountts /sys/fs/resctrl /sys/fs/resctrl resctrl rw,relatime,cdp,mba_MBps 0 0 Signed-off-by: Xiaochen Shen Signed-off-by: Fenghua Yu --- arch/x86/kernel/cpu/intel_rdt_rdtgroup.c | 7 +++ 1 file changed, 7 insertions(+) di

Re: [RFC PATCH 00/20] x86/intel_rdt: Start abstraction for a second arch

2018-08-27 Thread Fenghua Yu
On Fri, Aug 24, 2018 at 11:44:59AM +0100, James Morse wrote: > Hi folks, > > ARM have some upcoming CPU features that are similar to Intel RDT. Resctrl > is the defacto ABI for this sort of thing, but it lives under arch/x86. > > To get existing software working, we need to make resctrl work with

Re: [PATCH 5/7] x86/vdso: Add vDSO functions for direct store instructions

2018-07-25 Thread Fenghua Yu
On Mon, Jul 23, 2018 at 10:27:34PM -0700, Andy Lutomirski wrote: > On Mon, Jul 23, 2018 at 8:42 PM, Fenghua Yu wrote: > > On Mon, Jul 23, 2018 at 06:48:00PM -0700, Andy Lutomirski wrote: > >> On 07/23/2018 05:55 AM, Fenghua Yu wrote: > >> >The instructions c

Re: [PATCH 5/7] x86/vdso: Add vDSO functions for direct store instructions

2018-07-23 Thread Fenghua Yu
On Mon, Jul 23, 2018 at 06:48:00PM -0700, Andy Lutomirski wrote: > On 07/23/2018 05:55 AM, Fenghua Yu wrote: > >The instructions can be implemented in intrinsic functions in future > >GCC. But the vDSO interfaces are available to user without the > I'm not convinced that any

[PATCH 0/7] x86: Enable a few new instructions

2018-07-23 Thread Fenghua Yu
c5/15/architecture-instruction-set-extensions-programming-reference.pdf Changelog: Based on comments from Thomas: - Change user APIs to vDSO functions - Change sysfs to positive logic and enable file name - Change patch descriptions etc Fenghua Yu (7): x86/cpufeatures: Enumerate MOVDIRI instruction

[PATCH 4/7] x86/umwait_contro: Set global umwait maximum time limit and umwait C0.2 state

2018-07-23 Thread Fenghua Yu
new "/sys/devices/system/cpu/umwait_control/umwait_enable_c0_2" file is created to allow user to check if C0.2 is enabled or disabled and also allow user to enable or disable C0.2. Value "0" in the file means C0.2 is disabled. Value "1" means C0.2 is enabled. Signed-o

[PATCH 2/7] x86/cpufeatures: Enumerate MOVDIR64B instruction

2018-07-23 Thread Fenghua Yu
Features Programming Reference for more details on the CPUID feature MOVDIR64B flag. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 92630c469675

[PATCH 5/7] x86/vdso: Add vDSO functions for direct store instructions

2018-07-23 Thread Fenghua Yu
movdiri_supported and movdir64b_supported cannot be implemented as GCC functions. Signed-off-by: Fenghua Yu --- arch/x86/entry/vdso/Makefile | 2 +- arch/x86/entry/vdso/vdirectstore.c | 152 + arch/x86/entry/vdso/vdso.lds.S | 10 +++ arch/x86

[PATCH 7/7] selftests/vDSO: Add selftest to test vDSO functions for direct store and user wait instructions

2018-07-23 Thread Fenghua Yu
nitor address. After testing environment is ready, the tests will be added. Signed-off-by: Fenghua Yu --- tools/testing/selftests/vDSO/Makefile | 4 +- tools/testing/selftests/vDSO/vdso_inst_test_x86.c | 405 ++ 2 files changed, 408 insertions(+), 1 deletion(-) c

[PATCH 6/7] x86/vdso: Add vDSO functions for user wait instructions

2018-07-23 Thread Fenghua Yu
intrinsic functions support in GCC and the API waitpkg_supported and nsec_to_tsc cannot be implemented as GCC functions. Signed-off-by: Fenghua Yu --- arch/x86/entry/vdso/Makefile | 2 +- arch/x86/entry/vdso/vdso.lds.S | 10 ++ arch/x86/entry/vdso/vma.c | 9

[PATCH 1/7] x86/cpufeatures: Enumerate MOVDIRI instruction

2018-07-23 Thread Fenghua Yu
MOVDIRI flag. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 5701f5cecd31..92630c469675 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86

<    1   2   3   4   5   6   7   8   9   10   >