From owner-acpi-jp@jp.FreeBSD.org Mon Dec 29 07:21:33 2003
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id hBSMLX077398;
	Mon, 29 Dec 2003 07:21:33 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from rootlabs.com (root.org [67.118.192.226])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with SMTP/inet id hBSMLXC77393
	for <acpi-jp@jp.FreeBSD.org>; Mon, 29 Dec 2003 07:21:33 +0900 (JST)
	(envelope-from nate@rootlabs.com)
Received: (qmail 10045 invoked by uid 1000); 28 Dec 2003 22:21:28 -0000
From: Nate Lawson <nate@root.org>
To: acpi-jp@jp.FreeBSD.org
cc: qhwt+acpi-jp@les.ath.cx
In-Reply-To: <20031228123440.GA898@les.ath.cx>
Message-ID: <20031228141106.F9675@root.org>
References: <20031228123440.GA898@les.ath.cx>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Sun, 28 Dec 2003 14:21:28 -0800
X-Sequence: acpi-jp 2942
Subject: [acpi-jp 2942] Re: CPU throttling gone
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: nate@root.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+031216

On Sun, 28 Dec 2003, YONETANI Tomokazu wrote:
> Today, after upgrading my -CURRENT box running as a router,
> to see how new acpi code looks like. I noticed that some
> oids under hw.acpi.cpu have changed, and at the same time
> there's no CPU throttle knobs.
>
> $ sysctl hw.acpi
> hw.acpi.cpu.cx_supported: C1/0
> hw.acpi.cpu.cx_lowest: 0
> hw.acpi.cpu.cx_history: 361434/0

Scope(\_PR_) {
    Processor(CPU1, 1, 0x0, 0x0) {}
    Processor(CPU2, 2, 0x0, 0x0) {}
}

That is your processor block.  So you shouldn't have ever had throttling
support.  P_BLK and P_BLK_LEN are both 0, meaning you have no throttling
registers unless you had a _PTC object, which you don't.

If we gave you throttling before, it was a mistake and it wouldn't have
worked even if you had the sysctls.  Did throttling ever work for you with
an old kernel?

> I also noticed that something failed in acpi probe code:
>
> acpi0: <AMIINT SiS645XX> on motherboard
> acpi0: Power Button (fixed)
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
> acpi_cpu0: <CPU> on acpi0
> acpi_cpu1: <CPU> on acpi0
> device_probe_and_attach: acpi_cpu1 attach returned 6

That is fine.  Your FADT is incorrect in that it claims you support
throttling (DUTY_WIDTH=3) but with no P_BLK, there is no way to do
throttling.  So we don't attach to the processors and you get the dmesg
but there is no harm to this.

-Nate
