Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 920474 - profiles: CPU_FLAGS_ARM: add SVE flag
Summary: profiles: CPU_FLAGS_ARM: add SVE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Profiles (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard: arm64: HWCAP_SVE (1 << 22)
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-12-21 10:37 UTC by Sam James
Modified: 2024-01-02 16:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-21 10:37:16 UTC
libaom-3.8.0 supports SVE.

We don't have a CPU_FLAGS_ARM_ flag for it right now, so I can't wire it up in the ebuild.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-12-21 10:53:12 UTC
Is SVE specific to arm64?  I can't find it in linux/arch/arm/include/uapi/asm/hwcap.h.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-12-21 10:56:30 UTC
That said, there's actually a bunch of SVE-related flags:

#define HWCAP_SVE		(1 << 22)
#define HWCAP2_SVE2		(1 << 1)
#define HWCAP2_SVEAES		(1 << 2)
#define HWCAP2_SVEPMULL		(1 << 3)
#define HWCAP2_SVEBITPERM	(1 << 4)
#define HWCAP2_SVESHA3		(1 << 5)
#define HWCAP2_SVESM4		(1 << 6)
#define HWCAP2_SVEI8MM		(1 << 9)
#define HWCAP2_SVEF32MM		(1 << 10)
#define HWCAP2_SVEF64MM		(1 << 11)
#define HWCAP2_SVEBF16		(1 << 12)
#define HWCAP2_SVE_EBF16	(1UL << 33)
#define HWCAP2_SVE2P1		(1UL << 36)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-12-21 10:59:53 UTC
Yeah, it should be. It's "scalable vector extension" (https://www.kernel.org/doc/Documentation/arm64/sve.txt). I don't think anything else supports it.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-12-29 17:45:55 UTC
Yeah, I see libaom checks for this hwcap as well.
Comment 5 Larry the Git Cow gentoo-dev 2024-01-02 16:44:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9715ada9623e750f019492d7ce0df443966aa23e

commit 9715ada9623e750f019492d7ce0df443966aa23e
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-12-29 17:58:16 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-02 16:44:04 +0000

    profiles/desc: Add cpu_flags_arm_sve
    
    Closes: https://bugs.gentoo.org/920474
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/34542
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 profiles/desc/cpu_flags_arm.desc | 1 +
 1 file changed, 1 insertion(+)