From: Mark Brown <broonie@kernel.org>
To: Yifan Wu <wuyifan50@huawei.com>
Cc: catalin.marinas@arm.com, will@kernel.org, shuah@kernel.org,
yeoreum.yun@arm.com, jonathan.cameron@huawei.com,
linux-arm-kernel@lists.infradead.org,
linux-kselftest@vger.kernel.org, linuxarm@huawei.com,
xiaqinxin@huawei.com, prime.zeng@hisilicon.com,
wangyushan12@huawei.com, xuwei5@huawei.com, fanghao11@huawei.com,
wangzhou1@hisilicon.com
Subject: Re: [PATCH 2/2] selftest/arm64: Fix sve2p1_sigill() to hwcap test
Date: Sat, 28 Feb 2026 13:39:09 +0000 [thread overview]
Message-ID: <aaLv_X7SihBUX5c_@sirena.co.uk> (raw)
In-Reply-To: <20260227031933.4103333-3-wuyifan50@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]
On Fri, Feb 27, 2026 at 11:19:33AM +0800, Yifan Wu wrote:
> The FEAT_SVE2p1 is indicated by ID_AA64ZFR0_EL1.SVEver. However,
> the BFADD requires the FEAT_SVE_B16B16, which is indicated by
> ID_AA64ZFR0_EL1.B16B16. This could cause the test to incorrectly
> fail on a CPU that supports FEAT_SVE2.1 but not FEAT_SVE_B16B16.
>
> LD1Q Gather load quadwords which is decoded from SVE encodings and
> implied by FEAT_SVE2p1.
Ah, good spot - I think my search for instructions to use got confused
by them mention of SVE2 in the description of BFADD. Since this is a
fix it should really be patch 1.
> - /* BFADD Z0.H, Z0.H, Z0.H */
> - asm volatile(".inst 0x65000000" : : : "z0");
> + /* LD1Q Z0.Q, P0/Z, Z0.D, X0 */
That should be:
LD1Q {Z0.Q}, P0/Z, [Z0.D, X0]
(the existing asm has some issues which we ought to get round fixing but
may as well keep the new stuff good.)
> + asm volatile(".inst 0xC400A000" : : : "z0");
Verified the decode with objdump. With the above change to the comment:
Reviewed-by: Mark Brown <broonie@kernel.org>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-02-28 13:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-27 3:19 [PATCH 0/2] selftests/arm64: Add cmpbr_sigill() and fix sve2p1_sigill() for hwcap test Yifan Wu
2026-02-27 3:19 ` [PATCH 1/2] selftests/arm64: Implement cmpbr_sigill() to " Yifan Wu
2026-02-28 13:23 ` Mark Brown
2026-03-02 3:50 ` wuyifan
2026-02-27 3:19 ` [PATCH 2/2] selftest/arm64: Fix sve2p1_sigill() " Yifan Wu
2026-02-28 13:39 ` Mark Brown [this message]
2026-03-02 3:40 ` wuyifan
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=aaLv_X7SihBUX5c_@sirena.co.uk \
--to=broonie@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=fanghao11@huawei.com \
--cc=jonathan.cameron@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=prime.zeng@hisilicon.com \
--cc=shuah@kernel.org \
--cc=wangyushan12@huawei.com \
--cc=wangzhou1@hisilicon.com \
--cc=will@kernel.org \
--cc=wuyifan50@huawei.com \
--cc=xiaqinxin@huawei.com \
--cc=xuwei5@huawei.com \
--cc=yeoreum.yun@arm.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