FreeBSD-current, ioctl() invalid arguments on microcode update

From: Subbsd <subbsd_at_gmail.com>
Date: Wed, 9 Nov 2016 00:10:45 +0300
Hello,

Not sure about FreeBSD 11 or 10, but when you try to use cpuctl(4) and
Intel microcode from
http://git.exherbo.org/summer/packages/firmware/intel-microcode/index.html
this causes an error.

CC for maintainer of sysutils/devcpu-data, but not sure this is port
problem. Possible KPI was changed?

if the problem is complex, may be necessary to mark the port not compatible with

.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1200000
IGNORE= does not support FreeBSD versions < 12.0
.endif

How to reproduce:

% make -C /usr/ports/sysutils/devcpu-data install && service
microcode_update onestart

log:

Updating cpucodes...
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl0 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl0 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl1 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl1 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl2 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl2 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl3 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl3 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl4 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl4 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl5 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl5 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl6 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl6 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl7 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
/usr/local/share/cpucontrol/m36506e3_0000009d_0000009e.fw: updating
cpu /dev/cpuctl7 from rev 0x55 to rev 0x9e... failed.
cpucontrol: ioctl(): Invalid argument
Done.
Received on Tue Nov 08 2016 - 20:10:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC