From 26927cd68d1c14e17b1040b16032198247f72a30 Mon Sep 17 00:00:00 2001 From: Oliver Pinter Date: Wed, 9 Nov 2016 22:03:18 +0100 Subject: [PATCH] HBSD: increase UCODE_SIZE_MAX from 32kB to 128kb in sys/dev/cpuctl/cpuctl.c THe lastest microcode update for Intel 6th (Skylake) generation CPU is bigger than the current hardcoded limit in cpuctl. -rw-r--r-- 1 root wheel 97280 Nov 9 21:35 m36506e3_0000009d_0000009e.fw -rw-r--r-- 1 root wheel 97280 Nov 9 21:35 mc0406e3_0000009d_0000009e.fw So, bump this limit to 128kB, to allow to perform the microcode update. Tested-on: 10-STABLE Sponsored-by: HardenedBSD Project FreeBSD-PR: 214369 Signed-off-by: Oliver Pinter CC: subbsd@gmail.com CC: kib@FreeBSD.org CC: jhb@FreeBSD.org --- sys/dev/cpuctl/cpuctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cpuctl/cpuctl.c b/sys/dev/cpuctl/cpuctl.c index d801f17..6df74b9 100644 --- a/sys/dev/cpuctl/cpuctl.c +++ b/sys/dev/cpuctl/cpuctl.c @@ -63,7 +63,7 @@ static d_ioctl_t cpuctl_ioctl; # define DPRINTF(...) #endif -#define UCODE_SIZE_MAX (32 * 1024) +#define UCODE_SIZE_MAX (128 * 1024) static int cpuctl_do_msr(int cpu, cpuctl_msr_args_t *data, u_long cmd, struct thread *td); -- 2.10.1