From: James Cook Subject: Re: S0ix suspend To: Theo de Raadt Cc: tech@cvs.openbsd.org Date: Wed, 18 Sep 2024 20:34:11 +0000 On Sat, Aug 17, 2024 at 10:00:28PM -0600, Theo de Raadt wrote: >amd64 snapshots contain a 2 line diff which enable S0ix suspend by default >on many laptops. This seems to make power consumption a lot worse on my laptop. Battery went from 100% to 70% when I suspended for 114 minutes (sorry, I don't know a better way to measure power consumption). Previously I was using the following snapshot, and could leave the laptop suspended all day without worry: Aug 12 21:23:57 moth /bsd: OpenBSD 7.6-beta (GENERIC.MP) #242: Sun Aug 11 18:50:25 MDT 2024 Aug 12 21:23:57 moth /bsd: deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP dmesg follows signature. (I think the 114-minute suspend is the first one FWIW.) -- James OpenBSD 7.6-beta (GENERIC.MP) #316: Sun Sep 15 20:13:29 MDT 2024 deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 16837365760 (16057MB) avail mem = 16303665152 (15548MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x5e6c6000 (94 entries) bios0: vendor Dell Inc. version "1.7.0" date 10/22/2020 bios0: Dell Inc. XPS 13 7390 efi0 at bios0: UEFI 2.7 efi0: Dell rev 0x10000 acpi0 at bios0: ACPI 6.1 acpi0: sleep states S0ix S3 S4 S5 acpi0: tables DSDT FACP SSDT SSDT HPET APIC MCFG SSDT SSDT NHLT SSDT SSDT TPM2 LPIT SSDT DBGP DBG2 BOOT SSDT DMAR SSDT BGRT FPDT acpi0: wakeup devices XHC_(S0) XDCI(S4) HDAS(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4) RP06(S4) PXSX(S4) RP07(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits 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-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu0: cpuid 1 edx=bfebfbff ecx=77fafbbf cpu0: cpuid 6 eax=27f7 ecx=9 cpu0: cpuid 7.0 ebx=29c67af edx=bc000600 cpu0: cpuid a vers=4, gp=4, gpwidth=48, ff=3, ffwidth=48 cpu0: cpuid d.1 eax=f cpu0: cpuid 80000001 edx=2c100800 ecx=121 cpu0: cpuid 80000007 edx=100 cpu0: msr 10a=a0a0c2b cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line 4-way L2 cache, 12MB 64b/line 16-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 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-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu3: smt 0, core 3, package 0 cpu4 at mainbus0: apid 8 (application processor) cpu4: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu4: smt 0, core 4, package 0 cpu5 at mainbus0: apid 10 (application processor) cpu5: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu5: smt 0, core 5, package 0 cpu6 at mainbus0: apid 1 (application processor) cpu6: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu6: smt 1, core 0, package 0 cpu7 at mainbus0: apid 3 (application processor) cpu7: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu7: smt 1, core 1, package 0 cpu8 at mainbus0: apid 5 (application processor) cpu8: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu8: smt 1, core 2, package 0 cpu9 at mainbus0: apid 7 (application processor) cpu9: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu9: smt 1, core 3, package 0 cpu10 at mainbus0: apid 9 (application processor) cpu10: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu10: smt 1, core 4, package 0 cpu11 at mainbus0: apid 11 (application processor) cpu11: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz, 3890.94 MHz, 06-a6-00, patch 000000fe cpu11: smt 1, core 5, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xe0000000, bus 0-255 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (RP01) acpiprt2 at acpi0: bus -1 (RP02) acpiprt3 at acpi0: bus -1 (RP03) acpiprt4 at acpi0: bus -1 (RP04) acpiprt5 at acpi0: bus 1 (RP05) acpiprt6 at acpi0: bus -1 (RP06) acpiprt7 at acpi0: bus 2 (RP07) acpiprt8 at acpi0: bus -1 (RP08) acpiprt9 at acpi0: bus 3 (RP09) acpiprt10 at acpi0: bus -1 (RP10) acpiprt11 at acpi0: bus -1 (RP11) acpiprt12 at acpi0: bus -1 (RP12) acpiprt13 at acpi0: bus 113 (RP13) acpiprt14 at acpi0: bus -1 (RP14) acpiprt15 at acpi0: bus -1 (RP15) acpiprt16 at acpi0: bus -1 (RP16) 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) acpiec0 at acpi0 acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001 acpicmos0 at acpi0 "INT3403" at acpi0 not configured "INT3403" at acpi0 not configured "INT3403" at acpi0 not configured "INT3403" at acpi0 not configured "INT3403" at acpi0 not configured "INT3403" at acpi0 not configured pchgpio0 at acpi0 GPI0 addr 0xfd6e0000/0x10000 0xfd6d0000/0x10000 0xfd6a0000/0x10000 irq 14, 320 pins "CUST0001" at acpi0 not configured "ELAN2097" at acpi0 not configured "ABCD0000" at acpi0 not configured "ACPI000E" at acpi0 not configured "PNP0C14" at acpi0 not configured "INT0E0C" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured 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: 9580 "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured "PNP0C14" at acpi0 not configured acpibtn0 at acpi0: LID0(wakeup) acpibtn1 at acpi0: PBTN(wakeup) acpibtn2 at acpi0: SBTN acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT0 model "DELL H754V99" serial 24690 type LION oem "LGC-LGC6.73" acpihid0 at acpi0: HIDD "INT3400" at acpi0 not configured "USBC000" at acpi0 not configured tpm0 at acpi0 TPM_ 2.0 (TIS) addr 0xfed40000/0x5000, device 0x00fc1050 rev 0x1 acpipwrres0 at acpi0: USBC, resource for XDCI acpipwrres1 at acpi0: PXP_, resource for RP09 acpipwrres2 at acpi0: V0PR acpipwrres3 at acpi0: V1PR acpipwrres4 at acpi0: V2PR acpipwrres5 at acpi0: WRST 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 acpicpu4 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu5 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu6 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu7 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu8 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu9 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu10 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpicpu11 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS acpipwrres6 at acpi0: PIN_ acpivideo0 at acpi0: GFX0 acpivout0 at acpivideo0: LCD_ cpu0: Enhanced SpeedStep 3890 MHz: speeds: 1601, 1600, 1500, 1400, 1300, 1200, 1100, 1000, 900, 800, 700, 600, 500, 400 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel Core 10G Host" rev 0x00 inteldrm0 at pci0 dev 2 function 0 "Intel UHD Graphics" rev 0x04 drm0 at inteldrm0 inteldrm0: msi, COMETLAKE, gen 9 "Intel Core 6G Thermal" rev 0x00 at pci0 dev 4 function 0 not configured "Intel Core GMM" rev 0x00 at pci0 dev 8 function 0 not configured pchtemp0 at pci0 dev 18 function 0 "Intel 400 Series Thermal" rev 0x00 xhci0 at pci0 dev 20 function 0 "Intel 400 Series xHCI" rev 0x00: msi, xHCI 1.10 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 400 Series Shared SRAM" rev 0x00 at pci0 dev 20 function 2 not configured dwiic0 at pci0 dev 21 function 0 "Intel 400 Series I2C" rev 0x00: apic 2 int 16 iic0 at dwiic0 dwiic1 at pci0 dev 21 function 1 "Intel 400 Series I2C" rev 0x00: apic 2 int 17 iic1 at dwiic1 ihidev0 at iic1 addr 0x2c irq 51, vendor 0x6cb product 0x76af, CUST0001 ihidev0: 15 report ids imt0 at ihidev0: clickpad, 5 contacts wsmouse0 at imt0 mux 0 ims0 at ihidev0 reportid 2: 2 buttons wsmouse1 at ims0 mux 0 hid at ihidev0 reportid 6 not configured hid at ihidev0 reportid 7 not configured hid at ihidev0 reportid 9 not configured hid at ihidev0 reportid 10 not configured hid at ihidev0 reportid 11 not configured hid at ihidev0 reportid 12 not configured hid at ihidev0 reportid 13 not configured hid at ihidev0 reportid 14 not configured hid at ihidev0 reportid 15 not configured "Intel 400 Series MEI" rev 0x00 at pci0 dev 22 function 0 not configured ppb0 at pci0 dev 28 function 0 "Intel 400 Series PCIE" rev 0xf0: msi pci1 at ppb0 bus 1 rtsx0 at pci1 dev 0 function 0 "Realtek RTS525A Card Reader" rev 0x01: msi sdmmc0 at rtsx0: 4-bit, dma ppb1 at pci0 dev 28 function 6 "Intel 400 Series PCIE" rev 0xf0: msi pci2 at ppb1 bus 2 iwx0 at pci2 dev 0 function 0 "Intel Wi-Fi 6 AX200" rev 0x1a, msix ppb2 at pci0 dev 29 function 0 "Intel 400 Series PCIE" rev 0xf0: msi pci3 at ppb2 bus 3 ppb3 at pci3 dev 0 function 0 "Intel JHL6540 Thunderbolt" rev 0x02 pci4 at ppb3 bus 4 ppb4 at pci4 dev 0 function 0 "Intel JHL6540 Thunderbolt" rev 0x02: msi pci5 at ppb4 bus 5 "Intel JHL6540 Thunderbolt" rev 0x02 at pci5 dev 0 function 0 not configured ppb5 at pci4 dev 1 function 0 "Intel JHL6540 Thunderbolt" rev 0x02: msi pci6 at ppb5 bus 6 ppb6 at pci4 dev 2 function 0 "Intel JHL6540 Thunderbolt" rev 0x02: msi pci7 at ppb6 bus 59 xhci1 at pci7 dev 0 function 0 "Intel JHL6540 Thunderbolt" rev 0x02: msi, xHCI 1.10 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 ppb7 at pci4 dev 4 function 0 "Intel JHL6540 Thunderbolt" rev 0x02: msi pci8 at ppb7 bus 60 ppb8 at pci0 dev 29 function 4 "Intel 400 Series PCIE" rev 0xf0: msi pci9 at ppb8 bus 113 nvme0 at pci9 dev 0 function 0 "SanDisk NVMe" rev 0x01: msix, NVMe 1.4 nvme0: WDC WDS100T2B0C-00PXH0, firmware 211210WD, serial 21120S802759 scsibus1 at nvme0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: sd0: 953869MB, 512 bytes/sector, 1953525168 sectors pcib0 at pci0 dev 31 function 0 "Intel 400 Series LPC" rev 0x00 azalia0 at pci0 dev 31 function 3 "Intel 400 Series HD Audio" rev 0x00: msi azalia0: codecs: Realtek ALC299, Intel/0x280b, using Realtek ALC299 audio0 at azalia0 ichiic0 at pci0 dev 31 function 4 "Intel 400 Series SMBus" rev 0x00: apic 2 int 16 iic2 at ichiic0 "Intel 400 Series SPI" rev 0x00 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 uvideo0 at uhub0 port 5 configuration 1 interface 0 "CN09357G8LG0098MAFA2A01 Integrated_Webcam_HD" rev 2.01/80.08 addr 2 video0 at uvideo0 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets sd1 at scsibus3 targ 1 lun 0: sd1: 665332MB, 512 bytes/sector, 1362601216 sectors root on sd1a (44a8e9daa00bd12b.a) swap on sd1b dump on sd1b drm:pid0:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] [ENCODER:102:DDI B/PHY B] is disabled/in DSI mode with an ungated DDI clock, gate it drm:pid0:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] [ENCODER:111:DDI C/PHY C] is disabled/in DSI mode with an ungated DDI clock, gate it drm:pid0:intel_ddi_sanitize_encoder_pll_mapping *NOTICE* [drm] [ENCODER:118:DDI D/PHY D] 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) iwx0: hw rev 0x340, fw 77.a20fb07d.0, address 4c:1d:96:49:90:03 video0 detached uvideo0 detached uhub0 detached uhub1 detached C3: 0 -> 0 C6: 0 -> 0 C7: 95234680032 -> 10894797877904 PC2: 769147840 -> 8606460416 PC3: 602810768 -> 10792317923392 PC6: 0 -> 0 PC7: 0 -> 0 PC8: 0 -> 0 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: 15357 5 wakeup event: GPE 0x6e uvideo0 at uhub0 port 5 configuration 1 interface 0 "CN09357G8LG0098MAFA2A01 Integrated_Webcam_HD" rev 2.01/80.08 addr 2 video0 at uvideo0 video0 detached uvideo0 detached uhub0 detached uhub1 detached C3: 0 -> 0 C6: 0 -> 0 C7: 10984398544288 -> 11451648267024 PC2: 9379829184 -> 9720427216 PC3: 10792906906800 -> 11259780513312 PC6: 0 -> 0 PC7: 0 -> 0 PC8: 0 -> 0 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: 79481 5 wakeup event: GPE 0x6e uvideo0 at uhub0 port 5 configuration 1 interface 0 "CN09357G8LG0098MAFA2A01 Integrated_Webcam_HD" rev 2.01/80.08 addr 2 video0 at uvideo0 video0 detached uvideo0 detached uhub0 detached uhub1 detached C3: 0 -> 0 C6: 0 -> 0 C7: 11487076798288 -> 11565356198288 PC2: 10855741488 -> 10915141008 PC3: 11260627360736 -> 11338847195616 PC6: 0 -> 0 PC7: 0 -> 0 PC8: 0 -> 0 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: 4382 3 wakeup event: GPE 0x6e uvideo0 at uhub0 port 5 configuration 1 interface 0 "CN09357G8LG0098MAFA2A01 Integrated_Webcam_HD" rev 2.01/80.08 addr 2 video0 at uvideo0