From owner-acpi-jp@jp.freebsd.org  Tue Oct 30 03:45:39 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id DAA32898;
	Tue, 30 Oct 2001 03:45:39 +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 DAA32893
	for <acpi-jp@jp.freebsd.org>; Tue, 30 Oct 2001 03:45:39 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92])
	(authenticated as iwa with CRAM-MD5)
	by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id f9TIjXW45085;
	Tue, 30 Oct 2001 03:45:33 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Date: Tue, 30 Oct 2001 03:45:32 +0900 (JST)
Message-Id: <20011030.034532.41636600.iwasaki@jp.FreeBSD.org>
To: andrew.grover@intel.com, jhb@FreeBSD.org
Cc: acpi-jp@jp.freebsd.org
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
In-Reply-To: <20011029234444D.ie9t-sbgk@asahi-net.or.jp>
References: <20011029.093510.41626124.iwasaki@jp.FreeBSD.org>
	<20011029.223214.78702345.funa@funa.org>
	<20011029234444D.ie9t-sbgk@asahi-net.or.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 1400
Subject: [acpi-jp 1400] Re: Libretto L2
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

Hi, Intel folks.  Could you merge the patch in [acpi-jp 1395] if
acceptable?  As I reported long time ago, it seems that calling
AcpiOsStall() in AcpiEnterSleepState() causes strange behaviors at
wakeup time if sleep state is not S5 on Toshiba laptops.


John, very sorry, I forgot this problem was identified before.
AcpiOsStall() is actually DELAY() in FreeBSD implementation, but
I don't understand why this cause double fault or mutex releated
panic on wakeup time.  %esp destroyed? Cache corrupted?
# We would be happy if you have enough time to analyze it :-)


> > > The root cause of this problem was in ACPICA and Osd in
> > > AcpiEnterSleepState() after all for me.  Funamashi-san, could you try
> > > attached patch?
> funa> I've applied your patch to the kernel source, and tried 
> funa> "acpiconf -s 3". Great!! Now my LibrettoL2 can wake up from S3 state.
> funa> I must run 'killall -HUP moused' and switch to console when I run
> funa> "acpiconf -s 3" under X running, but that's not a problem.
> 
> I also confirm this. Thank you Iwasaki-san.

Thanks for testing!
# for your mouse, options PSM_HOOKRESUME maybe helpful?
# and for X crash, how about syscons_isa.c patches in [acpi-jp 1340]?

Thanks
