• Jan Beulich's avatar
    [PATCH] fix x86 microcode driver handling of multiple matching revisions · ba528f28
    Jan Beulich authored
    When multiple updates matching a given CPU are found in the update file, the
    action taken by the microcode update driver was inappropriate:
    
    - when lower revision microcode was found before matching or higher revision
      one, the driver would needlessly complain that it would not downgrade the
      CPU
    - when microcode matching the currently installed revision was found before
      newer revision code, no update would actually take place
    
    To change this behavior, the driver now concludes about possibly updates and
    issues messages only when the entire input was parsed.
    
    Additionally, this adds back (in different places, and conditionalized upon
    a new module option) some messages removed by a previous patch.
    Signed-off-by: default avatarJan Beulich <jbeulich@novell.com>
    Cc: "Siddha, Suresh B" <suresh.b.siddha@intel.com>
    Cc: Tigran Aivazian <tigran_aivazian@symantec.com>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    ba528f28
microcode.c 16.3 KB