FreeBSD Bugzilla – Attachment 176831 Details for
Bug 214369
FreeBSD-current, ioctl() invalid arguments on microcode update
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-HBSD-increase-UCODE_SIZE_MAX-from-32kB-to-128kb-in-s.patch
0001-HBSD-increase-UCODE_SIZE_MAX-from-32kB-to-128kb-in-s.patch (text/plain), 1.27 KB, created by
op
on 2016-11-09 21:09:05 UTC
(
hide
)
Description:
0001-HBSD-increase-UCODE_SIZE_MAX-from-32kB-to-128kb-in-s.patch
Filename:
MIME Type:
Creator:
op
Created:
2016-11-09 21:09:05 UTC
Size:
1.27 KB
patch
obsolete
>From 26927cd68d1c14e17b1040b16032198247f72a30 Mon Sep 17 00:00:00 2001 >From: Oliver Pinter <oliver.pinter@hardenedbsd.org> >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 <oliver.pinter@hardenedbsd.org> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 214369
: 176831