Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\amd.c Create Date:2022-07-28 07:58:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:cpu_has_amd_erratum

Proto:static bool cpu_has_amd_erratum(struct cpuinfo_x86 *cpu, const int *erratum)

Type:bool

Parameter:

TypeParameterName
struct cpuinfo_x86 *cpu
const int *erratum
1125  osvw_id = erratum++
1129  If osvw_id >= 0 && osvw_id < 65536 && cpu_has(cpu, OS Visible Workaround ) Then
1133  rdmsrl(MSR_AMD64_OSVW_ID_LENGTH, osvw_len)
1134  If osvw_id < osvw_len Then
1139  Return osvw_bits & 1ULL << (osvw_id & 0x3f)
1144  ms = x86_model << 4 | x86_stepping
1145  When range = erratum++ cycle
1146  If CPU family == AMD_MODEL_RANGE_FAMILY(range) && ms >= AMD_MODEL_RANGE_START(range) && ms <= AMD_MODEL_RANGE_END(range) Then Return true
1151  Return false
Caller
NameDescribe
early_init_amd
init_amd_gh
init_amd