Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Early load occurs before we can vmalloc()

Proto:static bool apply_microcode_early_amd(unsigned int cpuid_1_eax, void *ucode, size_t size, bool save_patch)

Type:bool

Parameter:

TypeParameterName
unsigned intcpuid_1_eax
void *ucode
size_tsize
boolsave_patch
421  struct cont_desc desc = {0}
422  u8( * patch)[PATCH_MAX_SIZE]
425  bool ret = false
428  new_rev = __pa_nodebug( & ucode_new_rev)
429  patch = __pa_nodebug( & amd_ucode_patch)
435  cpuid_1_eax = cpuid_1_eax
437  Scan the ucode blob for the proper container as we can have multiple* containers glued together.
439  mc = mc
440  If Not mc Then Return ret
443  native_rdmsr(AMD64 MSRs. Not complete. See the architecture manual for a more* complete list., rev, dummy)
444  If rev >= patch_id Then Return ret
447  If Not __apply_microcode_amd(mc) Then
448  new_rev = patch_id
449  ret = true
451  If save_patch Then memcpy(patch, mc, min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, psize, PATCH_MAX_SIZE))
455  Return ret
Caller
NameDescribe
load_ucode_amd_bsp
load_ucode_amd_ap