unknown acpi events
Hello, Two keys on my laptop give unknown acpi event messages on the console. acpiasus0: unknown event 0x37 acpiasus0: unknown event 0x39 The 0x37 event is to deactivate and reactivate the touchpad. the 0x39 is to switch between power mode The laptop is an Asus Eeepc 1005ha-h And here is the dmesg OpenBSD 4.6-current (GENERIC.MP) #212: Wed Sep 30 13:28:30 MDT 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Atom(TM) CPU N280 @ 1.66GHz (GenuineIntel 686-class) 1.67 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,xTPR real mem = 1064529920 (1015MB) avail mem = 1023004672 (975MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 07/24/09, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.5 @ 0xf0720 (30 entries) bios0: vendor American Megatrends Inc. version 0703 date 07/24/2009 bios0: ASUSTeK Computer INC. 1005HA acpi0 at bios0: rev 0 acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT acpi0: wakeup devices P0P2(S4) P0P1(S4) HDAC(S4) P0P4(S4) P0P8(S4) P0P5(S4) P0P7(S4) P0P9(S4) P0P6(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU N280 @ 1.66GHz (GenuineIntel 686-class) 1.67 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,xTPR ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 1, remapped to apid 2 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (P0P5) acpiprt2 at acpi0: bus 1 (P0P7) acpiprt3 at acpi0: bus -1 (P0P6) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature 88 degC acpibat0 at acpi0: BAT0 model 1005HA serial type LION oem ASUS acpiac0 at acpi0: AC unit offline acpiasus0 at acpi0 acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibtn2 at acpi0: PWRB acpivideo0 at acpi0: VGA_ acpivout0 at acpivideo0: CRTD acpivout1 at acpivideo0: TVOD acpivout2 at acpivideo0: LCDD bios0: ROM list: 0xc/0xec00! cpu0: Enhanced SpeedStep 1667 MHz: speeds: 1667, 1333, 1000 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82945GME Host rev 0x03 vga1 at pci0 dev 2 function 0 Intel 82945GME Video rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0 at vga1: apic 2 int 16 (irq 15) drm0 at inteldrm0 Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: apic 2 int 22 (irq 7) azalia0: codecs: Realtek ALC269 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 2 int 16 (irq 15) pci1 at ppb0 bus 4 ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 2 int 17 (irq 10) pci2 at ppb1 bus 2 Atheros AR9285 rev 0x01 at pci2 dev 0 function 0 not configured ppb2 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 2 int 19 (irq 11) pci3 at ppb2 bus 1 alc0 at pci3 dev 0 function 0 Attansic Technology L2C rev 0xc0: apic 2 int 19 (irq 11), address 00:26:18:50:28:6b atphy0 at alc0 phy 0: F1 10/100/1000 PHY, rev. 11 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 2 int 23 (irq 3) uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 2 int 19 (irq 11) uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 2 int 18 (irq 5) uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 2 int 16 (irq 15) ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 2 int 23 (irq 3) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2 pci4 at ppb3 bus 5 ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM disabled pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility pciide0: channel 0 disabled (no drives) pciide0: channel 1 ignored (disabled) ahci0 at pci0 dev 31 function 2 Intel 82801GBM AHCI rev 0x02: apic 2 int 18 (irq 5), AHCI 1.1 scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: ATA, Hitachi HTS54321, FB2O SCSI3 0/direct fixed sd0: 152627MB, 512 bytes/sec, 312581808 sec total usb1 at uhci0: USB revision 1.0 uhub1 at usb1 Intel UHCI root hub rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 Intel UHCI root hub rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 Intel UHCI root hub rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4
Re: Thank you for making p2k9 possible!
On Fri, Oct 16, 2009 at 03:36:58AM +0300, Paul Irofti wrote: Its been a great hackathon and I'd like to thank both robert and theo for creating this opportunity for all of us to meet and work together. Also thanks to everybody that keeps donating and buying CDs which make such things possible. Yet again thank you for a great time here in Budapest. Cheers! Add my word to this... p2k9 was as awesome and productive like the previous hackathons ! Lots of cleanups, updates QA was done, and quite a good amount of new ports were added... Thanks again to robert for hosting us!
Re: nvidia mcp77 ahci mode patch
hmm, on Fri, Oct 16, 2009 at 08:31:13PM +0200, Jonathan Gray said that It sounds like this device should not be referred to as AHCI if it attaches to pciide and does not claim an AHCI interface. ok, i guess i wan't clear enough, let me try again. the notebook is ahci capable. but i use it in ide mode at the moment. the pciide patch is needed, so in ide mode, pciide can use dma (and not only pio). the ahci patch makes the disk work in ahci mode when i flip the switch in the bios to ahci mode. without it i had port reset messages and the drive is not found. i dont have the pcidump on me at the moment, but i looked at its output and it was vendor NVIDIA, product PCI_PRODUCT_NVIDIA_MCP77_AHCI_1 (0x0ad0). that's how i found which PCI_PRODUCT_NVIDIA_MCP77_AHCI_? to add to ahci.c if both patches are present in the kernel and the disk is in ide mode, one has to disable ahci in ukc so the controller attaches to pciide and not ahci. in an ideal world, probably only the ahci patch would be needed. but i also want to be able to use the disk in ide mode hence the pciide patch. i can send the pcidump output on monday.. On Fri, Oct 16, 2009 at 06:34:58AM +0200, frantisek holop wrote: hi there, the following addition makes ahci work on my MCP77. if this piece is present together with the ide compatibility patch, and the disk is not in ahci mode, ahci must be disabled in ukc to force the chipset into compatibility mode. i experimented with both modes because the other systems on the disk can't do ahci yet. just out of curiosity, is there a reason why not all PCI_PRODUCT_NVIDIA_MCP*_AHCI_* id's are listed? Index: ahci.c === RCS file: /cvs/src/sys/dev/pci/ahci.c,v retrieving revision 1.150 diff -u -r1.150 ahci.c --- ahci.c 13 Oct 2009 00:19:38 - 1.150 +++ ahci.c 16 Oct 2009 04:21:55 - @@ -438,6 +438,8 @@ NULL, ahci_nvidia_mcp_attach }, { PCI_VENDOR_NVIDIA,PCI_PRODUCT_NVIDIA_MCP73_AHCI_9, NULL, ahci_nvidia_mcp_attach }, + { PCI_VENDOR_NVIDIA,PCI_PRODUCT_NVIDIA_MCP77_AHCI_1, + NULL, ahci_nvidia_mcp_attach }, { PCI_VENDOR_NVIDIA,PCI_PRODUCT_NVIDIA_MCP77_AHCI_5, NULL, ahci_nvidia_mcp_attach }, the difference between ide mode and ahci mode: --- dmesg.bsd.16Fri Oct 16 05:59:30 2009 +++ dmesg.bsd.16.ahci Fri Oct 16 06:19:52 2009 @@ -2,14 +2,11 @@ f...@amaaq:/adata/home/f/usr/src/sys/arch/i386/compile/GENERIC cpu0: AMD Turion(tm) X2 Ultra Dual-Core Mobile ZM-80 (AuthenticAMD 686-class, 1024KB L2 cache) 2.11 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16 -real mem = 3217108992 (3068MB) -avail mem = 3125407744 (2980MB) +real mem = 3217104896 (3068MB) +avail mem = 3125403648 (2980MB) User Kernel Config UKC disable acpicpu 474 acpicpu* disabled UKC quit Continuing... mainbus0 at root @@ -73,15 +70,11 @@ audio0 at azalia0 ppb0 at pci0 dev 8 function 0 NVIDIA MCP77 PCI rev 0xa1 pci1 at ppb0 bus 1 -pciide1 at pci0 dev 9 function 0 NVIDIA MCP77 AHCI rev 0xa2: DMA -pciide1: using apic 0 int 10 (irq 10) for native-PCI interrupt -wd0 at pciide1 channel 0 drive 0: FUJITSU MHZ2320BH G2 -wd0: 16-sector PIO, LBA48, 305245MB, 625142448 sectors -atapiscsi0 at pciide1 channel 0 drive 1 -scsibus0 at atapiscsi0: 2 targets -cd0 at scsibus0 targ 0 lun 0: Optiarc, DVD RW AD-7560S, SX01 ATAPI 5/cdrom removable -wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5 -cd0(pciide1:0:1): using PIO mode 4, Ultra-DMA mode 5 +ahci0 at pci0 dev 9 function 0 NVIDIA MCP77 AHCI rev 0xa2: apic 0 int 10 (irq 10), AHCI 1.2 +scsibus0 at ahci0: 32 targets +sd0 at scsibus0 targ 0 lun 0: ATA, FUJITSU MHZ2320B, SCSI3 0/direct fixed +sd0: 305245MB, 512 bytes/sec, 625142448 sec total +cd0 at scsibus0 targ 2 lun 0: Optiarc, DVD RW AD-7560S, SX01 ATAPI 5/cdrom removable nfe0 at pci0 dev 10 function 0 NVIDIA MCP77 LAN rev 0xa2: apic 0 int 5 (irq 5), address 00:21:85:55:af:d3 eephy0 at nfe0 phy 1: 88E1116 Gigabit PHY, rev. 1 ppb1 at pci0 dev 16 function 0 NVIDIA MCP77 PCIE rev 0xa1: apic 0 int 7 (irq 7) @@ -149,4 +142,4 @@ vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root -root on wd0a swap on wd0b dump on wd0b +root on sd0a swap on sd0b dump on sd0b -f -- go and catch a falling star... -- a kick in the ass is a step forward.
Re: nvidia mcp77 ahci mode patch
On Fri, Oct 16, 2009 at 09:19:49PM +0200, frantisek holop wrote: the ahci patch makes the disk work in ahci mode when i flip the switch in the bios to ahci mode. without it i had port reset messages and the drive is not found. so this product id doesn't change when ahci is enabled in the bios? i dont have the pcidump on me at the moment, but i looked at its output and it was vendor NVIDIA, product PCI_PRODUCT_NVIDIA_MCP77_AHCI_1 (0x0ad0). that's how i found which PCI_PRODUCT_NVIDIA_MCP77_AHCI_? to add to ahci.c Yes, but this is not the interesting part by far. It is the class, subclass and interface that are of interest the pcidevs entry should be renamed to _not_ have AHCI in it if it attached to pciide without having to change mode. i can send the pcidump output on monday.. If you can include pcidump output both with and without ahci enabled in the bios it will be easier to see what is going on.
Re: Thank you for making p2k9 possible!
Sounds interesting. Can we wait on resulting materials? On Sun, Oct 11, 2009 at 5:56 PM, Robert Nagy rob...@openbsd.org wrote: Hello p2k9 (the ports hackathon in Budapest) is on since Friday. People are working on different things like GNOME, GCC4, BluRay support or even ACPI. I would like to thank everyone who donated money to the project because the individual donors made it possible to organize this event. So ... BIG THANKS GOES TO OUR USERS, to people supporting the project even at these times. I'd also like to thank NIIF and Sun Microsystems Hungary for lending us a nice hackroom and hardware for the hackathon.
Re: Thank you for making p2k9 possible!
You can see whats been happening if you are subscribed to the cvs src changes list. Offhand at least 30 new ports were added, more than 250 were updated, lots were tweaked, and the pkg_add code was worked on. Likely I missed a lot, too--I was mostly focused on the ports changes so more stuff was done than I saw. When you want to find out whats happened (happening) at a hackathon, watching the commits is the best way to see whats going on. --STeve Andre' On Friday 16 October 2009 17:37:18 Nick Rivera wrote: Sounds interesting. Can we wait on resulting materials? On Sun, Oct 11, 2009 at 5:56 PM, Robert Nagy rob...@openbsd.org wrote: Hello p2k9 (the ports hackathon in Budapest) is on since Friday. People are working on different things like GNOME, GCC4, BluRay support or even ACPI. I would like to thank everyone who donated money to the project because the individual donors made it possible to organize this event. So ... BIG THANKS GOES TO OUR USERS, to people supporting the project even at these times. I'd also like to thank NIIF and Sun Microsystems Hungary for lending us a nice hackroom and hardware for the hackathon.