Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:apply_microcode_intel

Proto:static enum ucode_state apply_microcode_intel(int cpu)

Type:enum ucode_state

Parameter:

TypeParameterName
intcpu
792  uci = ucode_cpu_info + cpu
793  c = cpu_data(cpu)
794  bsp = Index into per_cpu list: == Index into per_cpu list:
801  If WARN_ON(These macros fold the SMP functionality into a single CPU system() != cpu) Then Return UCODE_ERROR
805  mc = find_patch(uci)
806  If Not mc Then
807  mc = mc
808  If Not mc Then Return UCODE_NFOUND
817  rev = intel_get_microcode_revision()
818  If rev >= rev Then
819  ret = UCODE_OK
820  Go to out
827  native_wbinvd()
830  wrmsrl(MSR_IA32_UCODE_WRITE, (unsignedlong)bits)
832  rev = intel_get_microcode_revision()
834  If rev != rev Then
835  pr_err("CPU%d update to revision 0x%x failed\n", cpu, rev)
837  Return UCODE_ERROR
840  If bsp && rev != prev_rev Then
841  pr_info("updated to revision 0x%x, date = %04x-%02x-%02x\n", rev, date & 0xffff, date >> 24, (date >> 16) & 0xff)
846  prev_rev = rev
849  ret = UCODE_UPDATED
851  out :
852  rev = rev
853  microcode = rev
856  If bsp Then microcode = rev
859  Return ret