Bug 73822

Summary: [request] add thermal support to ACPI
Product: Base System Reporter: Arne Woerner <arne_woerner>
Component: i386Assignee: freebsd-acpi (Nobody) <acpi>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Arne Woerner 2004-11-11 16:40:18 UTC
I believe, that the R5.3 acpi driver is unable to see the thermal sensors (just like 5.2-CURRENT-20040408). But power off works fine (I think, that is an acpi feature, isn't it?)...

I would prefer an acpi driver, that is able to tell me the temperatures inside my box... I am ready and able to test certain patches.

Fix: 

?
How-To-Repeat: dev.acpi.0.%desc: AMIINT VIA_K7
dev.acpi.0.%driver: acpi
dev.acpi.0.%parent: nexus0

neo# sysctl hw.acpi
hw.acpi.supported_sleep_state: S1 S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: NONE
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 1
hw.acpi.s4bios: 0
hw.acpi.verbose: 0
hw.acpi.reset_video: 1
hw.acpi.cpu.throttle_max: 16
hw.acpi.cpu.throttle_state: 8
hw.acpi.cpu.cx_supported: C1/0
hw.acpi.cpu.cx_lowest: C1
hw.acpi.cpu.cx_usage: 100.00%

neo# acpidump -d| head
/*
 * Intel ACPI Component Architecture
 * AML Disassembler version 20040527
 *
 * Disassembly of /tmp/acpidump.7VapkZ, Thu Nov 11 16:36:27 2004
 */
DefinitionBlock ("DSDT.aml", "DSDT", 1, "VIA", "VIA_K7", 4096)
{
    Name (APIC, 0x00)
    Method (\_PIC, 1, NotSerialized)
[...]
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2004-12-17 23:23:00 UTC
Responsible Changed
From-To: freebsd-i386->freebsd-acpi

Over to freebsd-acpi mailinglist
Comment 2 Arne Woerner 2005-03-10 16:31:47 UTC
Now I use the package
  xmbmon-204
which works fine (just Temp2 looks wrong).

> mbmon -d
SMBus[VT8233/A/8235/8237(KT266/333/400/600)] found, but No HWM
available on it!!
Using ISA-IO access method!!
* Int.Tec.Exp. Chip IT8705F/IT8712F or SIS950 found.
> mbmon -c 1
Temp.= 34.0, 203.0, 41.0; Rot.= 1654, 2343,    0
Vcore = 1.62, 2.46; Volt. = 3.18, 4.97, 11.55,  -3.62, -4.94

-Arne


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2006-04-28 14:21:35 UTC
Can you check recent version of the system, like, say, FreeBSD 6.1-RC?

These days, acpi_thermal(4) driver is present a temperatures should be
readable using command

sysctl hw.acpi.thermal

-- 
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

Any Palm app requiring an 90+ page manual has lost its vision.
    -- words about DateBk4 on Action Names list
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2006-05-28 13:07:28 UTC
State Changed
From-To: open->closed

Feedback timeout (1 month)
Comment 5 Pav Lucistnik freebsd_committer freebsd_triage 2006-05-28 13:21:06 UTC
R. B. Riddick p=ED=B9e v ne 28. 05. 2006 v 05:16 -0700:

> Oops... I oversaw that feedback from 2006-04-28... Sorry for that... Was =
not
> intentional...
>=20
> And no: There is still no hw.acpi.thermal with R6.1...

Does your /var/run/dmesg have a line like this?

acpi_tz0: <Thermal Zone> on acpi0

Are you running GENERIC kernel?

--=20
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

The final screw holding up a rackmount server is always possessed by demons=
.
Comment 6 Arne Woerner 2006-05-28 13:56:17 UTC
--- Pav Lucistnik <pav@FreeBSD.org> wrote:
> Does your /var/run/dmesg have a line like this?
>   acpi_tz0: <Thermal Zone> on acpi0
>
Nope. I grepped (case insensitive) for "tz" and "thermal" and just found lines
with "adjkerntz"...

> Are you running GENERIC kernel?
>
Nope. A custom kernel with acpi.ko module:
% kldstat
Id Refs Address    Size     Name
 1    3 0xc0400000 36db84   kernel
 2    1 0xc076e000 58554    acpi.ko

-Arne

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
Comment 7 Pav Lucistnik freebsd_committer freebsd_triage 2006-05-28 14:07:43 UTC
R. B. Riddick p=ED=B9e v ne 28. 05. 2006 v 05:56 -0700:
> --- Pav Lucistnik <pav@FreeBSD.org> wrote:
> > Does your /var/run/dmesg have a line like this?
> >   acpi_tz0: <Thermal Zone> on acpi0
> >
> Nope. I grepped (case insensitive) for "tz" and "thermal" and just found =
lines
> with "adjkerntz"...
>=20
> > Are you running GENERIC kernel?
> >
> Nope. A custom kernel with acpi.ko module:
> % kldstat
> Id Refs Address    Size     Name
>  1    3 0xc0400000 36db84   kernel
>  2    1 0xc076e000 58554    acpi.ko

Looks like it's not probing thermal zone on your hardware.
Can you post us a verbose dmesg output?
And relevant part of messages from Linux boot, for comparision?

--=20
Pav Lucistnik <pav@oook.cz>
              <pav@FreeBSD.org>

You take the red pill, you stay in Wonderland, and I show you how deep
the rabbit hole goes....
Comment 8 hans meyer 2006-05-28 14:23:23 UTC
can I add something here?
I have some ASUS K8V-MX MBs which have the ViaK8T800 chipset and 754 socket
and the thermal acpi things are not detected. I run amd64 releng_6 but on i386
the acpi thermal things are also not there.

mbmon tells me:
SMBus[VT8233/A/8235/8237(KT266/333/400/600/880)] found, but No HWM available
on it!!
No Hardware Monitor found!!
InitMBInfo: Unknown error: 0


If you are interested you can look at dmesg/sysctl/acpi/ here:

http://prowip.net.br/suporte/k8v-mx.txt

thank's
Hans

-- 
Prowip Telecom Ltda.
Dpto. Eng. e Tecnologia
http://prowip.net.br
















****************************************************
Datacenter Matik http://datacenter.matik.com.br
E-Mail e Data Hosting Service para Profissionais.
****************************************************
Comment 9 Pav Lucistnik freebsd_committer freebsd_triage 2006-05-28 14:34:35 UTC
State Changed
From-To: closed->open

Reopen
Comment 10 Pav Lucistnik freebsd_committer freebsd_triage 2006-05-28 14:35:10 UTC
Copying misfiled followup:

From: "Dpto.Eng.Prowip" <eng@prowip.net.br>
To: bug-followup@freebsd.org
Cc: arne_woerner@yahoo.com
Subject: Re: i386/73822: [request] add thermal support to ACPI
Date: Sun, 28 May 2006 10:23:23 -0300 (BRT)

 can I add something here?
 I have some ASUS K8V-MX MBs which have the ViaK8T800 chipset and 754 socket
 and the thermal acpi things are not detected. I run amd64 releng_6 but on i386
 the acpi thermal things are also not there.
 
 mbmon tells me:
 SMBus[VT8233/A/8235/8237(KT266/333/400/600/880)] found, but No HWM available
 on it!!
 No Hardware Monitor found!!
 InitMBInfo: Unknown error: 0
 
 
 If you are interested you can look at dmesg/sysctl/acpi/ here:
 
 http://prowip.net.br/suporte/k8v-mx.txt
 
 thank's
 Hans
Comment 11 Arne Woerner 2006-05-28 15:29:01 UTC
Ohoh... It's a little bit embarassing... I was completely sure, that Linux
found thermal sensors via acpi...

Somehow neither SUSE Linux 8.1 (2003) nor KNOPPIX 3.7 (2004-12) seems to find a
thermal_zone (I looked in dmesg and /proc/acpi).

FreeBSD R6.1 with verbose kernel messages (boot -v) does not say a word about
thermal, too.

I think, my BIOS/ACPI is just too old for thermal_zone and
auto-power-on-timer... :-)

Sorry for the trouble... We can close that PR now with my consent.

Tubby-Bye-Bye :-)
-Arne


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
Comment 12 Nate Lawson 2006-05-29 21:51:43 UTC
Pav Lucistnik wrote:
> R. B. Riddick pí¹e v ne 28. 05. 2006 v 05:56 -0700:
>> --- Pav Lucistnik <pav@FreeBSD.org> wrote:
>>> Does your /var/run/dmesg have a line like this?
>>>   acpi_tz0: <Thermal Zone> on acpi0
>>>
>> Nope. I grepped (case insensitive) for "tz" and "thermal" and just found lines
>> with "adjkerntz"...
>>
>>> Are you running GENERIC kernel?
>>>
>> Nope. A custom kernel with acpi.ko module:
>> % kldstat
>> Id Refs Address    Size     Name
>>  1    3 0xc0400000 36db84   kernel
>>  2    1 0xc076e000 58554    acpi.ko
> 
> Looks like it's not probing thermal zone on your hardware.
> Can you post us a verbose dmesg output?
> And relevant part of messages from Linux boot, for comparision?
> 

Many systems don't have an ACPI thermal zone.  So you just use mbmon or 
some other device-specific SMBUS monitoring tool.

-- 
Nate
Comment 13 John Baldwin freebsd_committer freebsd_triage 2006-10-16 17:54:28 UTC
State Changed
From-To: open->closed

Machine in question doesn't have ACPI thermal zones, so there's nothing 
an ACPI driver can do.