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:
> > > &
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
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
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 |
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
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 |
- 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
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
- 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
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
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
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
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
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 +
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
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
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
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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
> 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;
> > +}
> > +
> >
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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]
>
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
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)
>
> 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
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
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
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
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
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
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:
-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
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
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
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
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
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
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
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
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
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
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
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/
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
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/
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
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/
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
---
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
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
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
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
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
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
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
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/
;)
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
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
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/
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
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/
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
#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,
u/intel_rdt.c | 10 --
> 1 file changed, 4 insertions(+), 6 deletions(-)
>
Acked-by: 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
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
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
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
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
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
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
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
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
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
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
501 - 600 of 1155 matches
Mail list logo