On Thu, Jun 16, 2022 at 05:14:53PM +0100, Edd Barrett wrote:
> Hi,
>
> Has anyone managed to get a Lenovo ThinkCentre M910q (or similar) to suspend
> with OpenBSD?
>
> When invoking `zzz` the system prepares to go down, the screen goes blank, but
> then a short while later, the system comes back, as though it was awoken
> straight away.

did it ever work in the past?

>
> Here's the diff between the initial dmesg and the dmesg after this "suspend 
> and
> come back" described above:
>
> ```
> --- dmesg     Thu Jun 16 16:53:44 2022
> +++ dmesg.1   Thu Jun 16 16:55:31 2022
> @@ -360,3 +360,22 @@
>  inteldrm0: 1920x1080, 32bpp
>  wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
>  wsdisplay0: screen 1-5 added (std, vt100 emulation)
> +uhub0 detached
> +uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 
> 3.00/1.00 addr 1
> +drm:pid42656:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] 
> [ENCODER:94:DDI J/PHY @] is disabled/in DSI mode with an ungated DDI clock, 
> gate it
> +drm:pid42656:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] 
> [ENCODER:109:DDI J/PHY @] is disabled/in DSI mode with an ungated DDI clock, 
> gate it
> +drm:pid42656:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] 
> [ENCODER:119:DDI J/PHY @] is disabled/in DSI mode with an ungated DDI clock, 
> gate it
> +uhidev0 at uhub0 port 11 configuration 1 interface 0 "SINO WEALTH Gaming KB" 
> rev 2.00/1.03 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 11 configuration 1 interface 1 "SINO WEALTH Gaming KB" 
> rev 2.00/1.03 addr 2
> +uhidev1: iclass 3/0, 5 report ids
> +ukbd1 at uhidev1 reportid 1: 120 variable keys, 0 key codes
> +wskbd2 at ukbd1 mux 1
> +wskbd2: connecting to wsdisplay0
> +ucc0 at uhidev1 reportid 2: 573 usages, 18 keys, array
> +wskbd3 at ucc0 mux 1
> +wskbd3: connecting to wsdisplay0
> +uhid0 at uhidev1 reportid 5: input=0, output=0, feature=5
> ```
>
> Is it odd that devices come back which we never saw detach?
>
> Repeating the same again, but with the inteldrm driver disabled, in case those
> scary messages have something to do with this:
>
> ```
> --- dmesg     Thu Jun 16 17:04:43 2022
> +++ dmesg.1   Thu Jun 16 17:05:01 2022
> @@ -554,3 +554,19 @@
>  softraid0 at root
>  scsibus4 at softraid0: 256 targets
>  root on sd0a (5d59e5562a788986.a) swap on sd0b dump on sd0b
> +wskbd1: disconnecting from wsdisplay0
> +wskbd1 detached
> +ukbd0 detached
> +uhidev0 detached
> +wskbd2: disconnecting from wsdisplay0
> +wskbd2 detached
> +ukbd1 detached
> +wskbd3: disconnecting from wsdisplay0
> +wskbd3 detached
> +ucc0 detached
> +uhid0 detached
> +uhidev1 detached
> +uhub0 detached
> +uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 
> 3.00/1.00 addr 1
> +uhub0: port 11, set config 0 at addr 2 failed
> +uhub0: device problem, disabling port 11
> ```
>
> This time we see more devices detach, but when uhub0 comes back there is a
> problem. curious...
>
> Does anyone have any idea what is going on here? This was due to be my new
> porting box, but I need it to suspend...
>
> (FWIW: the system also fails to come up from ZZZ hibernate, but one thing at a
> time)
>
> Full dmesg (with inteldrm):
>
> ```
> OpenBSD 7.1-current (GENERIC.MP) #582: Mon Jun 13 15:37:01 MDT 2022
>     dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 17044692992 (16255MB)
> avail mem = 16510771200 (15745MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xdcd91000 (88 entries)
> bios0: vendor LENOVO version "M1AKT39A" date 07/16/2018
> bios0: LENOVO 10MUS2UG00
> acpi0 at bios0: ACPI 6.1
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC FPDT MCFG SSDT FIDT SLIC MSDM SSDT SSDT HPET 
> SSDT UEFI SSDT LPIT WSMT SSDT SSDT DBGP DBG2 DMAR TPM2 LUFT ASF! BGRT
> acpi0: wakeup devices PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) PEGP(S4) 
> SIO1(S3) RP09(S4) PXSX(S4) RP10(S4) PXSX(S4) RP11(S4) PXSX(S4) RP12(S4) 
> PXSX(S4) RP13(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-6500T CPU @ 2.50GHz, 2394.42 MHz, 06-5e-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,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,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 24MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Core(TM) i5-6500T CPU @ 2.50GHz, 2394.43 MHz, 06-5e-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,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,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-6500T CPU @ 2.50GHz, 2394.43 MHz, 06-5e-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,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,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-6500T CPU @ 2.50GHz, 2394.43 MHz, 06-5e-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,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 0, core 3, package 0
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xf8000000, bus 0-63
> acpihpet0 at acpi0: 23999999 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 -1 (RP09)
> acpiprt5 at acpi0: bus -1 (RP10)
> acpiprt6 at acpi0: bus -1 (RP11)
> acpiprt7 at acpi0: bus -1 (RP12)
> acpiprt8 at acpi0: bus -1 (RP13)
> acpiprt9 at acpi0: bus -1 (RP01)
> acpiprt10 at acpi0: bus -1 (RP02)
> acpiprt11 at acpi0: bus -1 (RP03)
> acpiprt12 at acpi0: bus -1 (RP04)
> acpiprt13 at acpi0: bus -1 (RP05)
> acpiprt14 at acpi0: bus -1 (RP06)
> acpiprt15 at acpi0: bus -1 (RP07)
> acpiprt16 at acpi0: bus -1 (RP08)
> acpiprt17 at acpi0: bus -1 (RP17)
> acpiprt18 at acpi0: bus -1 (RP18)
> acpiprt19 at acpi0: bus -1 (RP19)
> acpiprt20 at acpi0: bus -1 (RP20)
> acpiprt21 at acpi0: bus -1 (RP21)
> acpiprt22 at acpi0: bus -1 (RP22)
> acpiprt23 at acpi0: bus -1 (RP23)
> acpiprt24 at acpi0: bus -1 (RP24)
> acpiprt25 at acpi0: bus -1 (RP14)
> acpiprt26 at acpi0: bus -1 (RP15)
> acpiprt27 at acpi0: bus -1 (RP16)
> acpiec0 at acpi0: not present
> acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
> acpicmos0 at acpi0
> acpibtn0 at acpi0: SLPB
> "PNP0C14" at acpi0 not configured
> "INT33A1" at acpi0 not configured
> acpibtn1 at acpi0: PWRB
> tpm0 at acpi0 TPM_ 2.0 (CRB) addr 0xfed40000/0x880, device 0x00000000 rev 0x0
> "PNP0C14" at acpi0 not configured
> "LEN4001" at acpi0 not configured
> acpicpu0 at acpi0: C3(200@256 mwait.1@0x40), C2(200@151 mwait.1@0x33), 
> C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: C3(200@256 mwait.1@0x40), C2(200@151 mwait.1@0x33), 
> C1(1000@1 mwait.1), PSS
> acpicpu2 at acpi0: C3(200@256 mwait.1@0x40), C2(200@151 mwait.1@0x33), 
> C1(1000@1 mwait.1), PSS
> acpicpu3 at acpi0: C3(200@256 mwait.1@0x40), C2(200@151 mwait.1@0x33), 
> 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: WRST
> acpipwrres4 at acpi0: WRST
> acpipwrres5 at acpi0: WRST
> acpipwrres6 at acpi0: WRST
> acpipwrres7 at acpi0: WRST
> acpipwrres8 at acpi0: WRST
> acpipwrres9 at acpi0: WRST
> acpipwrres10 at acpi0: WRST
> acpipwrres11 at acpi0: WRST
> acpipwrres12 at acpi0: WRST
> acpipwrres13 at acpi0: WRST
> acpipwrres14 at acpi0: WRST
> acpipwrres15 at acpi0: WRST
> acpipwrres16 at acpi0: WRST
> acpipwrres17 at acpi0: WRST
> acpipwrres18 at acpi0: WRST
> acpipwrres19 at acpi0: WRST
> acpipwrres20 at acpi0: WRST
> acpipwrres21 at acpi0: WRST
> acpipwrres22 at acpi0: WRST
> acpivideo0 at acpi0: GFX0
> acpivout0 at acpivideo0: DD1F
> cpu0: using VERW MDS workaround (except on vmm entry)
> cpu0: Enhanced SpeedStep 2394 MHz: speeds: 2501, 2500, 2400, 2300, 2100, 
> 2000, 1900, 1800, 1600, 1500, 1400, 1300, 1200, 1000, 900, 800 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core 6G Host" rev 0x07
> inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 530" rev 0x06
> drm0 at inteldrm0
> inteldrm0: msi, SKYLAKE, gen 9
> xhci0 at pci0 dev 20 function 0 "Intel 200 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 200 Series Thermal" rev 0x00 at pci0 dev 20 function 2 not configured
> "Intel 200 Series MEI" rev 0x00 at pci0 dev 22 function 0 not configured
> ahci0 at pci0 dev 23 function 0 "Intel 200 Series AHCI" rev 0x00: msi, AHCI 
> 1.3.1
> ahci0: PHY offline on port 0
> ahci0: PHY offline on port 1
> ahci0: PHY offline on port 2
> ahci0: PHY offline on port 3
> scsibus1 at ahci0: 32 targets
> ppb0 at pci0 dev 27 function 0 "Intel 200 Series PCIE" rev 0xf0: msi
> pci1 at ppb0 bus 1
> nvme0 at pci1 dev 0 function 0 "Samsung SM961/PM961 NVMe" rev 0x00: msix, 
> NVMe 1.2
> nvme0: SAMSUNG MZVLW128HEGR-000L1, firmware 5L1QCXB7, serial S341NX0K521287
> scsibus2 at nvme0: 2 targets, initiator 0
> sd0 at scsibus2 targ 1 lun 0: <NVMe, SAMSUNG MZVLW128, 5L1Q>
> sd0: 122104MB, 512 bytes/sector, 250069680 sectors
> pcib0 at pci0 dev 31 function 0 "Intel Q270 LPC" rev 0x00
> "Intel 200 Series PMC" rev 0x00 at pci0 dev 31 function 2 not configured
> azalia0 at pci0 dev 31 function 3 "Intel 200 Series HD Audio" rev 0x00: msi
> azalia0: codecs: Realtek ALC294, Intel/0x2809, using Realtek ALC294
> audio0 at azalia0
> ichiic0 at pci0 dev 31 function 4 "Intel 200 Series SMBus" rev 0x00: apic 2 
> int 16
> iic0 at ichiic0
> spdmem0 at iic0 addr 0x50: 8GB DDR4 SDRAM PC4-19200 SO-DIMM
> spdmem1 at iic0 addr 0x52: 8GB DDR4 SDRAM PC4-19200 SO-DIMM
> em0 at pci0 dev 31 function 6 "Intel I219-LM" rev 0x00: msi, address 
> 6c:4b:90:7e:76:f4
> 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
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> vmm0 at mainbus0: VMX/EPT
> vscsi0 at root
> scsibus3 at vscsi0: 256 targets
> softraid0 at root
> scsibus4 at softraid0: 256 targets
> root on sd0a (5d59e5562a788986.a) swap on sd0b dump on sd0b
> WARNING: clock gained 2 days
> WARNING: CHECK AND RESET THE DATE!
> drm:pid0:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] 
> [ENCODER:94:DDI \M-j/PHY  ] is disabled/in DSI mode with an ungated DDI 
> clock, gate it
> drm:pid0:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] 
> [ENCODER:109:DDI \M-j/PHY  ] is disabled/in DSI mode with an ungated DDI 
> clock, gate it
> inteldrm0: 1920x1080, 32bpp
> wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
> wsdisplay0: screen 1-5 added (std, vt100 emulation)
> ```
>
> --
> Best Regards
> Edd Barrett
>
> https://www.theunixzoo.co.uk
>

Reply via email to