howto debug acpi_thermal on Dell 2500 servers

From: Ken Menzel <kenm_at_icarz.com>
Date: Fri, 10 Oct 2003 09:44:36 -0400
Hi,
   I am trying to figure out how to use ACPI to get thermal info on
Dell 2500 servers.  I have compiled acpi into the kernel  (see below
for problems with acpi as module with ACPI_DEBUG in make.conf).  I
can't seem to get any addtional info from acpi.   Do I need a debug
kernel?  Do I have to have more options in my kernel config?  Is
someone already doing (done?) this and I shouldn't bother to try and
debug it?

Thanks, Ken
I tried to include any relevant details that I saw in other messages
in the archives:

I seemed to get more info without ACPI_DEBUG on and the acpi as a KLD.
sidenote: kernel would not load the acpi.ko file if I made it with
ACPI_DEBUG=1 in make.conf. (See way below)

now I am using:
device          acpi
options         ACPI_DEBUG

I tried adding OPTIONS ACPI_VERBOSE but it gives 'unknown option
"ACPI_VERBOSE" '

  My loader.conf is as follows:
riker# cat /boot/loader.conf
hw.acpi.debug=1
hw.acpi.verbose = 1
debug.acpi.layer = "ACPI_ALL_COMPONENTS ACPI_FAN ACPI_THERMAL"
debug.acpi.level = "ACPI_LV_WARN ACPI_LV_ERROR ACPI_LV_OBJECTS"

---------------------------- sysctl
utput  -------------------------------------------
riker# sysctl -a | grep acpi
      acpisem    17     3K      3K       17  64,128
       acpica  1357   175K    177K    15193  16,64,128,256,512,1024
      acpidev    44     1K      1K       44  16
debug.acpi.acpi_ca_version: 0x20030619
debug.acpi.layer: ACPI_UTILITIES ACPI_HARDWARE ACPI_EVENTS ACPI_TABLES
ACPI_NAMESPACE ACPI_PARSER ACPI_DISPATCHER ACPI_EXECUTER
ACPI_RESOURCES ACPI_CA_DEBUGGER ACPI_OS_SERVICES ACPI_CA_DISASSEMBLER
ACPI_ALL_COMPONENTS ACPI_EC ACPI_AC_ADAPTER ACPI_THERMAL ACPI_FAN
debug.acpi.level: ACPI_LV_ERROR ACPI_LV_WARN ACPI_LV_OBJECTS
debug.acpi.semaphore_debug: 0
hw.acpi.supported_sleep_state: S4 S5
hw.acpi.power_button_state: S5
hw.acpi.sleep_button_state: S1
hw.acpi.lid_switch_state: S1
hw.acpi.standby_state: S1
hw.acpi.suspend_state: S3
hw.acpi.sleep_delay: 5
hw.acpi.s4bios: 0
hw.acpi.verbose: 1
hw.acpi.disable_on_poweroff: 1
machdep.acpi_timer_freq: 3579545
machdep.acpi_root: 1039488
riker#

Hope you can help:  more details below

See below for output of dmesg | grep acpi.
------------------------------------------------------

riker# dmesg | grep acpi
acpi0: <DELL   PE2500  > on motherboard
acpi0: Power Button (fixed)
acpi_cpu0: <CPU> on acpi0
acpi_cpu1: <CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> on acpi0
fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
sio0 port 0x3f8-0x3ff irq 4 on acpi0
sio1 port 0x2f8-0x2ff irq 3 on acpi0
ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 1 on acpi0
pcib1: <ACPI Host-PCI bridge> on acpi0
pcib3: <ACPI Host-PCI bridge> on acpi0
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
riker#riker# pciconf -lv
hostb0_at_pci0:0:0:        class=0x060000 card=0x00000000 chip=0x00081166
rev=0x23 hdr=0x00
    vendor   = 'Reliance Computer Corp./ServerWorks'
    device   = 'NB6536 (CNB20-HE) Hostbridge & MCH, bus/dev/func
0/0/0'
    class    = bridge
    subclass = HOST-PCI
hostb1_at_pci0:0:1:        class=0x060000 card=0x00000000 chip=0x00081166
rev=0x01 hdr=0x00
    vendor   = 'Reliance Computer Corp./ServerWorks'
    device   = 'NB6536 (CNB20-HE) Hostbridge & MCH, bus/dev/func
0/0/0'
    class    = bridge
    subclass = HOST-PCI
hostb2_at_pci0:0:2:        class=0x060000 card=0x00000000 chip=0x00061166
rev=0x01 hdr=0x00
    vendor   = 'Reliance Computer Corp./ServerWorks'
    device   = 'NB6536 (CNB20-HE) Host Bridge, function 2 and function
3'
    class    = bridge
    subclass = HOST-PCI
hostb3_at_pci0:0:3:        class=0x060000 card=0x00000000 chip=0x00061166
rev=0x01 hdr=0x00
    vendor   = 'Reliance Computer Corp./ServerWorks'
    device   = 'NB6536 (CNB20-HE) Host Bridge, function 2 and function
3'
    class    = bridge
    subclass = HOST-PCI

-------------------------------------------------------------------
way below problems loading acpi as module with debug
Normal boot

riker# kldstat
Id Refs Address    Size     Name
 1    7 0xc0400000 5aba64   kernel
 2    1 0xc09ac000 4ceac    acpi.ko
 3    1 0xc890f000 19000    linux.ko
riker#


buildkernel and installkernel with ACPI_DEBUG=1

%cat /etc/make.conf
# -- use.perl generated deltas -- #
# Created: Fri Apr  4 09:20:59 2003
# Setting to use base perl from ports:
PERL_VER=5.6.1
PERL_VERSION=5.6.1
PERL_ARCH=mach
NOPERL=yo
NO_PERL=yo
NO_PERL_WRAPPER=yo
KERNCONF=ICARZ
CPUTYPE=i686
CFLAGS= -O -pipe
CXXFLAGS+= -fmemoize-lookups -fsave-memoized
ACPI_DEBUG=1

result:


%
%kldstat
Id Refs Address    Size     Name
 1    5 0xc0400000 5aba64   kernel
 2    1 0xc88ca000 19000    linux.ko
%dmesg | grep acpi
Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0a351f4.
KLD file acpi.ko - could not finalize loading



-----------------------------------------------------
Ken Menzel  ICQ# 9325188
www.icarz.com  kenm_at_icarz.com
Received on Fri Oct 10 2003 - 04:48:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:24 UTC