[PATCH] x86/microcode/AMD: Support Ryzen (family 17h)

From: Guenter Roeck
Date: Sun Jun 11 2017 - 12:29:11 EST


Assume the maximum firmware size is the same as with family 16h.
Observed size is 3328 bytes for all currrently published microcode
versions for family 17h, which is below the maximum size for
family 16h (3458 bytes).

Signed-off-by: Guenter Roeck <linux@xxxxxxxxxxxx>
---
arch/x86/kernel/cpu/microcode/amd.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/x86/kernel/cpu/microcode/amd.c b/arch/x86/kernel/cpu/microcode/amd.c
index e9f4d762aa5b..53f78ea280d3 100644
--- a/arch/x86/kernel/cpu/microcode/amd.c
+++ b/arch/x86/kernel/cpu/microcode/amd.c
@@ -476,6 +476,7 @@ static unsigned int verify_patch_size(u8 family, u32 patch_size,
max_size = F15H_MPB_MAX_SIZE;
break;
case 0x16:
+ case 0x17:
max_size = F16H_MPB_MAX_SIZE;
break;
default:
--
2.7.4