From owner-freebsd-bugs@FreeBSD.ORG Wed Nov 18 07:20:03 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32DDF1065698 for ; Wed, 18 Nov 2009 07:20:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EB0598FC1A for ; Wed, 18 Nov 2009 07:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nAI7K2sG046727 for ; Wed, 18 Nov 2009 07:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nAI7K2ix046726; Wed, 18 Nov 2009 07:20:02 GMT (envelope-from gnats) Resent-Date: Wed, 18 Nov 2009 07:20:02 GMT Resent-Message-Id: <200911180720.nAI7K2ix046726@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, vermaden Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF5721065670 for ; Wed, 18 Nov 2009 07:15:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id AD6E38FC13 for ; Wed, 18 Nov 2009 07:15:43 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nAI7Fhw3088221 for ; Wed, 18 Nov 2009 07:15:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id nAI7Fhrs088220; Wed, 18 Nov 2009 07:15:43 GMT (envelope-from nobody) Message-Id: <200911180715.nAI7Fhrs088220@www.freebsd.org> Date: Wed, 18 Nov 2009 07:15:43 GMT From: vermaden To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: kern/140658: dev.cpu.0.cx_lowest=C3 from /etc/sysctl.conf or /boot/loader.conf does not apply at boot when cpufreq used as module outside kernel X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Nov 2009 07:20:03 -0000 >Number: 140658 >Category: kern >Synopsis: dev.cpu.0.cx_lowest=C3 from /etc/sysctl.conf or /boot/loader.conf does not apply at boot when cpufreq used as module outside kernel >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 18 07:20:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: vermaden >Release: possible to recreate on 8.0-RC2/8.0-RC3 >Organization: >Environment: stock GENERIC kernel and GENERIC kernel rebuild without cpufreq in kernel config >Description: If you have cpufreq compiled into the kernel, then setting C-states from /etc/sysctl.conf or /boot/loader.conf works as desired. examples: /etc/sysctl.conf dev.cpu.0.cx_lowest=C2 dev.cpu.0.cx_lowest=C3 /boot/loader.conf cpufreq_load="YES" dev.cpu.0.cx_lowest=C2 dev.cpu.0.cx_lowest=C3 When you tak cpufreq OUTSIDE the kernel, as a module, these setting no longer apply after reboot, but you can manually set them by sysctl(8) as usual. Of course cpufreq is loaded at boot with cpufreq_load="YES" line in /boot/loader.conf >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: