wscons.c chooses wrong variant for br layout

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

wscons.c chooses wrong variant for br layout

Diogo Galvao
When the "br" keyboard layout is chosen during install, keys like ç~"
work correctly on the console but X tries to load the "fr" variant along
with it, which is invalid for this layout, so it falls back to the
default keymap. This can be observed in the first Xorg.0.log below.

The variant seems to be configured in xenocara/xserver/config/wscons.c:

for (i = 0; kbdvar[i].val; i++)
    if ((wsenc & kbdvar[i].val) == kbdvar[i].val) {
        LogMessageVerb(X_INFO, 3, "wskbd: using variant %s\n",
                       kbdvar[i].name);
        input_options = input_option_new(input_options,
                                         "xkb_variant", kbdvar[i].name);
        break;
    }


That kbdvar array starts like this:

struct nameint kbdvar[] = {
    {KB_NODEAD | KB_SG, "de_nodeadkeys"},
    {KB_NODEAD | KB_SF, "fr_nodeadkeys"},
    {KB_SF, "fr"},


And in sys/dev/wscons/wsksymdef.h there is:

#define KB_SF 0x1000
...
#define KB_BR 0x1500


So the condition ((wsenc & kbdvar[i].val) == kbdvar[i].val) ends up
being true for KB_BR & KB_SF, therefore "fr" variant gets configured.
That bitmasking was introduced in revision 1.15 along with a bitmask for
choosing keyboard options:

https://cvsweb.openbsd.org/cgi-bin/cvsweb/xenocara/xserver/config/wscons.c#rev1.15

I used this small patch to get back part of the old behavior:


Index: xserver/config/wscons.c
===================================================================
RCS file: /cvs/xenocara/xserver/config/wscons.c,v
retrieving revision 1.22
diff -u -p -u -r1.22 wscons.c
--- xserver/config/wscons.c 30 Jul 2018 16:00:39 -0000 1.22
+++ xserver/config/wscons.c 1 Nov 2018 23:06:14 -0000
@@ -139,7 +139,7 @@ wscons_add_keyboard(void)
             break;
         }
     for (i = 0; kbdvar[i].val; i++)
-        if ((wsenc & kbdvar[i].val) == kbdvar[i].val) {
+        if (wsenc == kbdvar[i].val || KB_VARIANT(wsenc) == kbdvar[i].val) {
             LogMessageVerb(X_INFO, 3, "wskbd: using variant %s\n",
                            kbdvar[i].name);
             input_options = input_option_new(input_options,


This reverts just the part of the code related to the keyboard variant,
and now "fr" is no longer chosen by mistake for the "br" layout, as seen
in the second Xorg.0.log further below. However I'm not sure if it
brings back the problem previously fixed in revision 1.15, or if that
revision was originally intended to use bitmask only for xkb_options.

Could somebody please take a look so the "br" layout can get
automatically configured in X? What would be a more appropriate fix?

Thank you in advance.
Diogo Galvao


# wsconsctl keyboard.encoding
keyboard.encoding=br


/var/log/Xorg.0.log before the patch:

[ 40918.934] (WW) checkDevMem: failed to open /dev/xf86 and /dev/mem
(Operation not permitted)
Check that you have set 'machdep.allowaperture=1'
in /etc/sysctl.conf and reboot your machine
refer to xf86(4) for details
[ 40918.934] linear framebuffer access unavailable
[ 40918.979] (--) Using wscons driver on /dev/ttyC4
[ 40919.044]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[ 40919.044] X Protocol Version 11, Revision 0
[ 40919.044] Build Operating System: OpenBSD 6.4 amd64
[ 40919.044] Current Operating System: OpenBSD desktop.local 6.4
GENERIC.MP#364 amd64
[ 40919.045] Build Date: 25 October 2018  11:39:05PM
[ 40919.045]
[ 40919.045] Current version of pixman: 0.34.0
[ 40919.045] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 40919.045] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 40919.045] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov  1
18:29:50 2018
[ 40919.047] (==) Using config file: "/etc/X11/xorg.conf"
[ 40919.047] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d"
[ 40919.048] (==) No Layout section.  Using the first Screen section.
[ 40919.048] (==) No screen section available. Using defaults.
[ 40919.048] (**) |-->Screen "Default Screen Section" (0)
[ 40919.048] (**) |   |-->Monitor "<default monitor>"
[ 40919.049] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 40919.049] (==) Automatically adding devices
[ 40919.049] (==) Automatically enabling devices
[ 40919.049] (==) Not automatically adding GPU devices
[ 40919.049] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 40919.054] (**) FontPath set to:
/usr/local/share/fonts/,
/usr/local/share/fonts/iosevka/,
/usr/local/share/fonts/noto/,
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[ 40919.054] (==) ModulePath set to "/usr/X11R6/lib/modules"
[ 40919.054] (II) The server relies on wscons to provide the list of
input devices.
If no devices become available, reconfigure wscons or disable AutoAddDevices.
[ 40919.054] (II) Loader magic: 0xf3736271000
[ 40919.054] (II) Module ABI versions:
[ 40919.054] X.Org ANSI C Emulation: 0.4
[ 40919.054] X.Org Video Driver: 23.0
[ 40919.054] X.Org XInput driver : 24.1
[ 40919.054] X.Org Server Extension : 10.0
[ 40919.055] (--) PCI: (0:0:2:0) 8086:0412:1458:d000 rev 6, Mem @
0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[ 40919.055] (--) PCI:*(0:1:0:0) 10de:1184:3842:2774 rev 161, Mem @
0xf6000000/16777216, 0xe0000000/134217728, 0xe8000000/33554432, I/O @
0x0000e000/128
[ 40919.055] (II) LoadModule: "glx"
[ 40919.058] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[ 40919.064] (II) Module glx: vendor="X.Org Foundation"
[ 40919.064] compiled for 1.19.6, module version = 1.0.0
[ 40919.064] ABI class: X.Org Server Extension, version 10.0
[ 40919.064] (==) Matched wsfb as autoconfigured driver 0
[ 40919.064] (==) Assigned the driver to the xf86ConfigLayout
[ 40919.064] (II) LoadModule: "wsfb"
[ 40919.064] (II) Loading /usr/X11R6/lib/modules/drivers/wsfb_drv.so
[ 40919.065] (II) Module wsfb: vendor="X.Org Foundation"
[ 40919.065] compiled for 1.19.6, module version = 0.4.1
[ 40919.065] ABI class: X.Org Video Driver, version 23.0
[ 40919.065] (II) wsfb: driver for wsdisplay framebuffer: wsfb
[ 40919.065] (WW) Falling back to old probe method for wsfb
[ 40919.065] (II) wsfb(0): using default device
[ 40919.065] (II) wsfb(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 40919.065] (==) wsfb(0): Depth 24, (--) framebuffer bpp 32
[ 40919.065] (==) wsfb(0): RGB weight 888
[ 40919.065] (==) wsfb(0): Default visual is TrueColor
[ 40919.065] (==) wsfb(0): Using gamma correction (1.0, 1.0, 1.0)
[ 40919.065] (II) wsfb(0): Vidmem: 8100k
[ 40919.065] (==) wsfb(0): DPI set to (96, 96)
[ 40919.065] (**) wsfb(0): Using "Shadow Framebuffer"
[ 40919.065] (II) Loading sub module "shadow"
[ 40919.065] (II) LoadModule: "shadow"
[ 40919.067] (II) Loading /usr/X11R6/lib/modules/libshadow.so
[ 40919.068] (II) Module shadow: vendor="X.Org Foundation"
[ 40919.068] compiled for 1.19.6, module version = 1.1.0
[ 40919.068] ABI class: X.Org ANSI C Emulation, version 0.4
[ 40919.068] (II) Loading sub module "fb"
[ 40919.068] (II) LoadModule: "fb"
[ 40919.069] (II) Loading /usr/X11R6/lib/modules/libfb.so
[ 40919.069] (II) Module fb: vendor="X.Org Foundation"
[ 40919.069] compiled for 1.19.6, module version = 1.0.0
[ 40919.069] ABI class: X.Org ANSI C Emulation, version 0.4
[ 40919.069] (--) Depth 24 pixmap format is 32 bpp
[ 40919.076] (==) wsfb(0): Backing store enabled
[ 40919.079] (==) RandR enabled
[ 40919.089] (II) AIGLX: Screen 0 is not DRI2 capable
[ 40919.089] (EE) AIGLX: reverting to software rendering
[ 40919.124] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[ 40919.125] (II) IGLX: Loaded and initialized swrast
[ 40919.125] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 40919.317] (II) config/wscons: checking input device /dev/wskbd
[ 40919.317] (II) wskbd: using layout br
[ 40919.317] (II) wskbd: using variant fr
[ 40919.318] (II) LoadModule: "kbd"
[ 40919.319] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[ 40919.319] (II) Module kbd: vendor="X.Org Foundation"
[ 40919.319] compiled for 1.19.6, module version = 1.9.0
[ 40919.319] Module class: X.Org XInput Driver
[ 40919.319] ABI class: X.Org XInput driver, version 24.1
[ 40919.319] (II) Using input driver 'kbd' for '/dev/wskbd'
[ 40919.319] (**) /dev/wskbd: always reports core events
[ 40919.319] (**) /dev/wskbd: always reports core events
[ 40919.319] (**) Option "Protocol" "standard"
[ 40919.319] (**) Option "XkbRules" "base"
[ 40919.319] (**) Option "XkbModel" "pc105"
[ 40919.319] (**) Option "XkbLayout" "br"
[ 40919.319] (**) Option "XkbVariant" "fr"
[ 40919.319] (II) XINPUT: Adding extended input device "/dev/wskbd"
(type: KEYBOARD, id 6)
[ 40919.336] (EE) Error loading keymap /tmp/server-0.xkm
[ 40919.336] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[ 40919.860] (II) config/wscons: checking input device /dev/wsmouse
[ 40919.860] (II) LoadModule: "ws"
[ 40919.861] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[ 40919.861] (II) Module ws: vendor="X.Org Foundation"
[ 40919.861] compiled for 1.19.6, module version = 1.3.0
[ 40919.861] Module class: X.Org XInput Driver
[ 40919.861] ABI class: X.Org XInput driver, version 24.1
[ 40919.861] (II) Using input driver 'ws' for '/dev/wsmouse'
[ 40919.861] (**) /dev/wsmouse: always reports core events
[ 40919.861] (II) ws: /dev/wsmouse: debuglevel 0
[ 40919.861] (**) Option "Device" "/dev/wsmouse"
[ 40919.861] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[ 40919.861] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[ 40919.861] (**) ws: /dev/wsmouse: associated screen: 0
[ 40919.861] (II) ws: /dev/wsmouse: minimum x position: 0
[ 40919.861] (II) ws: /dev/wsmouse: maximum x position: 1919
[ 40919.861] (II) ws: /dev/wsmouse: minimum y position: 0
[ 40919.861] (II) ws: /dev/wsmouse: maximum y position: 1079
[ 40919.861] (==) ws: /dev/wsmouse: Buttons: 7
[ 40919.862] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[ 40919.862] (II) XINPUT: Adding extended input device "/dev/wsmouse"
(type: MOUSE, id 7)
[ 40919.862] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[ 40919.862] (**) /dev/wsmouse: (accel) acceleration profile 0
[ 40919.862] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[ 40919.862] (**) /dev/wsmouse: (accel) acceleration threshold: 4


/var/log/Xorg.0.log after the patch:


[    14.983] (WW) checkDevMem: failed to open /dev/xf86 and /dev/mem
(Operation not permitted)
Check that you have set 'machdep.allowaperture=1'
in /etc/sysctl.conf and reboot your machine
refer to xf86(4) for details
[    14.983] linear framebuffer access unavailable
[    14.996] (--) Using wscons driver on /dev/ttyC4
[    15.060]
X.Org X Server 1.19.6
Release Date: 2017-12-20
[    15.060] X Protocol Version 11, Revision 0
[    15.060] Build Operating System: OpenBSD 6.4 amd64
[    15.060] Current Operating System: OpenBSD desktop.local 6.4
GENERIC.MP#364 amd64
[    15.060] Build Date: 01 November 2018  07:15:34PM
[    15.060]
[    15.060] Current version of pixman: 0.34.0
[    15.060] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[    15.060] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    15.060] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov  1
19:46:29 2018
[    15.061] (==) Using config file: "/etc/X11/xorg.conf"
[    15.061] (==) Using system config directory
"/usr/X11R6/share/X11/xorg.conf.d"
[    15.063] (==) No Layout section.  Using the first Screen section.
[    15.063] (==) No screen section available. Using defaults.
[    15.063] (**) |-->Screen "Default Screen Section" (0)
[    15.063] (**) |   |-->Monitor "<default monitor>"
[    15.063] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[    15.063] (==) Automatically adding devices
[    15.063] (==) Automatically enabling devices
[    15.063] (==) Not automatically adding GPU devices
[    15.063] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    15.070] (**) FontPath set to:
/usr/local/share/fonts/,
/usr/local/share/fonts/iosevka/,
/usr/local/share/fonts/noto/,
/usr/X11R6/lib/X11/fonts/misc/,
/usr/X11R6/lib/X11/fonts/TTF/,
/usr/X11R6/lib/X11/fonts/OTF/,
/usr/X11R6/lib/X11/fonts/Type1/,
/usr/X11R6/lib/X11/fonts/100dpi/,
/usr/X11R6/lib/X11/fonts/75dpi/
[    15.070] (==) ModulePath set to "/usr/X11R6/lib/modules"
[    15.070] (II) The server relies on wscons to provide the list of
input devices.
If no devices become available, reconfigure wscons or disable AutoAddDevices.
[    15.071] (II) Loader magic: 0x120790371000
[    15.071] (II) Module ABI versions:
[    15.071] X.Org ANSI C Emulation: 0.4
[    15.071] X.Org Video Driver: 23.0
[    15.071] X.Org XInput driver : 24.1
[    15.071] X.Org Server Extension : 10.0
[    15.071] (--) PCI: (0:0:2:0) 8086:0412:1458:d000 rev 6, Mem @
0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[    15.071] (--) PCI:*(0:1:0:0) 10de:1184:3842:2774 rev 161, Mem @
0xf6000000/16777216, 0xe0000000/134217728, 0xe8000000/33554432, I/O @
0x0000e000/128
[    15.071] (II) LoadModule: "glx"
[    15.073] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[    15.083] (II) Module glx: vendor="X.Org Foundation"
[    15.083] compiled for 1.19.6, module version = 1.0.0
[    15.083] ABI class: X.Org Server Extension, version 10.0
[    15.083] (==) Matched wsfb as autoconfigured driver 0
[    15.083] (==) Assigned the driver to the xf86ConfigLayout
[    15.083] (II) LoadModule: "wsfb"
[    15.084] (II) Loading /usr/X11R6/lib/modules/drivers/wsfb_drv.so
[    15.084] (II) Module wsfb: vendor="X.Org Foundation"
[    15.084] compiled for 1.19.6, module version = 0.4.1
[    15.084] ABI class: X.Org Video Driver, version 23.0
[    15.084] (II) wsfb: driver for wsdisplay framebuffer: wsfb
[    15.084] (WW) Falling back to old probe method for wsfb
[    15.084] (II) wsfb(0): using default device
[    15.085] (II) wsfb(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[    15.085] (==) wsfb(0): Depth 24, (--) framebuffer bpp 32
[    15.085] (==) wsfb(0): RGB weight 888
[    15.085] (==) wsfb(0): Default visual is TrueColor
[    15.085] (==) wsfb(0): Using gamma correction (1.0, 1.0, 1.0)
[    15.085] (II) wsfb(0): Vidmem: 8100k
[    15.085] (==) wsfb(0): DPI set to (96, 96)
[    15.085] (**) wsfb(0): Using "Shadow Framebuffer"
[    15.085] (II) Loading sub module "shadow"
[    15.085] (II) LoadModule: "shadow"
[    15.086] (II) Loading /usr/X11R6/lib/modules/libshadow.so
[    15.087] (II) Module shadow: vendor="X.Org Foundation"
[    15.087] compiled for 1.19.6, module version = 1.1.0
[    15.087] ABI class: X.Org ANSI C Emulation, version 0.4
[    15.087] (II) Loading sub module "fb"
[    15.087] (II) LoadModule: "fb"
[    15.087] (II) Loading /usr/X11R6/lib/modules/libfb.so
[    15.088] (II) Module fb: vendor="X.Org Foundation"
[    15.088] compiled for 1.19.6, module version = 1.0.0
[    15.088] ABI class: X.Org ANSI C Emulation, version 0.4
[    15.088] (--) Depth 24 pixmap format is 32 bpp
[    15.090] (==) wsfb(0): Backing store enabled
[    15.092] (==) RandR enabled
[    15.101] (II) AIGLX: Screen 0 is not DRI2 capable
[    15.101] (EE) AIGLX: reverting to software rendering
[    15.120] (II) IGLX: enabled GLX_MESA_copy_sub_buffer
[    15.120] (II) IGLX: Loaded and initialized swrast
[    15.120] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[    15.213] (II) config/wscons: checking input device /dev/wskbd
[    15.213] (II) wskbd: using layout br
[    15.213] (II) LoadModule: "kbd"
[    15.214] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[    15.215] (II) Module kbd: vendor="X.Org Foundation"
[    15.215] compiled for 1.19.6, module version = 1.9.0
[    15.215] Module class: X.Org XInput Driver
[    15.215] ABI class: X.Org XInput driver, version 24.1
[    15.215] (II) Using input driver 'kbd' for '/dev/wskbd'
[    15.215] (**) /dev/wskbd: always reports core events
[    15.215] (**) /dev/wskbd: always reports core events
[    15.215] (**) Option "Protocol" "standard"
[    15.215] (**) Option "XkbRules" "base"
[    15.215] (**) Option "XkbModel" "pc105"
[    15.215] (**) Option "XkbLayout" "br"
[    15.215] (II) XINPUT: Adding extended input device "/dev/wskbd"
(type: KEYBOARD, id 6)
[    15.730] (II) config/wscons: checking input device /dev/wsmouse
[    15.730] (II) LoadModule: "ws"
[    15.731] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[    15.731] (II) Module ws: vendor="X.Org Foundation"
[    15.731] compiled for 1.19.6, module version = 1.3.0
[    15.731] Module class: X.Org XInput Driver
[    15.731] ABI class: X.Org XInput driver, version 24.1
[    15.731] (II) Using input driver 'ws' for '/dev/wsmouse'
[    15.731] (**) /dev/wsmouse: always reports core events
[    15.731] (II) ws: /dev/wsmouse: debuglevel 0
[    15.731] (**) Option "Device" "/dev/wsmouse"
[    15.731] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[    15.731] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[    15.731] (**) ws: /dev/wsmouse: associated screen: 0
[    15.732] (II) ws: /dev/wsmouse: minimum x position: 0
[    15.732] (II) ws: /dev/wsmouse: maximum x position: 1919
[    15.732] (II) ws: /dev/wsmouse: minimum y position: 0
[    15.732] (II) ws: /dev/wsmouse: maximum y position: 1079
[    15.732] (==) ws: /dev/wsmouse: Buttons: 7
[    15.732] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[    15.732] (II) XINPUT: Adding extended input device "/dev/wsmouse"
(type: MOUSE, id 7)
[    15.732] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[    15.732] (**) /dev/wsmouse: (accel) acceleration profile 0
[    15.732] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[    15.732] (**) /dev/wsmouse: (accel) acceleration threshold: 4


/var/run/dmesg.boot

OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8454737920 (8063MB)
avail mem = 8189231104 (7809MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xec130 (77 entries)
bios0: vendor American Megatrends Inc. version "F3" date 04/25/2014
bios0: Gigabyte Technology Co., Ltd. H97-D3H
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC FPDT SSDT SSDT SSDT MCFG HPET SSDT SSDT BGRT DMAR
acpi0: wakeup devices PEGP(S4) PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4)
PEG2(S4) PXSX(S4) RP01(S4) PXSX(S4) PXSX(S4) PXSX(S4) RP04(S4)
PXSX(S4) PXSX(S4) PXSX(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz, 3700.53 MHz, 06-3c-03
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz, 3700.00 MHz, 06-3c-03
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 4 (application processor)
cpu2: Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz, 3700.00 MHz, 06-3c-03
cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 6 (application processor)
cpu3: Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz, 3700.00 MHz, 06-3c-03
cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEG0)
acpiprt2 at acpi0: bus -1 (PEG1)
acpiprt3 at acpi0: bus -1 (PEG2)
acpiprt4 at acpi0: bus 2 (RP01)
acpiprt5 at acpi0: bus 3 (RP04)
acpiec0 at acpi0: not present
acpicpu0 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(500@67 mwait.1@0x10), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PG00, resource for PEG0
acpipwrres1 at acpi0: PG01, resource for PEG1
acpipwrres2 at acpi0: PG02, resource for PEG2
acpipwrres3 at acpi0: FN00, resource for FAN0
acpipwrres4 at acpi0: FN01, resource for FAN1
acpipwrres5 at acpi0: FN02, resource for FAN2
acpipwrres6 at acpi0: FN03, resource for FAN3
acpipwrres7 at acpi0: FN04, resource for FAN4
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 105 degC
acpicmos0 at acpi0
"INT33CA" at acpi0 not configured
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 3700 MHz: speeds: 3501, 3500, 3300, 3100,
2900, 2700, 2500, 2300, 2100, 2000, 1800, 1600, 1400, 1200, 1000, 800
MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x06
ppb0 at pci0 dev 1 function 0 "Intel Core 4G PCIE" rev 0x06: msi
pci1 at ppb0 bus 1
vendor "NVIDIA", unknown product 0x1184 (class display subclass VGA,
rev 0xa1) at pci1 dev 0 function 0 not configured
azalia0 at pci1 dev 0 function 1 vendor "NVIDIA", unknown product
0x0e0a rev 0xa1: msi
azalia0: no supported codecs
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 4600" rev 0x06
drm1 at inteldrm0
inteldrm0: msi
inteldrm0: 1024x768, 32bpp
wsdisplay1 at inteldrm0
wsdisplay1: screen 0-5 added (std, vt100 emulation)
azalia1 at pci0 dev 3 function 0 "Intel Core 4G HD Audio" rev 0x06: msi
xhci0 at pci0 dev 20 function 0 "Intel 9 Series xHCI" rev 0x00: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel 9 Series MEI" rev 0x00 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel I217-V" rev 0x00: msi, address
74:d4:35:a9:7e:a0
ehci0 at pci0 dev 26 function 0 "Intel 9 Series USB" rev 0x00: apic 8 int 16
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
azalia2 at pci0 dev 27 function 0 "Intel 9 Series HD Audio" rev 0x00: msi
azalia2: codecs: Realtek ALC1150
audio0 at azalia2
ppb1 at pci0 dev 28 function 0 "Intel 9 Series PCIE" rev 0xd0
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 3 "Intel 9 Series PCIE" rev 0xd0: msi
pci3 at ppb2 bus 3
ppb3 at pci3 dev 0 function 0 "Intel 82801BA Hub-to-PCI" rev 0x41
pci4 at ppb3 bus 4
ehci1 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x00: apic 8 int 23
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel H97 LPC" rev 0x00
ahci0 at pci0 dev 31 function 2 "Intel 9 Series AHCI" rev 0x00: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 6.0Gb/s
ahci0: port 2: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, Crucial_CT240M50, MU03> SCSI3
0/direct fixed naa.500a0751096111b1
sd0: 228936MB, 512 bytes/sector, 468862128 sectors, thin
sd1 at scsibus1 targ 1 lun 0: <ATA, ST2000DM001-1E61, SC48> SCSI3
0/direct fixed naa.5000c50066f6858e
sd1: 1907729MB, 512 bytes/sector, 3907029168 sectors
sd2 at scsibus1 targ 2 lun 0: <ATA, ST4000DM004-2CV1, 0001> SCSI3
0/direct fixed naa.5000c500b184be17
sd2: 3815447MB, 512 bytes/sector, 7814037168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 9 Series SMBus" rev 0x00: apic 8 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600
spdmem1 at iic0 addr 0x53: 4GB DDR3 SDRAM PC3-10600
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb0 at mainbus0: 1920x1080, 32bpp
wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
uhidev0 at uhub0 port 3 configuration 1 interface 0 "Corsair Corsair
K70R Gaming Keyboard" rev 2.00/1.05 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub0 port 3 configuration 1 interface 1 "Corsair Corsair
K70R Gaming Keyboard" rev 2.00/1.05 addr 2
uhidev1: iclass 3/0
uhid0 at uhidev1: input=4, output=0, feature=0
uhidev2 at uhub0 port 3 configuration 1 interface 2 "Corsair Corsair
K70R Gaming Keyboard" rev 2.00/1.05 addr 2
uhidev2: iclass 3/0
ukbd1 at uhidev2: 120 variable keys, 0 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev3 at uhub0 port 4 configuration 1 interface 0 "Corsair Corsair
M40 Gaming Mouse" rev 2.00/1.01 addr 3
uhidev3: iclass 3/1
ums0 at uhidev3: 16 buttons, Z dir
wsmouse0 at ums0 mux 0
uhidev4 at uhub0 port 4 configuration 1 interface 1 "Corsair Corsair
M40 Gaming Mouse" rev 2.00/1.01 addr 3
uhidev4: iclass 3/1
ukbd2 at uhidev4: 8 variable keys, 6 key codes
wskbd3 at ukbd2 mux 1
wskbd3: connecting to wsdisplay0
uhidev5 at uhub0 port 4 configuration 1 interface 2 "Corsair Corsair
M40 Gaming Mouse" rev 2.00/1.01 addr 3
uhidev5: iclass 3/0
uhid1 at uhidev5: input=4, output=0, feature=0
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
uhub4 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.00 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (9f661b025798fcc1.a) swap on sd0b dump on sd0b