1. 09 2月, 2016 10 次提交
  2. 24 11月, 2015 1 次提交
  3. 23 11月, 2015 1 次提交
  4. 21 10月, 2015 5 次提交
    • B
      x86/microcode/intel: Move #ifdef DEBUG inside the function · c595ac2b
      Borislav Petkov 提交于
      ... and save us the stub.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Dave Jones <davej@codemonkey.org.uk>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Link: http://lkml.kernel.org/r/1445334889-300-6-git-send-email-bp@alien8.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
      c595ac2b
    • B
      x86/microcode/amd: Remove maintainers from comments · 6f7fc44b
      Borislav Petkov 提交于
      We have the MAINTAINERS file for that. Also, Andreas doesn't
      have the time for this work anymore.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Cc: Andreas Herrmann <herrmann.der.user@googlemail.com>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Dave Jones <davej@codemonkey.org.uk>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Link: http://lkml.kernel.org/r/1445334889-300-5-git-send-email-bp@alien8.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
      6f7fc44b
    • B
      x86/microcode: Remove modularization leftovers · 6b26e1bf
      Borislav Petkov 提交于
      Remove the remaining module functionality leftovers. Make
      "dis_ucode_ldr" an early_param and make it static again. Drop
      module aliases, autoloading table, description, etc.
      
      Bump version number, while at it.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Dave Jones <davej@codemonkey.org.uk>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Link: http://lkml.kernel.org/r/1445334889-300-4-git-send-email-bp@alien8.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
      6b26e1bf
    • B
      x86/microcode: Merge the early microcode loader · fe055896
      Borislav Petkov 提交于
      Merge the early loader functionality into the driver proper. The
      diff is huge but logically, it is simply moving code from the
      _early.c files into the main driver.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Dave Jones <davej@codemonkey.org.uk>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Link: http://lkml.kernel.org/r/1445334889-300-3-git-send-email-bp@alien8.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
      fe055896
    • B
      x86/microcode: Unmodularize the microcode driver · 9a2bc335
      Borislav Petkov 提交于
      Make CONFIG_MICROCODE a bool. It was practically a bool already anyway,
      since early loader was forcing it to =y.
      
      Regardless, there's no real reason to have something be a module which
      gets built-in on the majority of installations out there. And its not
      like there's noticeable change in functionality - we still can load late
      microcode - just the module glue disappears.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      Cc: Andy Lutomirski <luto@amacapital.net>
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Cc: Borislav Petkov <bp@alien8.de>
      Cc: Brian Gerst <brgerst@gmail.com>
      Cc: Dave Jones <davej@codemonkey.org.uk>
      Cc: Denys Vlasenko <dvlasenk@redhat.com>
      Cc: H. Peter Anvin <hpa@zytor.com>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Tony Luck <tony.luck@intel.com>
      Link: http://lkml.kernel.org/r/1445334889-300-2-git-send-email-bp@alien8.deSigned-off-by: NIngo Molnar <mingo@kernel.org>
      9a2bc335
  5. 12 10月, 2015 2 次提交
  6. 06 8月, 2015 1 次提交
  7. 21 7月, 2015 1 次提交
  8. 07 6月, 2015 2 次提交
  9. 18 5月, 2015 4 次提交
  10. 11 5月, 2015 1 次提交
  11. 06 5月, 2015 3 次提交
  12. 31 3月, 2015 1 次提交
  13. 03 3月, 2015 8 次提交
    • B
      x86/microcode/intel: Fix printing of microcode blobs in show_saved_mc() · a858b5e5
      Borislav Petkov 提交于
      When doing
      
        echo 1 > /sys/devices/system/cpu/microcode/reload
      
      in order to reload microcode, I get:
      
        microcode: Total microcode saved: 1
        BUG: using smp_processor_id() in preemptible [00000000] code: bash/2606
        caller is debug_smp_processor_id+0x17/0x20
        CPU: 1 PID: 2606 Comm: bash Not tainted 3.19.0-rc7+ #9
        Hardware name: LENOVO 2320CTO/2320CTO, BIOS G2ET86WW (2.06 ) 11/13/2012
         ffffffff81a4266d ffff8802131db808 ffffffff81666588 0000000000000007
         0000000000000001 ffff8802131db838 ffffffff812e6eef ffff8802131db868
         00000000000306a9 0000000000000010 0000000000000015 ffff8802131db848
        Call Trace:
         dump_stack
         check_preemption_disabled
         debug_smp_processor_id
         show_saved_mc
         ? save_microcode.constprop.8
         save_mc_for_early
         ? print_context_stack
         ? dump_trace
         ? __bfs
         ? mark_held_locks
         ? get_page_from_freelist
         ? trace_hardirqs_on_caller
         ? trace_hardirqs_on
         ? __alloc_pages_nodemask
         ? __get_vm_area_node
         ? map_vm_area
         ? __vmalloc_node_range
         ? generic_load_microcode
         generic_load_microcode
         ? microcode_fini_cpu
         request_microcode_fw
         reload_store
         dev_attr_store
         sysfs_kf_write
         kernfs_fop_write
         vfs_write
         ? sysret_check
         SyS_write
         system_call_fastpath
        microcode: CPU1: sig=0x306a9, pf=0x10, rev=0x15
        microcode: mc_saved[0]: sig=0x306a9, pf=0x12, rev=0x1b, toal size=0x3000, date = 2014-05-29
      
      because we're using smp_processor_id() in preemtible context. And we
      don't really need to use it there because the microcode container we're
      dumping is global and CPU-specific info is irrelevant.
      
      While at it, make pr_* stuff use "microcode: " prefix for easier
      grepping and document how to enable the DEBUG build.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      a858b5e5
    • B
      x86/microcode/intel: Check scan_microcode()'s retval · 4f1f605c
      Borislav Petkov 提交于
      ... and do not attempt to load anything in case of error.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      4f1f605c
    • B
      x86/microcode/intel: Sanitize microcode_pointer() · 140f74fc
      Borislav Petkov 提交于
      Shorten variable names and rename it to what it does.
      
      No functionality change.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      140f74fc
    • B
      x86/microcode/intel: Move mc arg last in get_matching_{microcode|sig} · e3d8f674
      Borislav Petkov 提交于
      ... arguments list so that it comes more natural for those functions to
      have the signature, processor flags and revision together, before the
      rest of the args.
      
      No functionality change.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      e3d8f674
    • B
      x86/microcode/intel: Simplify generic_load_microcode_early() · 9e02bb46
      Borislav Petkov 提交于
      * remove state variable and out label
      * get rid of completely unused mc_size
      * shorten variable names
      * get rid of local variables
      * don't do assignments in local var declarations for less cluttered code
      * finally rename it to the shorter and perfectly fine load_microcode_early()
      
      No functionality change.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      9e02bb46
    • B
      x86/microcode: Consolidate family,model, ... code · 58ce8d6d
      Borislav Petkov 提交于
      ... to the header. Split the family acquiring function into a
      main one, doing CPUID and a helper which computes the extended
      family and is used in multiple places. Get rid of the locally-grown
      get_x86_{family,model}().
      
      While at it, rename local variables to something more descriptive and
      vertically align assignments for better readability.
      
      There should be no functionality change resulting from this patch.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      58ce8d6d
    • B
      x86/microcode/intel: Rename update_match_revision() · 4f5e5f2b
      Borislav Petkov 提交于
      ... to revision_is_newer() and push it up into the header and make it an
      inline function.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      4f5e5f2b
    • B
      x86/microcode/intel: Sanitize _save_mc() · c868570e
      Borislav Petkov 提交于
      Shorten local variable names for better readability and flatten loop
      indentation levels.
      
      No functionality change.
      Signed-off-by: NBorislav Petkov <bp@suse.de>
      c868570e