From nobody Sat Oct 29 15:52:47 2022 X-Original-To: freebsd-acpi@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N03q862jgz4g9QY for ; Sat, 29 Oct 2022 15:53:24 +0000 (UTC) (envelope-from lesterz@gmail.com) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N03q75Qg3z3tQ1 for ; Sat, 29 Oct 2022 15:53:23 +0000 (UTC) (envelope-from lesterz@gmail.com) Received: by mail-qt1-x82a.google.com with SMTP id e15so1297511qts.1 for ; Sat, 29 Oct 2022 08:53:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=soj+510ozODs6F7YEiAwGfO+iDBdnk1pP24Bn261q4M=; b=QepJeCJt4cxNlVfwqFMkS8Y2x77s3G8fDqTaegjoTJRbDMQvh9XPaBFPkX+XPDko3p itq5rYfq1uu6IiH+0tJFv05RQWs95I9GQd5aqeig1CMT9yPxALvRpW7Xiae2kv43kuGg I8P06R7nzxs1L4fRCf41Jmr/JO0fXquQVprTtdji8vQzb1GW1rQrr+Z/IWnQaYjqXQzX iksZhwoc6hMiqr1a8uWaloWuWJiNee+urHAg15BXprwoheCqLszZI4ZbCBlRiSUu1e+l uQbK1rXEWBPNzYQQZyEqhcoL8VVtUxrvtLWSDupetS5haSvyLYViIW6ou+qx9RAZuuLw T6XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=soj+510ozODs6F7YEiAwGfO+iDBdnk1pP24Bn261q4M=; b=HX7f6lKoIwZqc0UJbY+Hc9iPm3NiojpzlqYv4Yr7I5cADWF9HdwaxGb3opbWYekkKD uKQzvlqkxXhju76aJ1WZhLrUVdSnVmqSUvDIK+YWrwzbJ3gb4lsngyndu4Zxzk22o2Z7 OXeWA8zFQ1BT4+tUZTn26hfwKC1o3awdW6gpH6+v81jmm8PAAr1cfp4xDyjlAiFA+EWE PYb5iTq0nk8axj0WpTZdxcVKr6x6QTLEBDezgq8+D/q3uwM2hpt+xY6Q3mfDiCYdZpfo AI/7BZa9w8BNm4ekts16n9EQs3eXU8vbph5IWnJy1b7x4/G0i1MYutmLPEPCMQ4uLLF+ T5yQ== X-Gm-Message-State: ACrzQf1IWM3BTjEsfYnXoajzF+vlcqvVdwJKvPo4Nti8LsQkkF9WKTdn akLRHD6JfHebXGdxI5I1eR0uriDIlvy0kC9u/9N/XeDzKN8= X-Google-Smtp-Source: AMsMyM7L5AyVg1I0j0uFF7pXlLZ4of+e8saHxX+iYtkAFwHFU+8fRJTE+MEkoHz0YcFNhpg6dZj3VGHnD2rvd1vOsoE= X-Received: by 2002:ac8:5853:0:b0:39c:f1ed:2d30 with SMTP id h19-20020ac85853000000b0039cf1ed2d30mr4044824qth.442.1667058802863; Sat, 29 Oct 2022 08:53:22 -0700 (PDT) List-Id: ACPI and power management development List-Archive: https://lists.freebsd.org/archives/freebsd-acpi List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-acpi@freebsd.org MIME-Version: 1.0 From: Lester Date: Sat, 29 Oct 2022 11:52:47 -0400 Message-ID: Subject: How to get deeper C states working? To: freebsd-acpi@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c3b10b05ec2e5f4d" X-Rspamd-Queue-Id: 4N03q75Qg3z3tQ1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=QepJeCJt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of lesterz@gmail.com designates 2607:f8b0:4864:20::82a as permitted sender) smtp.mailfrom=lesterz@gmail.com X-Spamd-Result: default: False [-2.02 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.97)[-0.971]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; NEURAL_HAM_LONG(-0.05)[-0.047]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-acpi@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::82a:from]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-acpi@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --000000000000c3b10b05ec2e5f4d Content-Type: text/plain; charset="UTF-8" Hi, I'm using FreeBSD 13.1 on a Thinkpad T420 and noticed 1) with AC plugged in I only get C1 and C2 recognized 2) with only battery I get C1, C2 and C3. I also have Debian Linux installed on the same machine, under which I can get C6 and C7 too (I noticed there's a ssdt6 for Cpu0Cst which defines all the C states). I was wondering if Debian has some SSDT override that provides the additional states? From reading FreeBSD's acpi doc, I got the sense that I can override the DSDT, but don't know what I need to change, and how to get all the override files combined into a single aml file... Questions: 1) How can I get C3 working on AC? 2) How can I get C6 and C7 working too? I'm sharing my acpidump results in this folder: https://drive.google.com/drive/folders/1q0pY_2fO96RcQCN929sLLtYPpiokVTC3?usp=sharing Many thanks! == AC hw.acpi.cpu.cx_lowest: C8 dev.cpu.1.cx_method: C1/hlt C2/io dev.cpu.1.cx_usage_counters: 124 817 dev.cpu.1.cx_usage: 13.17% 86.82% last 54us dev.cpu.1.cx_lowest: C8 dev.cpu.1.cx_supported: C1/1/1 C2/3/104 dev.cpu.0.cx_method: C1/hlt C2/io dev.cpu.0.cx_usage_counters: 70 520 dev.cpu.0.cx_usage: 11.86% 88.13% last 5508us dev.cpu.0.cx_lowest: C8 dev.cpu.0.cx_supported: C1/1/1 C2/3/104 == Battery hw.acpi.cpu.cx_lowest: C8 dev.cpu.1.cx_method: C1/hlt C2/io C3/io dev.cpu.1.cx_usage_counters: 1946 106 11173 dev.cpu.1.cx_usage: 14.71% 0.80% 84.48% last 85us dev.cpu.1.cx_lowest: C8 dev.cpu.1.cx_supported: C1/1/1 C2/2/80 C3/3/109 dev.cpu.0.cx_method: C1/hlt C2/io C3/io dev.cpu.0.cx_usage_counters: 1767 105 7127 dev.cpu.0.cx_usage: 19.63% 1.16% 79.19% last 15us dev.cpu.0.cx_lowest: C8 dev.cpu.0.cx_supported: C1/1/1 C2/2/80 C3/3/109 == Linux cpupower idle-info CPUidle driver: intel_idle CPUidle governor: menu analyzing CPU 0: Number of idle states: 6 Available idle states: POLL C1 C1E C3 C6 C7 POLL: Flags/Description: CPUIDLE CORE POLL IDLE Latency: 0 Usage: 16099 Duration: 264781 C1: Flags/Description: MWAIT 0x00 Latency: 2 Usage: 7103 Duration: 1039428 C1E: Flags/Description: MWAIT 0x01 Latency: 10 Usage: 30433 Duration: 6118359 C3: Flags/Description: MWAIT 0x10 Latency: 80 Usage: 11891 Duration: 4311399 C6: Flags/Description: MWAIT 0x20 Latency: 104 Usage: 77 Duration: 26683 C7: Flags/Description: MWAIT 0x30 Latency: 109 Usage: 157291 Duration: 433120357 --000000000000c3b10b05ec2e5f4d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I'm using FreeBSD 13.1 on a Thi= nkpad T420 and noticed 1) with AC plugged in I only get C1 and C2 recognize= d 2) with only battery I get C1, C2 and C3. I also have Debian Linux instal= led on the same machine, under which I can get C6 and C7 too (I noticed the= re's a ssdt6 for Cpu0Cst which defines all the C states).
I was wondering if Debian has some SSDT override that provides = the additional states? From reading FreeBSD's acpi doc, I got the sense= that I can override the DSDT, but don't know what I need to change, an= d how to get all the override files combined into a single aml file...

Questions: 1) How can I get C3 working on AC? 2) How c= an I get C6 and C7 working too? I'm sharing my acpidump results in this= folder:=C2=A0https://drive.google.com/drive/folder= s/1q0pY_2fO96RcQCN929sLLtYPpiokVTC3?usp=3Dsharing

<= div>Many=C2=A0thanks!

=3D=3D AC
hw.acpi.= cpu.cx_lowest: C8
dev.cpu.1.cx_method: C1/hlt C2/io
dev.cpu.1.cx_usag= e_counters: 124 817
dev.cpu.1.cx_usage: 13.17% 86.82% last 54us
dev.c= pu.1.cx_lowest: C8
dev.cpu.1.cx_supported: C1/1/1 C2/3/104
dev.cpu.0.= cx_method: C1/hlt C2/io
dev.cpu.0.cx_usage_counters: 70 520
dev.cpu.0= .cx_usage: 11.86% 88.13% last 5508us
dev.cpu.0.cx_lowest: C8
dev.cpu.= 0.cx_supported: C1/1/1 C2/3/104

=3D=3D Battery=
hw.acpi.cpu.cx_lowest: C8
dev.cpu.1.cx_method: C1/hlt C2/io C= 3/io
dev.cpu.1.cx_usage_counters: 1946 106 11173
dev.cpu.1.cx_usage: = 14.71% 0.80% 84.48% last 85us
dev.cpu.1.cx_lowest: C8
dev.cpu.1.cx_su= pported: C1/1/1 C2/2/80 C3/3/109
dev.cpu.0.cx_method: C1/hlt C2/io C3/io=
dev.cpu.0.cx_usage_counters: 1767 105 7127
dev.cpu.0.cx_usage: 19.63= % 1.16% 79.19% last 15us
dev.cpu.0.cx_lowest: C8
dev.cpu.0.cx_support= ed: C1/1/1 C2/2/80 C3/3/109


=3D= =3D Linux
cpupower idle-info
CPUidle driver: intel_idle
CPU= idle governor: menu
analyzing CPU 0:

Number of idle states: 6
= Available idle states: POLL C1 C1E C3 C6 C7
POLL:
Flags/De= scription: CPUIDLE CORE POLL IDLE
Latency: 0
Usage: 16099
Duration= : 264781
C1:
Flags/Description: MWAIT 0x00
Latency: 2
Usage: 71= 03
Duration: 1039428
C1E:
Flags/Description: MWAIT 0x01
Latency= : 10
Usage: 30433
Duration: 6118359
C3:
Flags/Description: MWAI= T 0x10
Latency: 80
Usage: 11891
Duration: 4311399
C6:
Flags/= Description: MWAIT 0x20
Latency: 104
Usage: 77
Duration: 26683
= C7:
Flags/Description: MWAIT 0x30
Latency: 109
Usage: 157291
Du= ration: 433120357
--000000000000c3b10b05ec2e5f4d--