selftests/resctrl: Print a message if the result of MBM&CMT tests is failed on Intel CPU
authorShaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Wed, 23 Mar 2022 08:09:28 +0000 (17:09 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 25 Apr 2022 22:58:01 +0000 (16:58 -0600)
commitd577380da04e410a31e7f944b04d838ab1c8a1c3
tree2efe53a4283c86a5af2d0f62220b3e390c0d3edd
parent6220f69e72a534838cffd84dce6afd777777be03
selftests/resctrl: Print a message if the result of MBM&CMT tests is failed on Intel CPU

According to "Intel Resource Director Technology (Intel RDT) on
2nd Generation Intel Xeon Scalable Processors Reference Manual",
When the Intel Sub-NUMA Clustering(SNC) feature is enabled,
Intel CMT and MBM counters may not be accurate.

However, there does not seem to be an architectural way to detect
if SNC is enabled.

If the result of MBM&CMT test fails on Intel CPU,
print a message to let users know a possible cause of failure.

Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/resctrl/resctrl_tests.c