The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/3] selftests/resctrl: Fix resctrl selftests issues on aarch64
@ 2026-05-28 10:29 Richard Cheng
  2026-05-28 10:29 ` [PATCH v2 1/3] selftests/resctrl: Skip L3_CAT when no exclusive cache portion exists Richard Cheng
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Richard Cheng @ 2026-05-28 10:29 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,
	Richard Cheng

This series fixes numerous issues in the resctrl selftests on aarch64,
where they currently misreport failures.

Patch 1 adds aarch64 implementations of cl_flush() and sb() in
fill_buf.c so cache flushes are no longer silent no-ops.

Patch 2 teaches detect_vendor() about aarch64 (which exposes no
vendor_id in /proc/cpuinfo) and lets arch_supports_noncont_cat()
return true for ARM, fixing spurious L3_NONCONT_CAT failures.

Patch 3 skips L3_CAT at feature-check time when MPAM legitimately
reports every CBM bit as shareable, instead of failing the test.

Changes since v1:
    - Make the 3 patches into a series

Richard Cheng (3):
  selftests/resctrl: Skip L3_CAT when no exclusive cache portion exists
  selftests/resctrl: Implement cl_flush() and sb() for aarch64
  selftests/resctrl: Recognise aarch64 as a vendor for L3_NONCONT_CAT

 tools/testing/selftests/resctrl/cat_test.c    | 32 +++++++++++++++++--
 tools/testing/selftests/resctrl/fill_buf.c    |  6 ++++
 tools/testing/selftests/resctrl/resctrl.h     |  1 +
 .../testing/selftests/resctrl/resctrl_tests.c | 11 +++++++
 4 files changed, 47 insertions(+), 3 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-05-28 11:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-28 10:29 [PATCH v2 0/3] selftests/resctrl: Fix resctrl selftests issues on aarch64 Richard Cheng
2026-05-28 10:29 ` [PATCH v2 1/3] selftests/resctrl: Skip L3_CAT when no exclusive cache portion exists Richard Cheng
2026-05-28 11:03   ` Ilpo Järvinen
2026-05-28 10:29 ` [PATCH v2 2/3] selftests/resctrl: Implement cl_flush() and sb() for aarch64 Richard Cheng
2026-05-28 10:29 ` [PATCH v2 3/3] selftests/resctrl: Recognise aarch64 as a vendor for L3_NONCONT_CAT Richard Cheng
2026-05-28 11:01   ` Ilpo Järvinen

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