FreeBSDDesktop / DEPRECATED-freebsd-base-graphics

Fork of FreeBSD's base repository to work on graphics-stack-related projects
Other
49 stars 13 forks source link

X1 carbon 3rd gen Thinkpad does not wake up after `acpiconf -s 3` #145

Open raichoo opened 7 years ago

raichoo commented 7 years ago

Hi I'm running a recent version of the drm-next branch (8563ee90e) on my Thinkpad. When sending it to sleep with acpiconf -s 3 it won't wake up properly. The fan is spinning up but the screen stays black.

I'm not quite sure how to report this issue in a helpful way but I'll some information about this machine and maybe that helps.

I hope this helps a bit. If I can provide any more information to make this more robust please let me know.

Kind regards, raichoo


dmesg output:

``` Copyright (c) 1992-2017 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 8563ee90e(drm-next): Sat May 6 07:57:29 CEST 2017 raichoo@amy:/usr/obj/usr/src/sys/RAICHOO amd64 FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) VT(efifb): resolution 2560x1440 CPU: Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz (2394.51-MHz K8-class CPU) Origin="GenuineIntel" Id=0x306d4 Family=0x6 Model=0x3d Stepping=4 Features=0xbfebfbff Features2=0x7ffafbbf AMD Features=0x2c100800 AMD Features2=0x121 Structured Extended Features=0x21c27ab XSAVE Features=0x1 VT-x: (disabled in BIOS) PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory = 8589934592 (8192 MB) avail memory = 8137674752 (7760 MB) Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 hardware threads random: unblocking device. ioapic0 irqs 0-39 on motherboard random: entropy device external interface kbd1 at kbdmux0 module_register_init: MOD_LOAD (vesa, 0xffffffff80a24520, 0) error 19 random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" netmap: loaded module nexus0 cryptosoft0: on motherboard acpi0: on motherboard acpi_ec0: port 0x62,0x66 on acpi0 acpi0: Power Button (fixed) cpu0: on acpi0 cpu1: on acpi0 cpu2: on acpi0 cpu3: on acpi0 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 440 Event timer "HPET2" frequency 14318180 Hz quality 440 Event timer "HPET3" frequency 14318180 Hz quality 440 Event timer "HPET4" frequency 14318180 Hz quality 440 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 Timecounter "ACPI-safe" frequency 3579545 Hz quality 850 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1808-0x180b on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x3000-0x303f mem 0xe0000000-0xe0ffffff,0xc0000000-0xdfffffff irq 16 at device 2.0 on pci0 vgapci0: Boot video device hdac0: mem 0xe1230000-0xe1233fff at device 3.0 on pci0 pci0: at device 20.0 (no driver attached) pci0: at device 22.0 (no driver attached) em0: port 0x3060-0x307f mem 0xe1200000-0xe121ffff,0xe123d000-0xe123dfff at device 25.0 on pci0 em0: attach_pre capping queues at 1 em0: using 1024 tx descriptors and 1024 rx descriptors em0: msix_init qsets capped at 1 em0: PCIY_MSIX capability not found; or rid 0 == 0. em0: Using an MSI interrupt em0: allocated for 1 tx_queues em0: allocated for 1 rx_queues em0: Ethernet address: 54:ee:75:61:c1:98 em0: netmap queues/slots: TX 1/1024, RX 1/1024 hdac1: mem 0xe1234000-0xe1237fff at device 27.0 on pci0 pcib1: at device 28.0 on pci0 pcib1: [GIANT-LOCKED] pcib2: at device 28.1 on pci0 pci1: on pcib2 iwm0: mem 0xe1100000-0xe1101fff at device 0.0 on pci1 pcib3: at device 28.5 on pci0 pci2: on pcib3 ahci0: mem 0xe1000000-0xe1001fff at device 0.0 on pci2 ahci0: AHCI v1.30 with 1 6Gbps ports, Port Multiplier not supported ahcich0: at channel 0 on ahci0 ehci0: mem 0xe123c000-0xe123c3ff at device 29.0 on pci0 usbus0: EHCI version 1.0 usbus0 on ehci0 isab0: at device 31.0 on pci0 isa0: on isab0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 battery0: on acpi0 acpi_acad0: on acpi0 est0: on cpu0 est1: on cpu1 est2: on cpu2 est3: on cpu3 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec hdacc0: at cad 0 on hdac0 usbus0: 480Mbps High Speed USB v2.0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 3 on hdaa0 hdacc1: at cad 0 on hdac1 hdaa1: at nid 1 on hdacc1 pcm1: at nid 20,21 and 26 on hdaa1 pcm2: at nid 18 on hdaa1 ugen0.1: at usbus0 uhub0: on usbus0 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-2 ATA SATA 3.x device ada0: Serial Number S1WUNYAG607087 ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 488386MB (1000215216 512 byte sectors) iwm0: hw rev 0x210, fw ver 17.352738.0, address 4c:34:88:29:6c:ce SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! SMP: AP CPU #2 Launched! Timecounter "TSC-low" frequency 1197256194 Hz quality 1000 Trying to mount root from zfs:zroot/ROOT/default []... Root mount waiting for: usbus0 Root mount waiting for: usbus0 uhub0: 3 ports with 3 removable, self powered ugen0.2: at usbus0 uhub1 on uhub0 uhub1: on usbus0 Root mount waiting for: usbus0 uhub1: 8 ports with 8 removable, self powered wlan0: Ethernet address: 4c:34:88:29:6c:ce iwm0: iwm_update_edca: called iwm0: iwm_update_edca: called wlan0: link state changed to UP [drm] Initialized drmn0: on vgapci0 vgapci0: child drmn0 requested pci_enable_io vgapci0: child drmn0 requested pci_enable_io [drm] Memory usable by graphics device = 4096M [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [drm] Driver supports precise vblank timestamp query. [drm] Connector eDP-1: get mode from tunables: [drm] - kern.vt.fb.modes.eDP-1 [drm] - kern.vt.fb.default_mode [drm] Connector DP-1: get mode from tunables: [drm] - kern.vt.fb.modes.DP-1 [drm] - kern.vt.fb.default_mode [drm] Connector HDMI-A-1: get mode from tunables: [drm] - kern.vt.fb.modes.HDMI-A-1 [drm] - kern.vt.fb.default_mode [drm] Connector DP-2: get mode from tunables: [drm] - kern.vt.fb.modes.DP-2 [drm] - kern.vt.fb.default_mode [drm] Connector HDMI-A-2: get mode from tunables: [drm] - kern.vt.fb.modes.HDMI-A-2 [drm] - kern.vt.fb.default_mode [drm:i915_setup_sysfs] RC6 residency sysfs setup failed [drm] Initialized i915 1.6.0 20160919 for drmn on minor 0 WARN_ON(!msg->buffer != !msg->size) WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size) WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size) WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size) WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size)WARN_ON(!msg->buffer != !msg->size) [drm:intel_dp_link_training_channel_equalization] failed to update link training VT: Replacing driver "efifb" with new "fb". start FB_INFO: type=11 height=1440 width=2560 depth=32 cmsize=16 size=14745600 pbase=0xc0000000 vbase=0xffffffff81a10000 name=drmn0 flags=0x0 stride=10240 bpp=32 cmap[0]=0 cmap[1]=7f0000 cmap[2]=7f00 cmap[3]=c4a000 end FB_INFO drmn0: fb0: inteldrmfb frame buffer device [drm:intel_dp_aux_ch] dp_aux_ch receive error status 0x661500a9 [drm] Reducing the compressed framebuffer size. This may lead to less power savings than a non-reduced-size. Try to increase stolen memory size if available in BIOS. ```

devinfo -rv output:

``` nexus0 cryptosoft0 apic0 ram0 I/O memory addresses: 0x0-0x53fff 0x59000-0x8bfff 0x100000-0xaa7aefff 0xacdff000-0xacdfffff 0x100000000-0x24dffffff acpi0 Interrupt request lines: 9 I/O ports: 0x10-0x1f 0x24-0x25 0x28-0x29 0x2c-0x2d 0x30-0x31 0x34-0x35 0x38-0x39 0x3c-0x3d 0x50-0x53 0x72-0x77 0x90-0x9f 0xa4-0xa5 0xa8-0xa9 0xac-0xad 0xb0-0xb5 0xb8-0xb9 0xbc-0xbd 0x800-0x87f 0x880-0x8ff 0x900-0x97f 0x980-0x9ff 0xa00-0xa7f 0xa80-0xaff 0xb00-0xb7f 0xb80-0xbff 0x15e0-0x15ef 0x1600-0x167f 0x1800-0x189f I/O memory addresses: 0xc0000-0xc3fff 0xc4000-0xc7fff 0xc8000-0xcbfff 0xcc000-0xcffff 0xd0000-0xd3fff 0xd4000-0xd7fff 0xd8000-0xdbfff 0xdc000-0xdffff 0xe0000-0xe3fff 0xe4000-0xe7fff 0xe8000-0xebfff 0xec000-0xeffff 0xf0000-0xfffff 0xb0000000-0xb000ffff 0xb0010000-0xb001ffff 0xf8000000-0xfbffffff 0xfec00000-0xfed3ffff 0xfed45000-0xfed4bfff 0xfed4c000-0xffffffff acpi_ec0 pnpinfo _HID=PNP0C09 _UID=0 at handle=\_SB_.PCI0.LPC_.EC__ I/O ports: 0x62 0x66 cpu0 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU0 acpi_throttle0 acpi_perf0 est0 p4tcc0 cpufreq0 cpu1 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU1 acpi_throttle1 acpi_perf1 est1 p4tcc1 cpufreq1 cpu2 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU2 acpi_throttle2 acpi_perf2 est2 p4tcc2 cpufreq2 cpu3 pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU3 acpi_throttle3 acpi_perf3 est3 p4tcc3 cpufreq3 unknown pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU4 unknown pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU5 unknown pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU6 unknown pnpinfo _HID=none _UID=0 at handle=\_PR_.CPU7 pci_link0 pnpinfo _HID=PNP0C0F _UID=1 at handle=\_SB_.LNKA pci_link1 pnpinfo _HID=PNP0C0F _UID=2 at handle=\_SB_.LNKB pci_link2 pnpinfo _HID=PNP0C0F _UID=3 at handle=\_SB_.LNKC pci_link3 pnpinfo _HID=PNP0C0F _UID=4 at handle=\_SB_.LNKD pci_link4 pnpinfo _HID=PNP0C0F _UID=5 at handle=\_SB_.LNKE pci_link5 pnpinfo _HID=PNP0C0F _UID=6 at handle=\_SB_.LNKF pci_link6 pnpinfo _HID=PNP0C0F _UID=7 at handle=\_SB_.LNKG pci_link7 pnpinfo _HID=PNP0C0F _UID=8 at handle=\_SB_.LNKH acpi_sysresource0 pnpinfo _HID=PNP0C01 _UID=0 at handle=\_SB_.MEM_ acpi_lid0 pnpinfo _HID=PNP0C0D _UID=0 at handle=\_SB_.LID_ acpi_button0 pnpinfo _HID=PNP0C0E _UID=0 at handle=\_SB_.SLPB pcib0 pnpinfo _HID=PNP0A08 _UID=0 at handle=\_SB_.PCI0 I/O ports: 0xcf8-0xcff pci0 PCI domain 0 bus numbers: 0 hostb0 pnpinfo vendor=0x8086 device=0x1604 subvendor=0x17aa subdevice=0x2227 class=0x060000 at slot=0 function=0 dbsf=pci0:0:0:0 vgapci0 pnpinfo vendor=0x8086 device=0x1616 subvendor=0x17aa subdevice=0x2227 class=0x030000 at slot=2 function=0 dbsf=pci0:0:2:0 handle=\_SB_.PCI0.VID_ Interrupt request lines: 16 I/O ports: 0x3000-0x303f I/O memory addresses: 0xc0000000-0xdfffffff 0xe0000000-0xe0ffffff drm0 drm5 backlight0 drm_dp_aux_dev0 i2c0 drm6 drm_dp_aux_dev1 i2c1 drm7 drm8 drm_dp_aux_dev2 i2c2 drm9 drmn0 drm64 drm128 drm1 drm2 drm3 drm4 graphics0 fbd0 hdac0 pnpinfo vendor=0x8086 device=0x160c subvendor=0x17aa subdevice=0x2227 class=0x040300 at slot=3 function=0 dbsf=pci0:0:3:0 handle=\_SB_.PCI0.B0D3 Interrupt request lines: 264 I/O memory addresses: 0xe1230000-0xe1233fff hdacc0 pnpinfo vendor=0x8086 device=0x2808 revision=0x00 stepping=0x00 at cad=0 hdaa0 pnpinfo type=0x01 subsystem=0x80860101 at nid=1 pcm0 at nid=3 unknown pnpinfo vendor=0x8086 device=0x9cb1 subvendor=0x17aa subdevice=0x2227 class=0x0c0330 at slot=20 function=0 dbsf=pci0:0:20:0 handle=\_SB_.PCI0.XHCI I/O memory addresses: 0xe1220000-0xe122ffff unknown pnpinfo vendor=0x8086 device=0x9cba subvendor=0x17aa subdevice=0x2227 class=0x078000 at slot=22 function=0 dbsf=pci0:0:22:0 I/O memory addresses: 0xe1239000-0xe123901f em0 pnpinfo vendor=0x8086 device=0x15a3 subvendor=0x17aa subdevice=0x2227 class=0x020000 at slot=25 function=0 dbsf=pci0:0:25:0 handle=\_SB_.PCI0.IGBE Interrupt request lines: 265 I/O ports: 0x3060-0x307f I/O memory addresses: 0xe1200000-0xe121ffff 0xe123d000-0xe123dfff hdac1 pnpinfo vendor=0x8086 device=0x9ca0 subvendor=0x17aa subdevice=0x2227 class=0x040300 at slot=27 function=0 dbsf=pci0:0:27:0 handle=\_SB_.PCI0.HDEF Interrupt request lines: 266 I/O memory addresses: 0xe1234000-0xe1237fff hdacc1 pnpinfo vendor=0x10ec device=0x0292 revision=0x00 stepping=0x01 at cad=0 hdaa1 pnpinfo type=0x01 subsystem=0x17aa2227 at nid=1 pcm1 at nid=20,21,26 pcm2 at nid=18 pcib1 pnpinfo vendor=0x8086 device=0x9c92 subvendor=0x17aa subdevice=0x2227 class=0x060400 at slot=28 function=0 dbsf=pci0:0:28:0 handle=\_SB_.PCI0.EXP1 Interrupt request lines: 267 PCI domain 0 bus numbers: 3 pcib2 pnpinfo vendor=0x8086 device=0x9c94 subvendor=0x17aa subdevice=0x2227 class=0x060400 at slot=28 function=1 dbsf=pci0:0:28:1 handle=\_SB_.PCI0.EXP2 I/O memory addresses: 0xe1100000-0xe11fffff PCI domain 0 bus numbers: 4 pci1 pcib2 bus numbers: 4 iwm0 pnpinfo vendor=0x8086 device=0x095b subvendor=0x8086 subdevice=0x5210 class=0x028000 at slot=0 function=0 dbsf=pci0:4:0:0 Interrupt request lines: 268 pcib2 memory window: 0xe1100000-0xe1101fff pcib3 pnpinfo vendor=0x8086 device=0x9c9a subvendor=0x17aa subdevice=0x2227 class=0x060400 at slot=28 function=5 dbsf=pci0:0:28:5 handle=\_SB_.PCI0.EXP6 I/O memory addresses: 0xe1000000-0xe10fffff PCI domain 0 bus numbers: 10 pci2 pcib3 bus numbers: 10 ahci0 pnpinfo vendor=0x144d device=0xa801 subvendor=0x144d subdevice=0xa801 class=0x010601 at slot=0 function=0 dbsf=pci0:10:0:0 handle=\_SB_.PCI0.EXP6.PCES Interrupt request lines: 269 270 271 272 273 274 275 276 pcib3 memory window: 0xe1000000-0xe1001fff ahcich0 at channel=0 I/O memory addresses: 0xe1000100-0xe100017f ehci0 pnpinfo vendor=0x8086 device=0x9ca6 subvendor=0x17aa subdevice=0x2227 class=0x0c0320 at slot=29 function=0 dbsf=pci0:0:29:0 handle=\_SB_.PCI0.EHC1 Interrupt request lines: 23 I/O memory addresses: 0xe123c000-0xe123c3ff usbus0 uhub0 uhub1 pnpinfo vendor=0x8087 product=0x8001 devclass=0x09 devsubclass=0x00 devproto=0x01 sernum="" release=0x0003 mode=host intclass=0x09 ints at bus=0 hubaddr=1 port=1 devaddr=2 interface=0 ugen=ugen0.2 isab0 pnpinfo vendor=0x8086 device=0x9cc3 subvendor=0x17aa subdevice=0x2227 class=0x060100 at slot=31 function=0 dbsf=pci0:0:31:0 handle=\_SB_.PCI0.LPC_ isa0 sc0 vga0 fdc0 ppc0 uart0 uart1 unknown pnpinfo vendor=0x8086 device=0x9ca2 subvendor=0x17aa subdevice=0x2227 class=0x0c0500 at slot=31 function=3 dbsf=pci0:0:31:3 handle=\_SB_.PCI0.SMBU I/O ports: 0xefa0-0xefbf I/O memory addresses: 0xe1238000-0xe12380ff unknown pnpinfo vendor=0x8086 device=0x9ca4 subvendor=0x17aa subdevice=0x2227 class=0x118000 at slot=31 function=6 dbsf=pci0:0:31:6 I/O memory addresses: 0xe123b000-0xe123bfff acpi_sysresource1 pnpinfo _HID=PNP0C02 _UID=0 at handle=\_SB_.PCI0.LPC_.SIO_ unknown pnpinfo _HID=PNP0000 _UID=0 at handle=\_SB_.PCI0.LPC_.PIC_ I/O ports: 0x20-0x21 0xa0-0xa1 0x4d0-0x4d1 attimer0 pnpinfo _HID=PNP0100 _UID=0 at handle=\_SB_.PCI0.LPC_.TIMR Interrupt request lines: 0 I/O ports: 0x40-0x43 hpet0 pnpinfo _HID=PNP0103 _UID=0 at handle=\_SB_.PCI0.LPC_.HPET Interrupt request lines: 256 257 258 259 260 261 262 263 ACPI I/O memory addresses: 0xfed00000-0xfed003ff atdma0 pnpinfo _HID=PNP0200 _UID=0 at handle=\_SB_.PCI0.LPC_.DMAC DMA request lines: 4 I/O ports: 0x0-0xf 0x80-0x8f 0xc0-0xdf unknown pnpinfo _HID=PNP0800 _UID=0 at handle=\_SB_.PCI0.LPC_.SPKR I/O ports: 0x61 fpupnp0 pnpinfo _HID=PNP0C04 _UID=0 at handle=\_SB_.PCI0.LPC_.FPU_ I/O ports: 0xf0 atrtc0 pnpinfo _HID=PNP0B00 _UID=0 at handle=\_SB_.PCI0.LPC_.RTC_ Interrupt request lines: 8 I/O ports: 0x70-0x71 atkbdc0 pnpinfo _HID=LEN0071 _UID=0 at handle=\_SB_.PCI0.LPC_.KBD_ Interrupt request lines: 1 I/O ports: 0x60 0x64 atkbd0 psm0 Interrupt request lines: 12 psmcpnp0 pnpinfo _HID=LEN0048 _UID=0 at handle=\_SB_.PCI0.LPC_.MOU_ unknown pnpinfo _HID=PNP0C09 _UID=0 at handle=\_SB_.PCI0.LPC_.EC__ (disabled) unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.LPC_.EC__.PUBS battery0 pnpinfo _HID=PNP0C0A _UID=0 at handle=\_SB_.PCI0.LPC_.EC__.BAT0 unknown pnpinfo _HID=PNP0C0A _UID=1 at handle=\_SB_.PCI0.LPC_.EC__.BAT1 (disabled) acpi_acad0 pnpinfo _HID=ACPI0003 _UID=0 at handle=\_SB_.PCI0.LPC_.EC__.AC__ unknown pnpinfo _HID=LEN0068 _UID=0 at handle=\_SB_.PCI0.LPC_.EC__.HKEY unknown pnpinfo _HID=SMO1200 _UID=1 at handle=\_SB_.PCI0.LPC_.TPM_ I/O memory addresses: 0xfed40000-0xfed44fff unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEG_.NVP3 unknown pnpinfo _HID=none _UID=0 at handle=\_SB_.PCI0.PEG_.NVP2 unknown pnpinfo _HID=BCM2F1A _UID=0 at handle=\_SB_.PCI0.SMBU.NFC_ (disabled) acpi_sysresource2 pnpinfo _HID=PNP0C02 _UID=1 at handle=\_SB_.PCI0.PDRC unknown pnpinfo _HID=PNP0C14 _UID=1 at handle=\_SB_.WMI1 unknown pnpinfo _HID=PNP0C14 _UID=2 at handle=\_SB_.WMI2 unknown pnpinfo _HID=PNP0C14 _UID=3 at handle=\_SB_.WMI3 unknown pnpinfo _HID=INT340F _UID=0 at handle=\_SB_.PCCD acpi_tz0 pnpinfo _HID=none _UID=0 at handle=\_TZ_.THM0 acpi_timer0 pnpinfo unknown at unknown ACPI I/O ports: 0x1808-0x180b ```

pciconf -clv output:

``` hostb0@pci0:0:0:0: class=0x060000 card=0x222717aa chip=0x16048086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = 'Broadwell-U Host Bridge -OPI' class = bridge subclass = HOST-PCI cap 09[e0] = vendor (length 12) Intel cap 0 version 1 vgapci0@pci0:0:2:0: class=0x030000 card=0x222717aa chip=0x16168086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = 'HD Graphics 5500' class = display subclass = VGA cap 05[90] = MSI supports 1 message cap 01[d0] = powerspec 2 supports D0 D3 current D0 cap 13[a4] = PCI Advanced Features: FLR TP hdac0@pci0:0:3:0: class=0x040300 card=0x222717aa chip=0x160c8086 rev=0x09 hdr=0x00 vendor = 'Intel Corporation' device = 'Broadwell-U Audio Controller' class = multimedia subclass = HDA cap 01[50] = powerspec 2 supports D0 D3 current D0 cap 05[60] = MSI supports 1 message enabled with 1 message cap 10[70] = PCI-Express 1 root endpoint max data 128(128) FLR NS none0@pci0:0:20:0: class=0x0c0330 card=0x222717aa chip=0x9cb18086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP USB xHCI Controller' class = serial bus subclass = USB cap 01[70] = powerspec 2 supports D0 D3 current D0 cap 05[80] = MSI supports 8 messages, 64 bit none1@pci0:0:22:0: class=0x078000 card=0x222717aa chip=0x9cba8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP MEI Controller' class = simple comms cap 01[50] = powerspec 3 supports D0 D3 current D0 cap 05[8c] = MSI supports 1 message, 64 bit em0@pci0:0:25:0: class=0x020000 card=0x222717aa chip=0x15a38086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Ethernet Connection (3) I218-V' class = network subclass = ethernet cap 01[c8] = powerspec 2 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message cap 13[e0] = PCI Advanced Features: FLR TP hdac1@pci0:0:27:0: class=0x040300 card=0x222717aa chip=0x9ca08086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP High Definition Audio Controller' class = multimedia subclass = HDA cap 01[50] = powerspec 3 supports D0 D3 current D0 cap 05[60] = MSI supports 1 message, 64 bit enabled with 1 message pcib1@pci0:0:28:0: class=0x060400 card=0x222717aa chip=0x9c928086 rev=0xe3 hdr=0x01 vendor = 'Intel Corporation' device = 'Wildcat Point-LP PCI Express Root Port' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x0(x1) speed 0.0(5.0) ASPM L0s/L1(L0s/L1) slot 0 power limit 0 mW HotPlug(empty) surprise cap 05[80] = MSI supports 1 message enabled with 1 message cap 0d[90] = PCI Bridge card=0x222717aa cap 01[a0] = powerspec 3 supports D0 D3 current D0 pcib2@pci0:0:28:1: class=0x060400 card=0x222717aa chip=0x9c948086 rev=0xe3 hdr=0x01 vendor = 'Intel Corporation' device = 'Wildcat Point-LP PCI Express Root Port' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x1(x1) speed 2.5(5.0) ASPM L1(L0s/L1) slot 2 power limit 100 mW cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x222717aa cap 01[a0] = powerspec 3 supports D0 D3 current D0 ecap 0000[100] = unknown 0 ecap 001e[200] = unknown 1 pcib3@pci0:0:28:5: class=0x060400 card=0x222717aa chip=0x9c9a8086 rev=0xe3 hdr=0x01 vendor = 'Intel Corporation' device = 'Wildcat Point-LP PCI Express Root Port' class = bridge subclass = PCI-PCI cap 10[40] = PCI-Express 2 root port max data 128(128) link x4(x4) speed 5.0(5.0) ASPM L1(L0s/L1) slot 5 power limit 250 mW cap 05[80] = MSI supports 1 message cap 0d[90] = PCI Bridge card=0x222717aa cap 01[a0] = powerspec 3 supports D0 D3 current D0 ecap 0000[100] = unknown 0 ecap 001e[200] = unknown 1 ehci0@pci0:0:29:0: class=0x0c0320 card=0x222717aa chip=0x9ca68086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP USB EHCI Controller' class = serial bus subclass = USB cap 01[50] = powerspec 3 supports D0 D3 current D0 cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14 cap 13[98] = PCI Advanced Features: FLR TP isab0@pci0:0:31:0: class=0x060100 card=0x222717aa chip=0x9cc38086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP LPC Controller' class = bridge subclass = PCI-ISA cap 09[e0] = vendor (length 12) Intel cap 1 version 0 features: AMT, 4 PCI-e x1 slots none2@pci0:0:31:3: class=0x0c0500 card=0x222717aa chip=0x9ca28086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP SMBus Controller' class = serial bus subclass = SMBus none3@pci0:0:31:6: class=0x118000 card=0x222717aa chip=0x9ca48086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Wildcat Point-LP Thermal Management Controller' class = dasp cap 01[50] = powerspec 3 supports D0 D3 current D0 cap 05[80] = MSI supports 1 message iwm0@pci0:4:0:0: class=0x028000 card=0x52108086 chip=0x095b8086 rev=0x59 hdr=0x00 vendor = 'Intel Corporation' device = 'Wireless 7265' class = network cap 01[c8] = powerspec 3 supports D0 D3 current D0 cap 05[d0] = MSI supports 1 message, 64 bit enabled with 1 message cap 10[40] = PCI-Express 2 endpoint max data 128(128) FLR RO NS link x1(x1) speed 2.5(2.5) ASPM L1(L1) ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected ecap 0003[140] = Serial 1 4c3488ffff296cce ecap 0018[14c] = LTR 1 ecap 001e[154] = unknown 1 ahci0@pci0:10:0:0: class=0x010601 card=0xa801144d chip=0xa801144d rev=0x01 hdr=0x00 vendor = 'Samsung Electronics Co Ltd' class = mass storage subclass = SATA cap 01[40] = powerspec 3 supports D0 D3 current D0 cap 05[50] = MSI supports 8 messages, 64 bit enabled with 8 messages cap 10[70] = PCI-Express 2 endpoint max data 128(128) FLR RO NS link x4(x4) speed 5.0(8.0) ASPM L1(L1) ecap 0001[100] = AER 2 0 fatal 0 non-fatal 0 corrected ecap 0003[148] = Serial 1 0000000000000000 ecap 0004[158] = Power Budgeting 1 ecap 0019[168] = PCIe Sec 1 lane errors 0 ecap 0018[188] = LTR 1 ecap 001e[190] = unknown 1 ```

nomadlogic commented 7 years ago

I am seeing a similar issue - if possible would it be possible for you to test this out on 390597ec789? that's the last revision of drm-next that i'm able to wake from S3 on my kabylake. i believe the issue is in the upstream CURRENT code, sometime shortly after the merge that happened in the above commit.

i'm having a terrible time finding the exact commit which caused the problems upstream, or how to fully debug the problem. there is a thread on freebsd-current@ which may be worth bumping though, just so other devs know that this problem is effecting multiple peeps.

raichoo commented 7 years ago

Yes, this seems to work. Sadly, I'm not able to control screen brightness anymore which worked with more recent commits.

EDIT: I was wrong, I can control it. I just had Fn-Lock on ^^. I should really go to bed.

raichoo commented 7 years ago

Machine just woke up after a good night of sleep. Looks like your assumption is correct.

trombonehero commented 7 years ago

I tried this commit (390597e) as well, and while the machine does resume from suspend, the screen looks like this:

img_0335

I can log in remotely and kill X, at which point the screen does some kind of mode switching (goes black, then back to the coloured stripe pattern but without the little window in the bottom-left). Starting X again via SSH causes the little window to appear again, and the console emits:

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 12.0-CURRENT amd64
Current Operating System: FreeBSD marley 12.0-CURRENT FreeBSD 12.0-CURRENT #50 390597ec789(HEAD): Fri May 12 13:38:48 EDT 2017     jon@marley:/usr/home/jon/freebsd/obj/usr/home/jon/freebsd/graphics/sys/GENERIC amd64
Build Date: 14 March 2017  01:19:07PM

Current version of pixman: 0.34.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat May 13 12:43:35 2017
(==) Using config directory: "/usr/local/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
scfb trace: probe start
scfb trace: probe done

Running kldunload i915kms causes the machine to hang and restart. Would the crash summary be of any help?

nomadlogic commented 7 years ago

the method i've been trying, unsuccessfully i might add, to troubleshoot this issue is to start at the last working git commit and create a working snapshot via beadmin. then i at least have a base with working suspend/resume.

from there i've been applying upstream patches trying to pinpoint which commit introduced this problem. so far i've been unsuccessful with this approach, and it is really time consuming as well which has prevented me from doing more iterations. if others have the time and bandwidth to try to find the offending commit i think that'd be helpful.

raichoo commented 7 years ago

I've made another interesting observation. After waking up the system seems to consume 3000 more Milliwatts (7300mW vs 4000mW) resulting. That pretty much cuts down battery life quite a lot. I've found the following output in dmesg.

hdac0: Device stuck in reset
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
hdac0: Command timeout on address 0
pci0: failed to set ACPI power state D3 on \134_SB_.PCI0.XHCI: AE_BAD_PARAMETER

I've been having some issues with the XHCI driver producing a massive load of interrupts when loaded so I'm only loading the driver when needed. Maybe this is related, but I'm not sure. I've reported the issue on the bugs mailing list but got no reply concerning the issue.

nomadlogic commented 7 years ago

So it looks like some progress is being made on this upstream on CURRENT as per this thread:

https://lists.freebsd.org/pipermail/freebsd-current/2017-May/065917.html

I'm going to try to build drm-next with this patch today and see if this fixes things on my end.

trombonehero commented 7 years ago

kib's patch gets me back to the same state as 390597e, i.e., responsive to keyboard input but with weird vertical stripes. If 390597e worked for you, perhaps this patch will too... time for me to go back to my own bug. :)

valpackett commented 7 years ago

built drm-next right now with the ENTRY(resumectx) patch, my Thinkpad X240 still doesn't resume :(

raichoo commented 7 years ago

Currently running da5f90154f123ea316971de3e096f29b528a8c28 and it seems to work fine.

raichoo commented 7 years ago

The higher power consumption still seems to be an issue though. I'm still not quite sure where this is coming from. I don't see any excessive amount of interrupts or alike going on.

valpackett commented 7 years ago

nah, still nothing on my X240. sound mute LED comes on, but power button LED keeps blinking.

valpackett commented 7 years ago

Resume works on my X240 now.

All I had to do was disable the TPM.

*headdesk*