Index | Thread | Search

From:
Matthias Schmidt <openbsd@xosc.org>
Subject:
Re: S0ix suspend
To:
Theo de Raadt <deraadt@openbsd.org>, mark.kettenis@xs4all.nl
Cc:
tech@openbsd.org
Date:
Sun, 18 Aug 2024 11:55:58 +0200

Download raw body.

Thread
  • Jason McIntyre:

    S0ix suspend

  • Matthias Schmidt:

    S0ix suspend

  • CC Mark since he replied to the bugs@ post.
    
    * Theo de Raadt wrote:
    > amd64 snapshots contain a 2 line diff which enable S0ix suspend by default
    > on many laptops.
    
    Interestingly this fixes my suspend is no longer working bug that I
    reported to bugs@ two weeks ago:
    https://marc.info/?l=openbsd-bugs&m=172288939202031&w=2
    
    dmesg now lists S0ix as sleep state and the laptop now comes back from
    resume.  I don't use zzz, I just close the lid.
    
    Cheers and thanks for the work!
    
    	Matthias
    
    OpenBSD 7.6-beta (GENERIC.MP) #260: Sat Aug 17 22:18:53 MDT 2024
        deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
    real mem = 34064453632 (32486MB)
    avail mem = 33008402432 (31479MB)
    random: good seed from bootblocks
    mpath0 at root
    scsibus0 at mpath0: 256 targets
    mainbus0 at root
    bios0 at mainbus0: SMBIOS rev. 3.3 @ 0x43ca1000 (120 entries)
    bios0: vendor American Megatrends International, LLC. version "N.1.15A13" date 02/27/2023
    bios0: TUXEDO TUXEDO InfinityBook Pro 14 Gen6
    efi0 at bios0: UEFI 2.7
    efi0: American Megatrends rev 0x50013
    acpi0 at bios0: ACPI 6.2
    acpi0: sleep states S0ix S3 S4 S5
    acpi0: tables DSDT FACP MCFG SSDT FIDT SSDT SSDT SSDT HPET APIC SSDT SSDT NHLT UEFI LPIT SSDT SSDT DBGP DBG2 SSDT DMAR SSDT SSDT UEFI UEFI BGRT PTDT WSMT FPDT
    acpi0: wakeup devices PEGP(S4) PEGP(S4) PEGP(S4) PEG0(S4) PEGP(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) [...]
    acpitimer0 at acpi0: 3579545 Hz, 24 bits
    acpimcfg0 at acpi0
    acpimcfg0: addr 0xc0000000, bus 0-255
    acpihpet0 at acpi0: 19200000 Hz
    acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
    cpu0 at mainbus0: apid 0 (boot processor)
    cpu0: 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz, 4687.66 MHz, 06-8c-01, patch 000000b8
    cpu0: cpuid 1 edx=bfebfbff<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> ecx=77fafbbf<SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND>
    cpu0: cpuid 6 eax=17eff7<SENSOR,ARAT> ecx=9<EFFFREQ>
    cpu0: cpuid 7.0 ebx=f3bfa7eb<FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,AVX512F,AVX512DQ,RDSEED,ADX,SMAP,AVX512IFMA,CLFLUSHOPT,CLWB,PT,AVX512CD,SHA,AVX512BW,AVX512VL> ecx=18c05fce<AVX512VBMI,UMIP,PKU> edx=fc100710<SRBDS_CTRL,MD_CLEAR,IBT,IBRS,IBPB,STIBP,L1DF,SSBD>
    cpu0: cpuid a vers=5, gp=8, gpwidth=48, ff=4, ffwidth=48
    cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES>
    cpu0: cpuid 80000001 edx=2c100800<NXE,PAGE1GB,RDTSCP,LONG> ecx=121<LAHF,ABM,3DNOWP>
    cpu0: cpuid 80000007 edx=100<ITSC>
    cpu0: msr 10a=a005c6b<IBRS_ALL,SKIP_L1DFL,MDS_NO,IF_PSCHANGE,MISC_PKG_CT,ENERGY_FILT,DOITM,FBSDP_NO,GDS_CTRL,RFDS_NO>
    cpu0: 48KB 64b/line 12-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line 20-way L2 cache, 12MB 64b/line 12-way L3 cache
    cpu0: smt 0, core 0, package 0
    mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
    cpu0: apic clock running at 38MHz
    cpu0: mwait min=64, max=64, C-substates=0.2.0.1.2.1.1.1, IBE
    cpu1 at mainbus0: apid 2 (application processor)
    cpu1: 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz, 3986.29 MHz, 06-8c-01, patch 000000b8
    cpu1: smt 0, core 1, package 0
    cpu2 at mainbus0: apid 4 (application processor)
    cpu2: 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz, 3491.96 MHz, 06-8c-01, patch 000000b8
    cpu2: smt 0, core 2, package 0
    cpu3 at mainbus0: apid 6 (application processor)
    cpu3: 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz, 3092.88 MHz, 06-8c-01, patch 000000b8
    cpu3: smt 0, core 3, package 0
    ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
    acpiprt0 at acpi0: bus 0 (PC00)
    acpiprt1 at acpi0: bus 1 (PEG0)
    acpiprt2 at acpi0: bus -1 (RP01)
    acpiprt3 at acpi0: bus -1 (RP02)
    acpiprt4 at acpi0: bus -1 (RP03)
    acpiprt5 at acpi0: bus -1 (RP04)
    acpiprt6 at acpi0: bus 45 (RP05)
    acpiprt7 at acpi0: bus -1 (RP06)
    acpiprt8 at acpi0: bus -1 (RP07)
    acpiprt9 at acpi0: bus -1 (RP08)
    acpiprt10 at acpi0: bus -1 (RP09)
    acpiprt11 at acpi0: bus -1 (RP10)
    acpiprt12 at acpi0: bus -1 (RP11)
    acpiprt13 at acpi0: bus -1 (RP12)
    acpiprt14 at acpi0: bus -1 (RP13)
    acpiprt15 at acpi0: bus -1 (RP14)
    acpiprt16 at acpi0: bus -1 (RP15)
    acpiprt17 at acpi0: bus -1 (RP16)
    acpiprt18 at acpi0: bus -1 (RP17)
    acpiprt19 at acpi0: bus -1 (RP18)
    acpiprt20 at acpi0: bus -1 (RP19)
    acpiprt21 at acpi0: bus -1 (RP20)
    acpiprt22 at acpi0: bus -1 (RP21)
    acpiprt23 at acpi0: bus -1 (RP22)
    acpiprt24 at acpi0: bus -1 (RP23)
    acpiprt25 at acpi0: bus -1 (RP24)
    acpiprt26 at acpi0: bus 2 (TRP0)
    acpiec0 at acpi0
    acpipci0 at acpi0 PC00: 0x00000000 0x00000011 0x00000001
    "UNIW0001" at acpi0 not configured
    "ACPI000E" at acpi0 not configured
    pchgpio0 at acpi0 GPI0 addr 0xfd6e0000/0x10000 0xfd6d0000/0x10000 0xfd6a0000/0x10000 0xfd690000/0x10000 irq 14, 360 pins
    acpibtn0 at acpi0: SLPB
    intelpmc0 at acpi0: PEPD
    state 0: 0x7f:1:2:0x00:0x0000000000000060
    counter: 0x7f:64:0:0x00:0x0000000000000632
    frequency: 0
    state 1: 0x7f:1:2:0x00:0x0000000000000060
    counter: 0x00:32:0:0x03:0x00000000fe00193c
    frequency: 8197
    "INTC1051" at acpi0 not configured
    acpibtn1 at acpi0: PWRB
    "PNP0C14" at acpi0 not configured
    "PNP0C14" at acpi0 not configured
    acpiac0 at acpi0: AC unit offline
    acpibat0 at acpi0: BAT0 model "standard" serial 00001 type LiON oem "OEM"
    acpibtn2 at acpi0: LID1
    "PNP0C14" at acpi0 not configured
    "INOU0000" at acpi0 not configured
    "USBC000" at acpi0 not configured
    "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
    acpipwrres0 at acpi0: PXP_, resource for PEG0, PEGP
    acpipwrres1 at acpi0: PXP_, resource for RP04
    acpipwrres2 at acpi0: PXP_, resource for RP05
    acpipwrres3 at acpi0: PXP_, resource for RP08
    acpipwrres4 at acpi0: PXP_, resource for RP09, PXSX
    acpipwrres5 at acpi0: BTPR, resource for HS10
    acpipwrres6 at acpi0: V0PR
    acpipwrres7 at acpi0: V1PR
    acpipwrres8 at acpi0: V2PR
    acpipwrres9 at acpi0: PXTC
    acpipwrres10 at acpi0: PTPL
    acpipwrres11 at acpi0: PXTC
    acpipwrres12 at acpi0: PXTC
    acpipwrres13 at acpi0: WRST
    acpipwrres14 at acpi0: TBT0, resource for TDM0, TRP0, TRP1
    acpipwrres15 at acpi0: TBT1, resource for TDM1, TRP2, TRP3
    acpipwrres16 at acpi0: D3C_, resource for TXHC, TDM0, TDM1, TRP0, TRP1, TRP2, TRP3
    acpipwrres17 at acpi0: PAUD, resource for HDAS
    acpicpu0 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
    acpicpu1 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
    acpicpu2 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
    acpicpu3 at acpi0: C3(200@1048 mwait.1@0x60), C2(200@253 mwait.1@0x31), C1(1000@1 mwait.1), PSS
    acpitz0 at acpi0: critical temperature is 100 degC
    acpipwrres18 at acpi0: FN00, resource for FAN0
    acpipwrres19 at acpi0: FN01, resource for FAN1
    acpipwrres20 at acpi0: FN02, resource for FAN2
    acpipwrres21 at acpi0: FN03, resource for FAN3
    acpipwrres22 at acpi0: FN04, resource for FAN4
    acpitz1 at acpi0: critical temperature is 119 degC
    acpipwrres23 at acpi0: PIN_
    acpivideo0 at acpi0: GFX0
    acpivout0 at acpivideo0: DD1F
    acpivout1 at acpivideo0: DD2F
    cpu0: Enhanced SpeedStep 4687 MHz: speeds: 3201, 3200, 3000, 2900, 2700, 2500, 2300, 2100, 1800, 1600, 1400, 1200, 1000, 800, 600, 400 MHz
    pci0 at mainbus0 bus 0
    0:31:5: mem address conflict 0xfe010000/0x1000
    pchb0 at pci0 dev 0 function 0 "Intel Core 11G Host" rev 0x01
    inteldrm0 at pci0 dev 2 function 0 "Intel Xe Graphics" rev 0x01
    drm0 at inteldrm0
    inteldrm0: msi, TIGERLAKE, gen 12
    ppb0 at pci0 dev 6 function 0 "Intel Core 11G PCIE" rev 0x01: msi
    pci1 at ppb0 bus 1
    nvme0 at pci1 dev 0 function 0 vendor "Crucial", unknown product 0x5421 rev 0x01: msix, NVMe 1.4
    nvme0: CT2000P3PSSD8, firmware P9CR40D, serial 2407E8984D26
    scsibus1 at nvme0: 2 targets, initiator 0
    sd0 at scsibus1 targ 1 lun 0: <NVMe, CT2000P3PSSD8, P9CR>
    sd0: 1907729MB, 512 bytes/sector, 3907029168 sectors
    ppb1 at pci0 dev 7 function 0 "Intel Core 11G PCIE" rev 0x01: msi
    pci2 at ppb1 bus 2
    "Intel Core 11G GNA" rev 0x01 at pci0 dev 8 function 0 not configured
    xhci0 at pci0 dev 13 function 0 "Intel Core 11G xHCI" rev 0x01: msi, xHCI 1.20
    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 Core 11G TBT" rev 0x01 at pci0 dev 13 function 2 not configured
    "Intel Core 11G VMD" rev 0x00 at pci0 dev 14 function 0 not configured
    xhci1 at pci0 dev 20 function 0 "Intel 500 Series xHCI" rev 0x20: msi, xHCI 1.20
    usb1 at xhci1: USB revision 3.0
    uhub1 at usb1 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
    "Intel 500 Series Shared SRAM" rev 0x20 at pci0 dev 20 function 2 not configured
    iwx0 at pci0 dev 20 function 3 "Intel Wi-Fi 6 AX201" rev 0x20, msix
    dwiic0 at pci0 dev 21 function 0 "Intel 500 Series I2C" rev 0x20: apic 2 int 27
    iic0 at dwiic0
    dwiic1 at pci0 dev 21 function 2 "Intel 500 Series I2C" rev 0x20: apic 2 int 29
    iic1 at dwiic1
    ihidev0 at iic1 addr 0x2c gpio 327, vendor 0x93a product 0x255, UNIW0001
    ihidev0: 67 report ids
    imt0 at ihidev0: clickpad, 4 contacts
    wsmouse0 at imt0 mux 0
    ims0 at ihidev0 reportid 2: 2 buttons
    wsmouse1 at ims0 mux 0
    hid at ihidev0 reportid 4 not configured
    hid at ihidev0 reportid 5 not configured
    hid at ihidev0 reportid 7 not configured
    hid at ihidev0 reportid 8 not configured
    hid at ihidev0 reportid 12 not configured
    hid at ihidev0 reportid 65 not configured
    hid at ihidev0 reportid 66 not configured
    hid at ihidev0 reportid 67 not configured
    ppb2 at pci0 dev 28 function 0 "Intel 500 Series PCIE" rev 0x20: msi
    pci3 at ppb2 bus 45
    nvme1 at pci3 dev 0 function 0 vendor "Crucial", unknown product 0x540a rev 0x01: msix, NVMe 1.4
    nvme1: CT2000P3PSSD8, firmware P9CR40A, serial 2348E8862B95
    scsibus2 at nvme1: 2 targets, initiator 0
    sd1 at scsibus2 targ 1 lun 0: <NVMe, CT2000P3PSSD8, P9CR>
    sd1: 1907729MB, 512 bytes/sector, 3907029168 sectors
    pcib0 at pci0 dev 31 function 0 "Intel 500 Series eSPI" rev 0x20
    azalia0 at pci0 dev 31 function 3 "Intel 500 Series HD Audio" rev 0x20: msi
    azalia0: codecs: Realtek ALC256, Intel/0x2812, using Realtek ALC256
    audio0 at azalia0
    ichiic0 at pci0 dev 31 function 4 "Intel 500 Series SMBus" rev 0x20: apic 2 int 16
    iic2 at ichiic0
    iic2: addr 0x20 01=80 03=52 08=63 09=64 0c=7f 15=30 16=39 19=14 1b=45 1d=08 1e=02 21=a1 24=ff 25=92 26=5b 2d=6a 2e=01 2f=73 30=df 35=26 36=22 38=f6 3a=80 3b=80 3c=80 3d=80 3e=80 3f=80 55=c0 58=24 6d=08 6e=1c 6f=f0 70=ac 72=07 73=15 74=20 75=03 78=02 79=02 7a=20 7e=e0 88=57 8b=a9 8c=12 8d=3c 96=05 b0=28 b1=0c b2=25 b4=42 b5=21 b6=09 b7=42 b8=80 bb=15 bd=bc be=7a bf=40 c0=13 c1=04 c2=81 c3=0a c4=19 c5=14 c6=05 c7=81 c8=38 ca=03 cc=db cd=32 ce=06 cf=c8 d0=1f d1=48 d2=19 d3=48 d4=13 d5=64 d6=09 d7=24 d8=08 d9=39 da=03 db=7a dc=03 dd=7a de=e7 df=05 e0=0a e1=a0 e2=0a e3=1a e4=10 e5=a1 e6=30 e8=0a e9=7b ea=a4 ee=1c ef=41 f0=14 f1=5d f2=1e f3=78 f5=1e f6=d0 f7=59 f8=64 f9=e2 fa=43 fb=b2 fc=80 fd=03 fe=af ff=ff words 00=00d5 01=8037 02=0000 03=5200 04=0000 05=0000 06=0000 07=0000
    spdmem0 at iic2 addr 0x52: 32GB DDR4 SDRAM PC4-25600 SO-DIMM
    "Intel 500 Series SPI" rev 0x20 at pci0 dev 31 function 5 not configured
    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
    efifb at mainbus0 not configured
    uhub2 at uhub1 port 1 configuration 1 interface 0 "GenesysLogic USB2.1 Hub" rev 2.10/23.11 addr 2
    uhub3 at uhub1 port 13 configuration 1 interface 0 "GenesysLogic USB3.2 Hub" rev 3.20/23.11 addr 3
    umass0 at uhub3 port 1 configuration 1 interface 0 "Generic USB3.0-CRW" rev 3.00/2.04 addr 4
    umass0: using SCSI over Bulk-Only
    scsibus3 at umass0: 2 targets, initiator 0
    sd2 at scsibus3 targ 1 lun 0: <Generic-, SD/MMC, 1.00> removable serial.0bda0316501030900000
    vscsi0 at root
    scsibus4 at vscsi0: 256 targets
    softraid0 at root
    scsibus5 at softraid0: 256 targets
    sd3 at scsibus5 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
    sd3: 1907468MB, 512 bytes/sector, 3906496063 sectors
    root on sd3a (67e3ae4a29514d50.a) swap on sd3b dump on sd3b
    inteldrm0: 2880x1800, 32bpp
    wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
    wsdisplay0: screen 1-5 added (std, vt100 emulation)
    iwx0: hw rev 0x350, fw 77.a20fb07d.0, address f0:9e:4a:61:ef:09
    uhub0 detached
    uhub2 detached
    sd2 detached
    scsibus3 detached
    umass0 detached
    uhub3 detached
    uhub1 detached
    C3: 0 -> 0
    C6: 0 -> 0
    C7: 194813171066 -> 214805405220
    PC2: 15095949542 -> 15099261058
    PC3: 0 -> 0
    PC6: 0 -> 0
    PC7: 0 -> 0
    PC8: 0 -> 19988716324
    PC9: 0 -> 0
    PC10: 0 -> 0
    LPIT0: 0 -> 0
    LPIT1: 0 -> 0
    uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
    uhub1 at usb1 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
    wakeups: 1 2
    wakeup event: GPE 0x6e
    uhub2 at uhub1 port 1 configuration 1 interface 0 "GenesysLogic USB2.1 Hub" rev 2.10/23.11 addr 2
    uhub3 at uhub1 port 13 configuration 1 interface 0 "GenesysLogic USB3.2 Hub" rev 3.20/23.11 addr 3
    umass0 at uhub3 port 1 configuration 1 interface 0 "Generic USB3.0-CRW" rev 3.00/2.04 addr 4
    umass0: using SCSI over Bulk-Only
    scsibus3 at umass0: 2 targets, initiator 0
    sd2 at scsibus3 targ 1 lun 0: <Generic-, SD/MMC, 1.00> removable serial.0bda0316501030900000
    
    
    
  • Jason McIntyre:

    S0ix suspend

  • Matthias Schmidt:

    S0ix suspend