* [PATCH] selftests/arm64: signal: fix inverted feature mask in diagnostics
@ 2026-11-14 8:10 Long Wei
2026-11-15 12:12 ` Mark Brown
2026-11-26 16:19 ` Catalin Marinas
0 siblings, 2 replies; 3+ messages in thread
From: Long Wei @ 2026-11-14 8:10 UTC (permalink / raw)
To: catalin.marinas, will, shuah
Cc: mark.rutland, broonie, kevin.brodsky, linux-arm-kernel,
linux-kselftest, hewenliang4, Long Wei
When a testcase is skipped because an incompatible CPU feature is
present, test_init() reports the feature set with:
feats_incompatible & ~feats_supported
That is the set of incompatible features which are *not* supported,
i.e. always empty, instead of the incompatible features which actually
triggered the skip. As a result the diagnostic prints an empty list and
gives no hint about why the test was skipped.
Use the supported set so the offending feature is reported:
feats_incompatible & feats_supported
Fixes: 32de73e89099 ("kselftest/arm64: signal: Allow tests to be incompatible with features")
Signed-off-by: Long Wei <longwei27@huawei.com>
---
tools/testing/selftests/arm64/signal/test_signals_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/arm64/signal/test_signals_utils.c b/tools/testing/selftests/arm64/signal/test_signals_utils.c
index 4b12dbd7669d..16036e06d6c1 100644
--- a/tools/testing/selftests/arm64/signal/test_signals_utils.c
+++ b/tools/testing/selftests/arm64/signal/test_signals_utils.c
@@ -365,7 +365,7 @@ int test_init(struct tdescr *td)
fprintf(stderr,
"Incompatible Features: [%s] supported\n",
feats_to_string(td->feats_incompatible &
- ~td->feats_supported));
+ td->feats_supported));
td->result = KSFT_SKIP;
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] selftests/arm64: signal: fix inverted feature mask in diagnostics
2026-11-14 8:10 [PATCH] selftests/arm64: signal: fix inverted feature mask in diagnostics Long Wei
@ 2026-11-15 12:12 ` Mark Brown
2026-11-26 16:19 ` Catalin Marinas
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-11-15 12:12 UTC (permalink / raw)
To: Long Wei
Cc: catalin.marinas, will, shuah, mark.rutland, kevin.brodsky,
linux-arm-kernel, linux-kselftest, hewenliang4
[-- Attachment #1: Type: text/plain, Size: 592 bytes --]
On Sat, Nov 14, 2026 at 04:10:13PM +0800, Long Wei wrote:
> When a testcase is skipped because an incompatible CPU feature is
> present, test_init() reports the feature set with:
>
> feats_incompatible & ~feats_supported
>
> That is the set of incompatible features which are *not* supported,
> i.e. always empty, instead of the incompatible features which actually
> triggered the skip. As a result the diagnostic prints an empty list and
> gives no hint about why the test was skipped.
Looks like a cut'n'paste error.
Reviewed-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] selftests/arm64: signal: fix inverted feature mask in diagnostics
2026-11-14 8:10 [PATCH] selftests/arm64: signal: fix inverted feature mask in diagnostics Long Wei
2026-11-15 12:12 ` Mark Brown
@ 2026-11-26 16:19 ` Catalin Marinas
1 sibling, 0 replies; 3+ messages in thread
From: Catalin Marinas @ 2026-11-26 16:19 UTC (permalink / raw)
To: Long Wei
Cc: will, shuah, mark.rutland, broonie, kevin.brodsky,
linux-arm-kernel, linux-kselftest, hewenliang4
On Sat, Nov 14, 2026 at 04:10:13PM +0800, Long Wei wrote:
> When a testcase is skipped because an incompatible CPU feature is
> present, test_init() reports the feature set with:
>
> feats_incompatible & ~feats_supported
>
> That is the set of incompatible features which are *not* supported,
> i.e. always empty, instead of the incompatible features which actually
> triggered the skip. As a result the diagnostic prints an empty list and
> gives no hint about why the test was skipped.
>
> Use the supported set so the offending feature is reported:
>
> feats_incompatible & feats_supported
>
> Fixes: 32de73e89099 ("kselftest/arm64: signal: Allow tests to be incompatible with features")
> Signed-off-by: Long Wei <longwei27@huawei.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-11-26 16:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-14 8:10 [PATCH] selftests/arm64: signal: fix inverted feature mask in diagnostics Long Wei
2026-11-15 12:12 ` Mark Brown
2026-11-26 16:19 ` Catalin Marinas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox