From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 17 16:15:39 2014 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9CD2118D for ; Wed, 17 Sep 2014 16:15:39 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 82C0A26B for ; Wed, 17 Sep 2014 16:15:39 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s8HGFd8b015386 for ; Wed, 17 Sep 2014 16:15:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 192316] Invariant TSC gets misdetected on Intel Core 2 Duo processors, resulting in sluggish system behavior Date: Wed, 17 Sep 2014 16:15:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: jan.kokemueller@gmail.com X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Sep 2014 16:15:39 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D192316 --- Comment #3 from Jan Kokem=C3=BCller --- Created attachment 147407 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D147407&action= =3Dedit acpidump of a Lenovo SL510 Thanks for the detailed analysis. I've had another look at how my laptop (Lenovo SL510) handles C-states. By default the OS queries the _CST method = of the firmware and this results in the following C-states: dev.cpu.0.cx_supported: C1/1/1 C2/2/57 dev.cpu.1.cx_supported: C1/1/1 C2/2/57 So this means that cpu_can_deep_sleep does not get set. When I insert a "re= turn (ENXIO);" at the start of the acpi_cpu_cx_cst function in sys/dev/acpica/acpi_cpu.c the OS falls back to FADT/P_BLK parsing and I get= the following: dev.cpu.0.cx_supported: C1/1/0 C2/2/1 C3/3/57 dev.cpu.1.cx_supported: C1/1/0 C2/2/1 C3/3/57 ... which looks closer to the actual hardware to me. I've attached the acpidumps. The _CST method is in ssdt5.dsl. My laptop seems to fall into on= e of the cases at lines 115, 318, or 531. I wonder why they do this weird remapp= ing of C-states? --=20 You are receiving this mail because: You are the assignee for the bug.=