Vim Visual wrote:
Hi Marco,
I thought you'd be interested. I have followed your steps and acpi is
not working. I include here the acpi dmesg. Thanks for your work
OpenBSD 4.0-current (GENERIC) #1349: Tue Jan 16 16:55:56 MST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.20GHz ("GenuineIntel"
686-class) 1.21 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem = 1063809024 (1038876K)
avail mem = 962256896 (939704K)
using 4256 buffers containing 53313536 bytes (52064K) of memory
User Kernel Config
UKC> enable acpi
385 acpi0 enabled
UKC> quit
Continuing...
mainbus0 (root)
bios0 at mainbus0: AT/286+(13) BIOS, date 05/09/05, BIOS32 rev. 0 @
0xfd720, SMBIOS rev. 2.3 @ 0xe80c0 (43 entries)
bios0: FUJITSU SIEMENS 0000000000
pcibios0 at bios0: rev 2.1 @ 0xfd720/0x8e0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/160 (8 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0xd200! 0xdc000/0x4000!
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP SSDT BOOT
acpitimer at acpi0 not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (HUB_)
acpibtn at acpi0 not configured
acpibtn at acpi0 not configured
acpiac at acpi0 not configured
acpibat at acpi0 not configured
acpibat at acpi0 not configured
acpicpu at acpi0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82852GM Hub-PCI" rev 0x02
"Intel 82852GM Memory" rev 0x02 at pci0 dev 0 function 1 not configured
"Intel 82852GM Configuration" rev 0x02 at pci0 dev 0 function 3 not
configured
vga1 at pci0 dev 2 function 0 "Intel 82852GM AGP" rev 0x02: aperture
at 0xd8000000, size 0x8000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"Intel 82852GM AGP" rev 0x02 at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x03: irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x03: irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03: irq 11
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: Intel EHCI root hub, rev 2.00/1.00, addr 1
uhub2: 4 ports with 4 removable, self powered
ppb0 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83
pci1 at ppb0 bus 1
cbb0 at pci1 dev 10 function 0 "Ricoh 5C476 CardBus" rev 0xab: irq 11
cbb1 at pci1 dev 10 function 1 "Ricoh 5C476 CardBus" rev 0xab: irq 11
"Ricoh 5C552 Firewire" rev 0x03 at pci1 dev 10 function 2 not configured
vendor "Ricoh", unknown product 0x0576 (class system subclass
miscellaneous, rev 0x01) at pci1 dev 10 function 3 not configured
"Ricoh 5C592 Memory Stick" rev 0x00 at pci1 dev 10 function 4 not
configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 3 device 0 cacheline 0x0, lattimer 0x20
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x03
pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x03: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide0 channel 0 drive 0: <FUJITSU MHT2080AH>
wd0: 16-sector PIO, LBA, 76319MB, 156301488 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, UJDA755 DVD/CDRW, 1.00> SCSI0
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801DB SMBus" rev 0x03: irq 11
iic0 at ichiic0
auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq
11, ICH4 AC97
ac97: codec id 0x414c4770 (Avance Logic ALC203 rev 0)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, No 3D Stereo
audio0 at auich0
"Intel 82801DB Modem" rev 0x03 at pci0 dev 31 function 6 not configured
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask effd netmask effd ttymask ffff
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
auich0: measured ac97 link rate at 48002 Hz, will use 48000 Hz
2007/1/16, Marco Peereboom <[EMAIL PROTECTED]>:
Jordan just fixed a bug that affects several people that have
experienced interrupt issues when enabling ACPI. If you are one of the
people that have experienced hangs or other undesired results after
enabling ACPI in UKC please take this fix for a test drive. The steps
to test this fix are:
1. Check out a brand new kernel
2. Compile GENERIC and GENERIC.MP
3. Boot GENERIC with the -c option and enable acpi; assuming your new
kernel is /bsd.acpi do the following:
boot> bsd.acpi -c
... dmesg goo...
UKC> enable acpi
385 acpi0 enabled
quit
4. Repeat with GENERIC.MP
5. If you run into issues send jordan, kettenis & marco the dmesg and
the dmesg
with acpi enabled.
We think that there is at least one more bug in aml that we are trying
to fix and this will help narrowing it down.
Thanks and happy testing.
/marco
As Marco replied, acpi is working.
# grep acpi /usr/src/sys/arch/i386/conf/GENERIC
acpi0 at mainbus? disable
#acpitimer* at acpi?
#acpihpet* at acpi?
#acpiac* at acpi?
#acpibat* at acpi?
#acpibtn* at acpi?
#acpicpu* at acpi?
acpiec* at acpi? disable
acpiprt* at acpi?
#acpitz* at acpi?
As you can see in your dmesg acpi0 attaches and also acpiprt.
The only other acpi-thing on a GENERIC kernel you could enable via UKC
is acpiec.
The other parts are not compiled into GENERIC so you would have
to edit the kernel config and recompile.
Below you can see what it looks like on my system.
hf
-RjH
# grep acpi /usr/src/sys/arch/i386/conf/GENERIC_ACPI
acpi0 at mainbus?
acpitimer* at acpi?
acpihpet* at acpi?
acpiac* at acpi?
acpibat* at acpi?
acpibtn* at acpi?
acpicpu* at acpi?
acpiec* at acpi?
acpiprt* at acpi?
acpitz* at acpi?
# sysctl hw.sensors
hw.sensors.acpibat0.volt0=11.10 V DC, (voltage), OK
hw.sensors.acpibat0.volt1=12.34 V DC, (current voltage), OK
hw.sensors.acpibat0.watthour0=24.42 Wh, (last full capacity)
hw.sensors.acpibat0.watthour1=0.00 Wh, (warning capacity)
hw.sensors.acpibat0.watthour2=0.12 Wh, (low capacity)
hw.sensors.acpibat0.watthour3=24.42 Wh, (remaining capacity)
hw.sensors.acpibat0.raw0=2, (battery charging), OK
hw.sensors.acpibat0.raw1=37, (rate)
hw.sensors.acpiac0.indicator0=On, (power supply)
hw.sensors.acpitz0.temp0=43.95 degC, (zone temperature)
# cat /var/run/dmesg.boot
OpenBSD 4.0-current (GENERIC_ACPI) #0: Sat Jan 20 13:22:17 CET 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC_ACPI
cpu0: Mobile Intel(R) Celeron(R) processor 600MHz ("GenuineIntel" 686-class)
917 MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,EST,TM2
real mem = 535851008 (523292K)
avail mem = 480702464 (469436K)
using 4256 buffers containing 26914816 bytes (26284K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 02/05/03, BIOS32 rev. 0 @ 0xfd751, SMBIOS
rev. 2.3 @ 0xd8010 (17 entries)
bios0: Sony Corporation PCG-U101(J)
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd750/0x8b0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0x10000 0xd8000/0x4000! 0xdc000/0x4000!
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP BOOT
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpi device at acpi0 from table DSDT not configured
acpi device at acpi0 from table FACP not configured
acpi device at acpi0 from table BOOT not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGPB)
acpiprt2 at acpi0: bus 2 (PCIB)
acpiec0 at acpi0: EC0_
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1: model: serial: type: LION oem: Sony Corp.
acpiac0 at acpi0: AC unit online
acpitz0 at acpi0, critical temperature: 99 degC
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82855PE Hub" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82855PE AGP" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility M6 LY" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 "Intel 82801DB USB" rev 0x03: irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1 "Intel 82801DB USB" rev 0x03: irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2 "Intel 82801DB USB" rev 0x03pci_intr_map: no
mapping for pin C
: couldn't map interrupt
ehci0 at pci0 dev 29 function 7 "Intel 82801DB USB" rev 0x03pci_intr_map: no
mapping for pin D
: couldn't map interrupt
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x83
pci2 at ppb1 bus 2
cbb0 at pci2 dev 5 function 0 "Ricoh 5C475 CardBus" rev 0xb8: irq 3
"Ricoh 5C551 Firewire" rev 0x00 at pci2 dev 5 function 1 not configured
fxp0 at pci2 dev 8 function 0 "Intel PRO/100 VE" rev 0x83, i82562: irq 9,
address 08:00:46:a1:12:34
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
wi0 at pci2 dev 11 function 0 "Intersil PRISM3" rev 0x01: irq 9
wi0: PRISM3 ISL37300P(PCI) (0x8022), Firmware 1.1.1 (primary), 1.5.6 (station),
address 00:02:8a:78:12:34
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x40
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801DBM LPC" rev 0x03
pciide0 at pci0 dev 31 function 1 "Intel 82801DBM IDE" rev 0x03: DMA, channel 0
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <TOSHIBA MK3004GAH>
wd0: 16-sector PIO, LBA, 28610MB, 58595040 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
pciide0: channel 1 ignored (disabled)
ichiic0 at pci0 dev 31 function 3 "Intel 82801DB SMBus" rev 0x03pci_intr_map:
no mapping for pin B
: polling
iic0 at ichiic0
auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq 9, ICH4 AC97
ac97: codec id 0x594d4803 (Yamaha YMF753-S)
ac97: codec features 18 bit DAC, No 3D Stereo
audio0 at auich0
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask effd netmask effd ttymask ffff
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
uhub2 at uhub1 port 1
uhub2: Cypress Semiconductor USB2 Hub, rev 2.00/0.0b, addr 2
uhub2: 4 ports with 4 removable, self powered
umass0 at uhub0 port 1 configuration 1 interface 0
umass0: Western Digital External HDD, rev 2.00/2.40, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets
sd0 at scsibus0 targ 1 lun 0: <WDC WD80, 0UE-22KVT0, 0000> SCSI0 0/direct fixed
sd0: 76319MB, 76319 cyl, 64 head, 32 sec, 512 bytes/sec, 156301488 sec total
uhidev0 at uhub2 port 1 configuration 1 interface 0
uhidev0: CHESEN PS2 to USB Converter, rev 1.10/0.10, addr 3, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub2 port 1 configuration 1 interface 1
uhidev1: CHESEN PS2 to USB Converter, rev 1.10/0.10, addr 3, iclass 3/1
uhidev1: 3 report ids
ums0 at uhidev1 reportid 1: 5 buttons and Z dir.
wsmouse1 at ums0 mux 0
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub2 port 3 configuration 1 interface 0
uhidev2: Logitech USB-PS/2 Optical Mouse, rev 2.00/20.00, addr 4, iclass 3/1
ums1 at uhidev2: 3 buttons and Z dir.
wsmouse2 at ums1 mux 0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302