aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/amd.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-09 03:02:35 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-09 03:02:35 -0400
commit1236d6bb6e19fc72ffc6bbcdeb1bfefe450e54ee (patch)
tree47da3feee8e263e8c9352c85cf518e624be3c211 /arch/x86/kernel/cpu/amd.c
parent750b1a6894ecc9b178c6e3d0a1170122971b2036 (diff)
parent8a5776a5f49812d29fe4b2d0a2d71675c3facf3f (diff)
Merge 4.14-rc4 into staging-next
We want the staging/iio fixes in here as well to handle merge issues. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/kernel/cpu/amd.c')
-rw-r--r--arch/x86/kernel/cpu/amd.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 9862e2cd6d93..d58184b7cd44 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -763,6 +763,16 @@ static void init_amd_bd(struct cpuinfo_x86 *c)
763 } 763 }
764} 764}
765 765
766static void init_amd_zn(struct cpuinfo_x86 *c)
767{
768 /*
769 * Fix erratum 1076: CPB feature bit not being set in CPUID. It affects
770 * all up to and including B1.
771 */
772 if (c->x86_model <= 1 && c->x86_mask <= 1)
773 set_cpu_cap(c, X86_FEATURE_CPB);
774}
775
766static void init_amd(struct cpuinfo_x86 *c) 776static void init_amd(struct cpuinfo_x86 *c)
767{ 777{
768 early_init_amd(c); 778 early_init_amd(c);
@@ -791,6 +801,7 @@ static void init_amd(struct cpuinfo_x86 *c)
791 case 0x10: init_amd_gh(c); break; 801 case 0x10: init_amd_gh(c); break;
792 case 0x12: init_amd_ln(c); break; 802 case 0x12: init_amd_ln(c); break;
793 case 0x15: init_amd_bd(c); break; 803 case 0x15: init_amd_bd(c); break;
804 case 0x17: init_amd_zn(c); break;
794 } 805 }
795 806
796 /* Enable workaround for FXSAVE leak */ 807 /* Enable workaround for FXSAVE leak */