Function report |
Source Code:arch\x86\kernel\cpu\microcode\amd.c |
Create Date:2022-07-28 08:09:22 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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:
Proto:static enum ucode_state request_microcode_amd(int cpu, struct device *device, bool refresh_fw)
Type:enum ucode_state
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | cpu | |
| struct device * | device | |
| bool | refresh_fw |
| 891 | fw_name[36] = "amd-ucode/microcode_amd.bin" |
| 894 | ret = UCODE_NFOUND |
| 898 | If Not refresh_fw || Not bsp Then Return UCODE_OK |
| 904 | If request_firmware_direct( & fw, (constchar * )fw_name, device) Then |
| 909 | ret = UCODE_ERROR |
| 910 | If Not 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. Then Go to fw_release |
| 913 | ret = load_microcode_amd(bsp, CPU family , data, size) |
| 915 | fw_release : |
| 916 | release_firmware(fw) |
| 918 | out : |
| 919 | Return ret |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |