From owner-acpi-jp@jp.FreeBSD.org Mon Mar 15 11:09:53 2004
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) id i2F29r020381;
	Mon, 15 Mar 2004 11:09:53 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from postfix3-1.free.fr (postfix@postfix3-1.free.fr [213.228.0.44])
	by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id i2F29i720293
	for <acpi-jp@jp.freebsd.org>; Mon, 15 Mar 2004 11:09:50 +0900 (JST)
	(envelope-from passe@clope.net)
Received: from clope.net (titanium.clope.net [81.57.24.12])
	by postfix3-1.free.fr (Postfix) with ESMTP id 53440C4055
	for <acpi-jp@jp.freebsd.org>; Mon, 15 Mar 2004 03:09:14 +0100 (CET)
Message-ID: <40550E87.2060405@clope.net>
From: Alexandre Ahmim-Richard <passe@clope.net>
User-Agent: Mozilla Thunderbird 0.5 (X11/20040208)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: acpi-jp@jp.FreeBSD.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Mon, 15 Mar 2004 03:01:43 +0100
X-Sequence: acpi-jp 3105
Subject: [acpi-jp 3105] ACPI on Gericom webgine advance 1400
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: passe@clope.net
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+040307

Hi,

I'm using FreeBSD 5.2-releng on an gericom webgine advance with an AMD 1400.
FreeBSD mulet.clope.net 5.2.1-RELEASE-p1 FreeBSD 5.2.1-RELEASE-p1 #1: 
Sun Mar 14 22:23:01 CET 2004 
root@mulet.clope.net:/usr/obj/usr/src/sys/MULET_KERNEL  i386

My bios is an American Megatrend AMIBIOS version 1.20g

I have 2 problems, the suspend totaly shutdown the pci bridge and it 
can't recover data :

acpi_lid0: Lid closed
fwohci0: fwohci_pci_suspend
AcpiOsDerivePciId: bus 0 dev 17 func 4
AcpiOsDerivePciId: bus 0 dev 17 func 6
AcpiOsDerivePciId: bus 0 dev 0 func 0
pcib0: matched entry for 0.16.INTA (source \\_SB_.LNKC)
pcib0: slot 16 INTA is routed to irq 10
pcib0: matched entry for 0.17.INTD (source \\_SB_.LNKD)
pcib0: slot 17 INTD is routed to irq 10
pcib0: matched entry for 0.17.INTD (source \\_SB_.LNKD)
pcib0: slot 17 INTD is routed to irq 10
pcib0: matched entry for 0.17.INTC (source \\_SB_.LNKC)
pcib0: slot 17 INTC is routed to irq 10
pcib0: matched entry for 0.17.INTC (source \\_SB_.LNKC)
pcib0: slot 17 INTC is routed to irq 10
pcib0: matched entry for 0.18.INTA (source \\_SB_.LNKA)
pcib0: slot 18 INTA is routed to irq 9
pcib0: matched entry for 0.1.INTA (source \\_SB_.LNKA)
pcib0: slot 1 INTA is routed to irq 9
pcib1: slot 0 INTA is routed to irq 9
fwohci0: fwohci_pci_resume: power_state = 0x00000000
fwohci0: latency timer 32 -> 32.
fwohci0: cache size 8 -> 8.
fwohci0: resetting OHCI...done (loop=0)
fwohci0: fwphy_rddata: 0x2 loop=1, retry=0
fwohci0: fwphy_rddata: 0x3 loop=1, retry=0
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: fwphy_rddata: 0x5 loop=1, retry=0
fwohci0: Enable 1394a Enhancements
fwohci0: fwphy_rddata: 0x5 loop=1, retry=0
fwohci0: fwphy_rddata: 0x2 loop=1, retry=0
fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
fwohci0: Link S400, max_rec 2048 bytes.
fwohci0: BUS_OPT 0xf064a022 -> 0xf864a022
fwohci0: fwohci_set_intr: 1
fwohci0: Initiate bus reset
fwohci0: fwphy_rddata: 0x1 loop=1, retry=0
fwohci0: fwphy_rddata: 0x1 loop=1, retry=0
wakeup from sleeping state (slept 00:00:06)
ata0: reiniting channel ..
ata0: reset tp1 mask=03 ostat0=50 ostat1=00
ad0: stat=0x50 err=0x01 lsb=0x00 msb=0x00
ata0-slave:  stat=0x00 err=0x01 lsb=0x00 msb=0x00
ata0: reset tp2 mask=03 stat0=50 stat1=00 devices=0x1<ATA_MASTER>
ata0: resetting done ..
ad0: pio=0x0c wdma=0x22 udma=0x45 cable=80pin
ad0: setting PIO4 on VIA 8231 chip
ad0: setting UDMA100 on VIA 8231 chip
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
fwohci0: fw_set_bus_manager: 0->0 (loop=0)
firewire0: bus manager 0 (me)
send phy_config root_node=-1 gap_count=5
fwohci0: start AT DMA status=0
Current DB 0
ch = 0
  Current OP   KEY INT BR   len     Addr   Depend Stat: Cnt
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0000:0000 Nostat
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0000:0000 Nostat
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0000:0000 Nostat
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0000:0000 Nostat
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0000:0000 Nostat
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0000:0000 Nostat
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0000:0000 Nostat
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0200:0000  No stat(0)
0029d080 OUTM ST0 NEV NEV     0 00000000 00000000 0000:0000 Nostat
fwohci0: unrecoverable error
ad0: setting UDMA100 on VIA 8231 chip
ata0: device config done ..
ata1: reiniting channel ..
ata1: reset tp1 mask=03 ostat0=50 ostat1=00
acd0: stat=0x10 err=0x01 lsb=0x14 msb=0xeb
ata1-slave:  stat=0x01 err=0x01 lsb=0x00 msb=0x00
ata1: reset tp2 mask=03 stat0=10 stat1=01 devices=0x4<ATAPI_MASTER>
ata1: resetting done ..
acd0: pio=0x0c wdma=0x22 udma=0x42 cable=40pin
bus_explore done
acd0: setting PIO4 on VIA 8231 chip
acd0: setting UDMA33 on VIA 8231 chip
acd0: setting UDMA33 on VIA 8231 chip
ata1: device config done ..
atkbd: the current kbd controller command byte 0047
atkbd: keyboard ID 0x41ab (2)
kbdc: RESET_KBD return code:00fa
kbdc: RESET_KBD status:00aa
acpi_cmbat0: battery initialization start
acpi_cmbat0: battery initialization done, tried 1 times
acpi_ec0: info: new max delay is 678 us


The second problem is that my pcmcia controler don't work with ACPI enabled.

cbb0: <O2Micro OZ6912/6972 PCI-CardBus Bridge> at device 8.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
pcib0: matched entry for 0.8.INTA (source \\_SB_.LNKB)
pcib0: _PRS resource entry has unsupported type 2
cbb: Unable to map IRQ...
device_probe_and_attach: cbb0 attach returned 12

So I have tried to dump and decompile the dsdt, it gives me 3 warnings 
when i try to recompile it :

gericom-webgine_advance1400.asl  2107:                             Store 
(Local0, BST0)
Warning  2079 -                                       Statement is 
unreachable ^

gericom-webgine_advance1400.asl  2517:                 Method (STM, 0, 
Serialized)
Warning  2019 -             Not all control paths return a value ^  (STM_)

gericom-webgine_advance1400.asl  2923:     Method (_WAK, 1, NotSerialized)
Warning  2026 -   Reserved method must return a value ^  (_WAK)

You can find the asl here : 
http://www.u-admin.org/misc/gericom-webgine_advance1400.asl

You will find here my dmesg after a boot -v :
http://www.u-admin.org/misc/dmesg-gericom_webgine_advance1400

Here is the output of the 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: 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
hw.acpi.reset_video: 1
hw.acpi.cpu.max_speed: 16
hw.acpi.cpu.current_speed: 16
hw.acpi.cpu.performance_speed: 16
hw.acpi.cpu.economy_speed: 8
hw.acpi.cpu.cx_supported: C1/0 C2/90
hw.acpi.cpu.cx_lowest: 0
hw.acpi.cpu.cx_history: 51477/0 0/0
hw.acpi.thermal.min_runtime: 0
hw.acpi.thermal.polling_rate: 30
hw.acpi.thermal.tz0.temperature: 3512
hw.acpi.thermal.tz0.active: 0
hw.acpi.thermal.tz0.thermal_flags: 0
hw.acpi.thermal.tz0._PSV: -1
hw.acpi.thermal.tz0._HOT: -1
hw.acpi.thermal.tz0._CRT: 3682
hw.acpi.thermal.tz0._ACx: 3432 -1 -1 -1 -1 -1 -1 -1 -1 -1
hw.acpi.battery.life: 100
hw.acpi.battery.time: -1
hw.acpi.battery.state: 0
hw.acpi.battery.units: 1
hw.acpi.battery.info_expire: 5
hw.acpi.acline: 1

Any help would be appreciated.

Best regards.
-- 
Alexandre Ahmim-Richard
passe@clope.net
http://www.u-admin.org
