Re: [PATCH] arm64/sme: Add hwcap for Scalable Matrix Extension

From: Tianjia Zhang
Date: Thu Apr 14 2022 - 22:30:43 EST


Hi Marc,

On 4/14/22 8:06 PM, Marc Zyngier wrote:
On Thu, 14 Apr 2022 12:55:44 +0100,
Tianjia Zhang <tianjia.zhang@xxxxxxxxxxxxxxxxx> wrote:

Allow userspace to detect support for SME (Scalable Matrix Extension)
by providing a hwcap for it, using the official feature name FEAT_SME,
declared in ARM DDI 0487H.a specification.

Err, not just that, for sure. What does this patch buys you on its
own, given that the kernel doesn't implement anything yet and that all
the SME instructions will UNDEF?

[1] is the real deal.

Thanks,

M.

[1] https://lore.kernel.org/r/20220408114328.1401034-1-broonie@xxxxxxxxxx


Thanks for your suggestion, I have a very simple scenario, I can see
whether the SME feature is supported in cpuinfo, it seems impractical at
the moment.

Kind regards,
Tianjia