Skip to content

Instantly share code, notes, and snippets.

@reyk
Created June 7, 2016 13:47
  • Star 21 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save reyk/80dca43c8bcfa76d2a7ff147ea64d442 to your computer and use it in GitHub Desktop.
OpenBSD 6.0-beta (GENERIC.MP-vmm) #5: Fri Jun 3 16:44:43 CEST 2016
reyk@bsd.plumbing:/usr/src/sys/arch/amd64/compile/GENERIC.MP-vmm
real mem = 17024200704 (16235MB)
avail mem = 16503730176 (15739MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7bfb000 (65 entries)
bios0: vendor LENOVO version "N1FET38W (1.12 )" date 03/30/2016
bios0: LENOVO 20FBCTO1WW
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP TCPA SSDT SSDT TPM2 UEFI SSDT SSDT ECDT HPET APIC MCFG SSDT SSDT DBGP DBG2 BOOT BATB SLIC SSDT SSDT MSDM DMAR ASF! FPDT UEFI
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) PXSX(S4) PXSX(S4) PXSX(S4) EXP9(S4) PXSX(S4) XHCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpihpet0 at acpi0: 23999999 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2495.18 MHz
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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
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 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2494.19 MHz
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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2494.19 MHz
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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz, 2494.19 MHz
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,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SENSOR,ARAT
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
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 (EXP1)
acpiprt5 at acpi0: bus 4 (EXP3)
acpiprt6 at acpi0: bus 5 (EXP5)
acpiprt7 at acpi0: bus -1 (EXP9)
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI
acpipwrres1 at acpi0: PG00, resource for PEG0
acpipwrres2 at acpi0: PG01, resource for PEG1
acpipwrres3 at acpi0: PG02, resource for PEG2
acpipwrres4 at acpi0: WRST
acpipwrres5 at acpi0: WRST
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
"LEN0071" at acpi0 not configured
"LEN0058" at acpi0 not configured
"INT3F0D" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "00HW028" serial 2618 type LiP oem "LGC"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C60" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"MSFT0101" at acpi0 not configured
"INT3394" at acpi0 not configured
acpivideo0 at acpi0: GFX0
acpivout at acpivideo0 not configured
cpu0: Enhanced SpeedStep 2495 MHz: speeds: 2701, 2700, 2600, 2500, 2300, 2100, 1900, 1800, 1600, 1400, 1300, 1100, 800, 700, 600, 400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x08
"Intel HD Graphics 520" rev 0x07 at pci0 dev 2 function 0 not configured
"Intel Skylake GMM" rev 0x00 at pci0 dev 8 function 0 not configured
"Intel 100 Series ISH" rev 0x21 at pci0 dev 19 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
"Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
pci1 at ppb0 bus 2
"Realtek RTS525A Card Reader" rev 0x01 at pci1 dev 0 function 0 not configured
ppb1 at pci0 dev 28 function 2 "Intel 100 Series PCIE" rev 0xf1: msi
pci2 at ppb1 bus 4
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 8260" rev 0x3a, msi
ppb2 at pci0 dev 28 function 4 "Intel 100 Series PCIE" rev 0xf1: msi
pci3 at ppb2 bus 5
nvme0 at pci3 dev 0 function 0 "Samsung NVMe" rev 0x01: msi, NVMe 1.1
nvme0: SAMSUNG MZVKV512HAJH-000L1, firmware 6L0QBXX7, serial ABCDEFGH012345
scsibus1 at nvme0: 1 targets
sd0 at scsibus1 targ 0 lun 0: <NVMe, SAMSUNG MZVKV512, 6L0Q> SCSI4 0/direct fixed
sd0: 488386MB, 512 bytes/sector, 1000215217 sectors
pcib0 at pci0 dev 31 function 0 "Intel 100 Series LPC" rev 0x21
"Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
azalia0 at pci0 dev 31 function 3 "Intel 100 Series HD Audio" rev 0x21: msi
azalia0: codecs: Conexant/0x5111, Intel/0x2809, using Conexant/0x5111
audio0 at azalia0
ichiic0 at pci0 dev 31 function 4 "Intel 100 Series SMBus" rev 0x21: apic 2 int 16
iic0 at ichiic0
em0 at pci0 dev 31 function 6 "Intel I219-LM" rev 0x21: msi, address 54:ee:75:12:34:56
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb0 at mainbus0
wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
ugen0 at uhub0 port 7 "Intel product 0x0a2b" rev 2.00/0.01 addr 2
uvideo0 at uhub0 port 8 configuration 1 interface 0 "Chicony Electronics Co.,Ltd. Integrated Camera" rev 2.00/0.22 addr 3
video0 at uvideo0
ugen1 at uhub0 port 9 "Validity Sensors product 0x0090" rev 2.00/1.64 addr 4
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd1: 487108MB, 512 bytes/sector, 997598704 sectors
root on sd1a (4ee8f413bac4a019.a) swap on sd1b dump on sd1b
iwm0: hw rev 0x200, fw ver 16.242414.0, address 44:85:00:12:34:56
@reyk
Copy link
Author

reyk commented Jun 7, 2016

OpenBSD on the Lenovo Thinkpad X1 Carbon 2016

This is the 4th Generation X1 Carbon based on the Intel Skylake chipset. You need OpenBSD 6.0-beta (-current) or later.

  • Overall, it is a very nice, light, and fast laptop. I really like it.
  • Wireless iwm(4) 8260 is supported with the latest driver changes by stsp@. The connection is sometimes not stable or the firmware shows errors when switching the AP configuration. But stsp@ is actively working on improving it!
  • My laptop has a NVMe disk which is supported by dlg@'s new nvme(4) driver and works just fine (I'm using it with softraid crypto which partially undoes the performance benefits but it is still amazingly fast).
  • Booting from UEFI is supported and recommended to get efifb(4) (see below).
  • vmm(4) works if enabled in the kernel.
  • USB3 via xhci(4) works.
  • I didn't test video(4) and I'm not aware of any other issues.

Problems:

  • There is a bug with the timers in relation to power management: if the laptop boots up in low performance mode (the AC is not plugged in), the kernel runs into a timeout when polling the CPU information on startup which prevents it from fetching all the CPU information that is required by vmm(4) to attach. Bumping the timeout helps but a real solution hasn't been found yet (is delay(9) not working correctly?).
  • It has a Micro SD slot on the back but the integrated Realtek RTS525A card reader is NOT supported yet (rtsx(4) fails to initialize it).
  • inteldrm(4) is NOT supported so you have to use either vesa(4) or wsfb(4). I highly recommend wsfb(4) over vesa(4) as it doesn't need direct hardware access (machdep.allowaperture is not needed). The same situation happened with every previous generation of inteldrm(4) so I expect it to be supported any time soon. wsfb(4) works fine and fast for me (see below).
  • Due to missing inteldrm(4) support, suspend and hibernate is not working either. The good side is that it boots very fast.

Configuration:

I'm using X in full resolution of 2560x1440 with wsfb (backed by efifb(4)). I configured my X session for HiDPI (retina), so I had to calculate and set DisplaySize in xorg.conf to get the correct DPI. With my configuration below, most but not all fonts display correctly. A few widgets still have tiny fonts.

  • /etc/xorg.conf
Section "Monitor"
    Identifier "default monitor"
    DisplaySize 311 170
EndSection

Section "Device"
    Identifier "default device"
    Driver "wsfb"
EndSection

Section "Screen"
    Identifier "default screen"
    Device "default device"
    Monitor "default monitor"
EndSection
  • Added to ~/.xession
export GDK_DPI_SCALE=1.5
  • Added to ~/.Xdefaults
xterm*loginShell: true
xterm*reverseVideo: true
xterm*scrollBar: false
xterm*faceName: DejaVu Sans Mono
xterm*faceSize: 8
*font: -*-dejavu sans-medium-r-normal-*-22-*-*-*-*-*-*-*
*fontList: -*-dejavu sans-medium-r-normal-*-22-*-*-*-*-*-*-*
xpdf*initialZoom: page
  • I'm using Window Maker (since about 1997). It doesn't fully support HiDPI but it is possible to make it useable by tweaking the fonts. Some widgets are still tiny but window titles, menus etc. work fine.
$ grep -Eir "(font|iconsize)" GNUstep/Defaults/*
GNUstep/Defaults/WMGLOBAL:  SystemFont = "-*-dejavu sans-*-*-*-*-14-*-*-*-*-*-*-*";
GNUstep/Defaults/WMGLOBAL:  BoldSystemFont = "-*-dejavu sans-bold-*-*-*-14-*-*-*-*-*-*-*";
GNUstep/Defaults/WMGLOBAL:  DefaultFontSize = 14;
GNUstep/Defaults/WMRootMenu:    ("Font Chooser", EXEC, xfontsel),
GNUstep/Defaults/WindowMaker:  ClipTitleFont = "-*-dejavu sans-medium-r-normal-*-22-*-*-*-*-*-*-*";
GNUstep/Defaults/WindowMaker:  IconTitleFont = "-*-dejavu sans-medium-r-normal-*-22-*-*-*-*-*-*-*";
GNUstep/Defaults/WindowMaker:  MenuTitleFont = "-*-dejavu sans-medium-r-normal-*-22-*-*-*-*-*-*-*";
GNUstep/Defaults/WindowMaker:  IconSize = 96;
GNUstep/Defaults/WindowMaker:  MenuTextFont = "-*-dejavu sans light-extralight-r-normal-*-22-*-*-*-*-*-*-*";
GNUstep/Defaults/WindowMaker:  WindowTitleFont = "-*-dejavu sans-medium-r-normal-*-22-*-*-*-*-*-*-*";
GNUstep/Defaults/WindowMaker:  DisplayFont = "-*-dejavu sans light-extralight-r-normal-*-22-*-*-*-*-*-*-*";
  • In /etc/sysctl.conf I have to disable suspend when the lid is closed:
machdep.lidsuspend=0

@frenkel
Copy link

frenkel commented Jul 26, 2016

Can you boot it with CSM disabled in the EFI settings? The Skylake X260 only seems to boot correctly with it turned on (but in EFI mode). When turned off it hangs on a black screen when the kernel starts to init (right after boot loader).

@bfrancom
Copy link

Were you able to drive an external monitor with this laptop and wsfb?

@vegai
Copy link

vegai commented May 4, 2017

How's 6.1? Does suspend still break?

@reyk
Copy link
Author

reyk commented Jul 11, 2017

A quick update: -current and hopefully 6.2 now supports Skylake in inteldrm. Suspend and hibernate works as well, nvme(4) has been fixed to support it, so I can rm my wsfb xorg.conf and it just works with the defaults.

@nielsk
Copy link

nielsk commented Jul 11, 2017

Is using the latest snapshot enough or do I have to build current for getting Skylake-support?

@nielsk
Copy link

nielsk commented Jul 14, 2017

@reyk I am using a Thinkpad T460 and I have problems with the brightness-keys. They are not recognized by xev and don't do anything when I try to increase or lower the screen brightness. Do you have that problem also? How did you solve it?

@markand
Copy link

markand commented Oct 25, 2017

I also have a x1 carbon 4th gen and I'm in hurry to install OpenBSD on it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment