]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: Allow specify SIMD width via kernel parameters
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 2 Oct 2025 14:39:07 +0000 (22:39 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 2 Oct 2025 14:39:07 +0000 (22:39 +0800)
commit5dcddd268a8d434e0ca562b7bbca3642226ba213
tree5415a8e7faf1f6373870f7e3b400a122f0851bbc
parent98662be7ef20d2b88b598f72e7ce9b6ac26a40f9
LoongArch: Allow specify SIMD width via kernel parameters

For power saving or debugging purpose, we usually want to limit the SIMD
(LSX/LASX) usage on a rich feature platform. So allow specify SIMD width
via kernel parameters "simd=".

Allowed values of "simd=" are any integers, and recommended values are:
0: Disable all SIMD features;
128: Enable at most 128bit SIMD features;
256: Enable at most 256bit SIMD features;
-1(default): Enable as many as possible SIMD features automatically.

Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kernel/cpu-probe.c