From owner-acpi-jp@jp.freebsd.org  Sun Oct 14 14:19:59 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id OAA44590;
	Sun, 14 Oct 2001 14:19:59 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (root@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id OAA44585
	for <acpi-jp@jp.freebsd.org>; Sun, 14 Oct 2001 14:19:59 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92])
	by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id f9E5Jvm58960;
	Sun, 14 Oct 2001 14:19:57 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Date: Sun, 14 Oct 2001 14:19:56 +0900 (JST)
Message-Id: <20011014.141956.41628441.iwasaki@jp.FreeBSD.org>
To: acpi-jp@jp.freebsd.org
Cc: bsd-nomads@clave.gr.jp
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
In-Reply-To: <20011014123032.A15596%yakoh@sd.keio.ac.jp>
References: <20011013072103.A13195%yakoh@sd.keio.ac.jp>
	<20011013.192945.74756155.iwasaki@jp.FreeBSD.org>
	<20011014123032.A15596%yakoh@sd.keio.ac.jp>
X-Mailer: Mew version 2.0 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1342
Subject: [acpi-jp 1342] Re: S4BIOS implementation
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

# Cc bsd-nomads because this contains patches against pcic.c.
# Warner-san, could you review this?

From: Takahiro Yakoh <yakoh@sd.keio.ac.jp>
Subject: [acpi-jp 1341] Re: S4BIOS implementation (was Re: panic in EcWaitEventIntr?(Re: HEADS UP: ACPI CHANGES AFFECTING MOST -CURRENT USERS))
Date: Sun, 14 Oct 2001 12:30:32 +0900
Message-ID: <20011014123032.A15596%yakoh@sd.keio.ac.jp>

> Hi, Intel folks.  I've test S4BIOS patches on FIVA 206.
> BIOS suspend and resume becomes to work.  Great! > Iwasaki-san.

Thanks for your report.  I also tested this on some laptops
which supports hibernation.  So far so good :-)

> I want to report some problems should be solved further.
>   1. Console blinks a character at a fixed point, difference to
>      where real cursor exists on.

Yes but this is a trivial problem.  I saw this on other machine too
(e.g.  TOSHIBA PORTEGE and etc.).  Switching to graphics mode will
clear blinking cursor.

>   2. Pccard reports "inserted, slot 1" though there are no card inserted.
>      Since I don't use pccard usually, my pccard setting might be
>      incorrect.

Could you try attached patches?

>   3. On board ethernet chip(rl0) is died after resuming.
>      When I want to use, it reports "rl0: watchdog timeout".

Ah yes, it seems something wrong with rl driver.  I have a script to
unload and load kernel module as a workaround.

----
killall dhclient 2> /dev/null
route flush 2>&1 > /dev/null
while ifconfig rl0 inet delete 2> /dev/null; do
        :
done

acpiconf -s 4

kldunload if_rl
ifconfig rl0 media 10baseT/UTP
dhclient rl0 &
----

Thanks

Index: pcic.c
===================================================================
RCS file: /home/ncvs/src/sys/pccard/pcic.c,v
retrieving revision 1.166
diff -u -r1.166 pcic.c
--- pcic.c	13 Sep 2001 08:26:55 -0000	1.166
+++ pcic.c	13 Oct 2001 15:32:09 -0000
@@ -759,7 +759,7 @@
 		pcic_setb(sp, PCIC_MISC1, PCIC_MISC1_SPEAKER);
 		pcic_setb(sp, PCIC_MISC2, PCIC_LPDM_EN);
 	}
-	if (sp->slt->state != inactive)
+	if (sp->slt->state != inactive && sp->slt->laststate == suspend)
 		pcic_do_stat_delta(sp);
 }
 
