mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] selftests/resctrl: increase L3 cache test coverage
@ 2026-06-08 11:06 Richard Cheng
  2026-06-08 11:06 ` [PATCH 1/3] selftests/resctrl: Add L3_CAT_OCCUP test to verify CAT bounds occupancy Richard Cheng
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Richard Cheng @ 2026-06-08 11:06 UTC (permalink / raw)
  To: tony.luck, reinette.chatre, shuah
  Cc: Dave.Martin, james.morse, babu.moger, linux-kernel,
	linux-kselftest, fenghuay, newtonl, kristinc, kaihengf, kobak,
	sdonthineni, Richard Cheng

The resctrl selftests check L3 cache isolation (L3_CAT) and occupancy
accuracy (CMT), but some basic L3 behaviour is untested: that an allocation
actually bounds a group's cache use, that invalid CBMs are rejected, and
that info/L3/bit_usage reports allocations correctly.

Add three self-contained tests for these. Each gates on the feature
it needs, so it runs wherever that feature exists and skips otherwise.
They were exercised on an arm64 MPAM platform.

Richard Cheng (3):
  selftests/resctrl: Add L3_CAT_OCCUP test to verify CAT bounds
    occupancy
  selftests/resctrl: Add L3_CAT_VALIDATE to check invalid CBMs
  selftests/resctrl: Add L3_BIT_USAGE to check bit_usage tracks
    allocation

 tools/testing/selftests/resctrl/cat_test.c    | 433 ++++++++++++++++++
 tools/testing/selftests/resctrl/cmt_test.c    |   3 -
 tools/testing/selftests/resctrl/resctrl.h     |   6 +
 .../testing/selftests/resctrl/resctrl_tests.c |   3 +
 4 files changed, 442 insertions(+), 3 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-08-10  4:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-08 11:06 [PATCH 0/3] selftests/resctrl: increase L3 cache test coverage Richard Cheng
2026-06-08 11:06 ` [PATCH 1/3] selftests/resctrl: Add L3_CAT_OCCUP test to verify CAT bounds occupancy Richard Cheng
2026-08-05 22:18   ` Reinette Chatre
2026-08-10  4:22     ` Richard Cheng
2026-06-08 11:06 ` [PATCH 2/3] selftests/resctrl: Add L3_CAT_VALIDATE to check invalid CBMs Richard Cheng
2026-08-05 22:35   ` Reinette Chatre
2026-06-08 11:06 ` [PATCH 3/3] selftests/resctrl: Add L3_BIT_USAGE to check bit_usage tracks allocation Richard Cheng
2026-08-05 22:37   ` Reinette Chatre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®