All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] selftests/resctrl: Add Hygon CPUs support and bug fixes
@ 2025-12-04 12:38 Xiaochen Shen
  2025-12-04 12:38 ` [PATCH 1/3] selftests/resctrl: Add CPU vendor detection for Hygon Xiaochen Shen
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Xiaochen Shen @ 2025-12-04 12:38 UTC (permalink / raw)
  To: tony.luck, reinette.chatre, bp, fenghuay
  Cc: babu.moger, james.morse, Dave.Martin, x86, linux-kernel,
	shenxiaochen

The resctrl selftest currently exhibits several failures on Hygon CPUs
due to missing vendor detection and edge-case handling specific to
Hygon's architecture.

This patch series addresses three distinct issues:
1. Missing CPU vendor detection, causing the test to fail with
   "# Can not get vendor info..." on Hygon CPUs.
2. A division-by-zero crash in SNC detection on Hygon CPUs.
3. Incorrect handling of non-contiguous CBM support on Hygon CPUs.

These changes enable resctrl selftest to run successfully on
Hygon CPUs that support Platform QoS features.

Xiaochen Shen (3):
  selftests/resctrl: Add CPU vendor detection for Hygon
  selftests/resctrl: Fix a division by zero error on Hygon
  selftests/resctrl: Fix non-contiguous CBM check for Hygon

 tools/testing/selftests/resctrl/cat_test.c      |  4 ++--
 tools/testing/selftests/resctrl/resctrl.h       |  1 +
 tools/testing/selftests/resctrl/resctrl_tests.c |  2 ++
 tools/testing/selftests/resctrl/resctrlfs.c     | 10 ++++++++++
 4 files changed, 15 insertions(+), 2 deletions(-)

-- 
2.47.3


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-12-05  7:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-04 12:38 [PATCH 0/3] selftests/resctrl: Add Hygon CPUs support and bug fixes Xiaochen Shen
2025-12-04 12:38 ` [PATCH 1/3] selftests/resctrl: Add CPU vendor detection for Hygon Xiaochen Shen
2025-12-04 23:48   ` Reinette Chatre
2025-12-05  7:01     ` Xiaochen Shen
2025-12-04 12:38 ` [PATCH 2/3] selftests/resctrl: Fix a division by zero error on Hygon Xiaochen Shen
2025-12-05  0:56   ` Reinette Chatre
2025-12-05  4:56     ` Xiaochen Shen
2025-12-04 12:38 ` [PATCH 3/3] selftests/resctrl: Fix non-contiguous CBM check for Hygon Xiaochen Shen
2025-12-05  0:55   ` Reinette Chatre
2025-12-05  7:15     ` Xiaochen Shen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.