]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/resctrl: Fix non-contiguous CBM check for Hygon
authorXiaochen Shen <shenxiaochen@open-hieco.net>
Wed, 17 Dec 2025 03:04:56 +0000 (11:04 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 9 Jan 2026 23:49:01 +0000 (16:49 -0700)
commit86063a2568b8f2eeb68da1411b320c0ff778f852
tree80f46132e7b29584a2cd03338bcbbf3a3eb6e453
parent367f931e6476747edbde4e7c7b95fc5d5b724934
selftests/resctrl: Fix non-contiguous CBM check for Hygon

The resctrl selftest currently fails on Hygon CPUs that always supports
non-contiguous CBM, printing the error:

  "# Hardware and kernel differ on non-contiguous CBM support!"

This occurs because the arch_supports_noncont_cat() function lacks
vendor detection for Hygon CPUs, preventing proper identification of
their non-contiguous CBM capability.

Fix this by adding Hygon vendor ID detection to
arch_supports_noncont_cat().

Link: https://lore.kernel.org/r/20251217030456.3834956-5-shenxiaochen@open-hieco.net
Signed-off-by: Xiaochen Shen <shenxiaochen@open-hieco.net>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/resctrl/cat_test.c