From owner-freebsd-stable@FreeBSD.ORG Mon Nov 14 18:45:25 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0690F106564A for ; Mon, 14 Nov 2011 18:45:25 +0000 (UTC) (envelope-from kron24@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9260B8FC17 for ; Mon, 14 Nov 2011 18:45:24 +0000 (UTC) Received: by faar19 with SMTP id r19so7945907faa.13 for ; Mon, 14 Nov 2011 10:45:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=TiWRz7SMEVw9sONqs34wrmuaLnFAUdcG3Hr17W1PqLs=; b=jIk0McCUw8C3Fq3DVZLwyw1US38CuvmKsA2LszGtlFomOl8ccGw6FW+Lb+YJvghuI/ jgblRjAbtZalJ8iW+IG4rwayC79mIDQMvAvCBU1u8sQKkSYZfay4ehW0jhLur99sd/0C aWdCYcQgAPyzo46QFKbLErOzwSXS2Y+NQPqiQ= Received: by 10.152.105.83 with SMTP id gk19mr14985858lab.30.1321294978523; Mon, 14 Nov 2011 10:22:58 -0800 (PST) Received: from nbvk.local (uidzr185150.sattnet.cz. [212.96.185.150]) by mx.google.com with ESMTPS id jb5sm19626725lab.15.2011.11.14.10.22.55 (version=SSLv3 cipher=OTHER); Mon, 14 Nov 2011 10:22:57 -0800 (PST) Message-ID: <4EC15C7E.2080802@gmail.com> Date: Mon, 14 Nov 2011 19:22:54 +0100 From: kron User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111109 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: 9.0-RC2: regression in power management on VIA Samuel 2 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2011 18:45:25 -0000 Hi, I have a few machines (mostly routers) with VIA Samuel 2. FreeBSD 9.0-RC2 breaks power management on them. 8.2-RELEASE detects: CPU: VIA Samuel 2 (532.64-MHz 686-class CPU) Origin = "CentaurHauls" Id = 0x673 Family = 6 Model = 7 Stepping = 3 Features=0x803035 and sysctl dev.cpu.0 says: dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 532 dev.cpu.0.freq_levels: 532/-1 266/-1 dev.cpu.0.cx_supported: C1/0 C2/90 C3/900 dev.cpu.0.cx_lowest: C2 dev.cpu.0.cx_usage: 0.45% 99.54% 0.00% last 783us In 8.2 I can use dev.cpu.0.cx_lowest=C2 in /etc/sysctl.conf and powerd runs fine switching between 532 and 266 MHz. FreeBSD 9.0-RC2 detects: CPU: VIA Samuel 2 (532.65-MHz 686-class CPU) Origin = "CentaurHauls" Id = 0x673 Family = 6 Model = 7 Stepping = 3 Features=0x803035 AMD Features=0x80000000<3DNow!> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the only difference and sysctl dev.cpu.0 is: dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.cx_supported: C1/0 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% last 208us Of course, dev.cpu.0.cx_lowest=C2 is not available and powerd cannot start - "powerd -v" fails: powerd: lookup freq: No such file or directory I haven't studied sources yet but it seems to me AMD is detected (wrong) and for that reason a wrong power management code path takes place. Is anybody willing to help me with debugging? I have no experience in such "low level" programming but at least one spare machine and some time to waste. TIA, Oli