函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\microcode\amd.c Create Date:2022-07-27 09:09:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:AMD 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:

函数原型:static enum ucode_state request_microcode_amd(int cpu, struct device *device, bool refresh_fw)

返回类型:enum ucode_state

参数:

类型参数名称
intcpu
struct device *device
boolrefresh_fw
891  fw_name[36]等于"amd-ucode/microcode_amd.bin"
892  c等于cpu_data(cpu)
893  bsp等于Index into per_cpu list: 恒等于Index into per_cpu list:
894  ret等于UCODE_NFOUND
898  如果非refresh_fw或非bsp则返回:UCODE_OK
901  如果CPU family 大于等于0x15则snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
904  如果request_firmware_direct( & fw, (constchar * )fw_name, device)则
905  pr_debug("failed to load file %s\n", fw_name)
906  转到:out
909  ret等于UCODE_ERROR
910  如果非Check whether there is a valid microcode container file at the beginning* of @buf of size @buf_size. Set @early to use this function in the early path.则转到:fw_release
913  ret等于load_microcode_amd(bsp, CPU family , data, size)
915  fw_release :
916  release_firmware(fw)
918  out :
919  返回:ret