OSDN Git Service

x86/CPU: Add support for Vortex CPUs
authorMarcos Del Sol Vives <marcos@orca.pet>
Sun, 17 Oct 2021 09:44:10 +0000 (11:44 +0200)
committerBorislav Petkov <bp@suse.de>
Thu, 21 Oct 2021 13:49:07 +0000 (15:49 +0200)
commit639475d434b88b58827e1aae601ed1853803f5be
treecc81c93c8ec0e1e151329de036ec4f2619cd03cf
parentf3f07ae425bc09039d9e0c73c86b76f95d9d5cd6
x86/CPU: Add support for Vortex CPUs

DM&P devices were not being properly identified, which resulted in
unneeded Spectre/Meltdown mitigations being applied.

The manufacturer states that these devices execute always in-order and
don't support either speculative execution or branch prediction, so
they are not vulnerable to this class of attack. [1]

This is something I've personally tested by a simple timing analysis
on my Vortex86MX CPU, and can confirm it is true.

Add identification for some devices that lack the CPUID product name
call, so they appear properly on /proc/cpuinfo.

¹https://www.ssv-embedded.de/doks/infos/DMP_Ann_180108_Meltdown.pdf

 [ bp: Massage commit message. ]

Signed-off-by: Marcos Del Sol Vives <marcos@orca.pet>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211017094408.1512158-1-marcos@orca.pet
arch/x86/Kconfig.cpu
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/vortex.c [new file with mode: 0644]