Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1561006
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 10/13] x86/microcode/AMD: Check patch level only on the BSP |
| Date | 2017-01-17 21:50 +0100 |
| Message-ID | <t0IRz-3jt-3@gated-at.bofh.it> (permalink) |
| References | <t0FTI-1vq-27@gated-at.bofh.it> <t0G3p-1zz-49@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 17 Jan 2017, Borislav Petkov wrote:
> From: Borislav Petkov <bp@suse.de>
>
> Check final patch levels for AMD only on the BSP. This way, we decide
> early and only once whether to continue loading or to leave the loader
> disabled on such systems.
>
> Simplify a lot.
>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> void __init load_ucode_bsp(void)
> {
> - unsigned int vendor, cpuid_1_eax;
> + unsigned int cpuid_1_eax;
>
> if (check_loader_disabled_bsp())
> return;
>
> - vendor = x86_cpuid_vendor();
> cpuid_1_eax = native_cpuid_eax(1);
>
> - switch (vendor) {
> + switch (x86_cpuid_vendor()) {
> case X86_VENDOR_INTEL:
> if (x86_family(cpuid_1_eax) >= 6)
> load_ucode_intel_bsp();
> @@ -155,15 +195,14 @@ static bool check_loader_disabled_ap(void)
>
> void load_ucode_ap(void)
> {
> - unsigned int vendor, cpuid_1_eax;
> + unsigned int cpuid_1_eax;
>
> if (check_loader_disabled_ap())
> return;
>
> - vendor = x86_cpuid_vendor();
> cpuid_1_eax = native_cpuid_eax(1);
>
> - switch (vendor) {
> + switch (x86_cpuid_vendor()) {
> case X86_VENDOR_INTEL:
> if (x86_family(cpuid_1_eax) >= 6)
> load_ucode_intel_ap();
These two hunks look unrelated to $subject. Please seperate them out.
Thanks,
tglx
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 00/13] x86/microcode: 4.11 queue Borislav Petkov <bp@alien8.de> - 2017-01-17 18:50 +0100
[PATCH 12/13] x86/microcode/AMD: Simplify saving from initrd Borislav Petkov <bp@alien8.de> - 2017-01-17 18:50 +0100
Re: [PATCH 12/13] x86/microcode/AMD: Simplify saving from initrd Thomas Gleixner <tglx@linutronix.de> - 2017-01-17 22:20 +0100
[PATCH 11/13] x86/microcode/AMD: Unify load_ucode_amd_ap() Borislav Petkov <bp@alien8.de> - 2017-01-17 18:50 +0100
Re: [PATCH 11/13] x86/microcode/AMD: Unify load_ucode_amd_ap() Thomas Gleixner <tglx@linutronix.de> - 2017-01-17 22:00 +0100
Re: [PATCH 11/13] x86/microcode/AMD: Unify load_ucode_amd_ap() Thomas Gleixner <tglx@linutronix.de> - 2017-01-17 22:20 +0100
[PATCH 05/13] x86/microcode/AMD: Extend the container struct Borislav Petkov <bp@alien8.de> - 2017-01-17 18:50 +0100
Re: [PATCH 05/13] x86/microcode/AMD: Extend the container struct Thomas Gleixner <tglx@linutronix.de> - 2017-01-17 21:50 +0100
[PATCH 09/13] x86/microcode/AMD: Use find_microcode_in_initrd() Borislav Petkov <bp@alien8.de> - 2017-01-17 18:50 +0100
Re: [PATCH 09/13] x86/microcode/AMD: Use find_microcode_in_initrd() Thomas Gleixner <tglx@linutronix.de> - 2017-01-17 22:20 +0100
[PATCH 04/13] x86/microcode/AMD: Shorten function parameter's name Borislav Petkov <bp@alien8.de> - 2017-01-17 18:50 +0100
Re: [PATCH 04/13] x86/microcode/AMD: Shorten function parameter's name Thomas Gleixner <tglx@linutronix.de> - 2017-01-17 21:10 +0100
[PATCH 10/13] x86/microcode/AMD: Check patch level only on the BSP Borislav Petkov <bp@alien8.de> - 2017-01-17 18:50 +0100
Re: [PATCH 10/13] x86/microcode/AMD: Check patch level only on the BSP Thomas Gleixner <tglx@linutronix.de> - 2017-01-17 21:50 +0100
csiph-web