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:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:load_microcode_amd

Proto:static enum ucode_state load_microcode_amd(bool save, u8 family, const u8 *data, size_t size)

Type:enum ucode_state

Parameter:

TypeParameterName
boolsave
u8family
const u8 *data
size_tsize
844  free_equiv_cpu_table()
846  ret = __load_microcode_amd(family, data, size)
847  If ret != UCODE_OK Then
848  cleanup()
849  Return ret
852  p = find_patch(0)
853  If Not p Then
854  Return ret
855  Else
856  If microcode >= patch_id Then Return ret
859  ret = UCODE_NEW
863  If Not save Then Return ret
866  memset(amd_ucode_patch, 0, PATCH_MAX_SIZE)
867  memcpy(amd_ucode_patch, Intel uses only this one , min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, ksize( Intel uses only this one ), PATCH_MAX_SIZE))
869  Return ret
Caller
NameDescribe
save_microcode_in_initrd_amd
request_microcode_amdAMD microcode firmware naming convention, up to family 15h they are in* the legacy file:* amd-ucode/microcode_amd.bin* This legacy file is always smaller than 2K in size.* Beginning with family 15h, they are in family-specific firmware files: