From: "Chen, Yu C" <yu.c.chen@intel.com>
To: Richard Cheng <icheng@nvidia.com>
Cc: Reinette Chatre <reinette.chatre@intel.com>, <shuah@kernel.org>,
"Dave Martin" <Dave.Martin@arm.com>,
James Morse <james.morse@arm.com>,
Babu Moger <babu.moger@amd.com>, Fenghua Yu <fenghuay@nvidia.com>,
<newtonl@nvidia.com>, <kristinc@nvidia.com>,
<kaihengf@nvidia.com>, Koba Ko <kobak@nvidia.com>,
Richard Cheng <icheng@nvidia.com>,
LKML <linux-kernel@vger.kernel.org>,
<linux-kselftest@vger.kernel.org>,
"Luck, Tony" <tony.luck@intel.com>,
"Ning, Hongyu" <hongyu.ning@intel.com>
Subject: Re: [PATCH] selftests/resctrl: Skip L3_CAT when no exclusive cache portion exists
Date: Wed, 27 May 2026 11:17:00 +0800 [thread overview]
Message-ID: <c9bee1ad-10f8-4e69-8d90-609cdd72580e@intel.com> (raw)
In-Reply-To: <20260526024251.7895-1-icheng@nvidia.com>
Hi Richard,
On 5/26/2026 10:42 AM, Richard Cheng wrote:
> L3_CAT measures cache isolation, which requires at least one ache bit
> not shared with non-CPU agents, i.e. cbm_mask & ~shareable_bits != 0 .
> On MPAM, shareable_bits == cbm_mask is a legitimate state, so there
> might be situations that no bit can be reported as exclusive.
>
> Previously get_mask_no_shareable() does the check inside cat_run_test(),
> which returns -1 silently and surfaced as a failure for arm64 MPAM.
>
> Implement cat_feature_check() to run the same check at feature-check
> time, it prints a diagnostic and return false so the test case itself
> can know when to skip.
>
> Signed-off-by: Richard Cheng <icheng@nvidia.com>
We have also observed this issue, and the patch helps identify the root
cause
of the CAT test failure.
./resctrl_tests -t L3_CAT
TAP version 13
# Pass: Check kernel supports resctrl filesystem
# Pass: Check resctrl mountpoint "/sys/fs/resctrl" exists
# resctrl filesystem not mounted
# dmesg: [ 43.705792] resctrl: L3 allocation detected
# dmesg: [ 43.712878] resctrl: L2 allocation detected
# dmesg: [ 43.719856] resctrl: MB allocation detected
# dmesg: [ 43.726800] resctrl: L3 monitoring detected
1..1
# Starting L3_CAT test ...
# Mounting resctrl to "/sys/fs/resctrl"
# All L3 bits are shareable; cannot measure CAT isolation
ok 1 # SKIP Hardware does not support L3_CAT or L3_CAT is disabled
# 1 skipped test(s) detected. Consider enabling relevant config options
to improve coverage.
# Totals: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0
Tested-by: Chen Yu <yu.c.chen@intel.com>
thanks,
Chenyu
prev parent reply other threads:[~2026-05-27 3:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-26 2:42 [PATCH] selftests/resctrl: Skip L3_CAT when no exclusive cache portion exists Richard Cheng
2026-05-27 3:17 ` Chen, Yu C [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9bee1ad-10f8-4e69-8d90-609cdd72580e@intel.com \
--to=yu.c.chen@intel.com \
--cc=Dave.Martin@arm.com \
--cc=babu.moger@amd.com \
--cc=fenghuay@nvidia.com \
--cc=hongyu.ning@intel.com \
--cc=icheng@nvidia.com \
--cc=james.morse@arm.com \
--cc=kaihengf@nvidia.com \
--cc=kobak@nvidia.com \
--cc=kristinc@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=newtonl@nvidia.com \
--cc=reinette.chatre@intel.com \
--cc=shuah@kernel.org \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox