From owner-acpi-jp@jp.freebsd.org  Mon Oct 29 22:32:24 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id WAA14511;
	Mon, 29 Oct 2001 22:32:24 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from funasoul.arch.info.mie-u.ac.jp (funasoul.arch.info.mie-u.ac.jp [133.67.36.13])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with SMTP id WAA14502
	for <acpi-jp@jp.freebsd.org>; Mon, 29 Oct 2001 22:32:18 +0900 (JST)
	(envelope-from funa@funa.org)
Received: (qmail 4083 invoked from network); 29 Oct 2001 13:32:15 -0000
Received: from localhost (127.0.0.1)
  by localhost with SMTP; 29 Oct 2001 13:32:15 -0000
Date: Mon, 29 Oct 2001 22:32:14 +0900 (JST)
Message-Id: <20011029.223214.78702345.funa@funa.org>
To: acpi-jp@jp.freebsd.org
From: Akira Funahashi <funa@funa.org>
In-Reply-To: <20011029.093510.41626124.iwasaki@jp.FreeBSD.org>
References: <XFMail.011028083502.jhb@FreeBSD.org>
	<20011029.015558.74754050.iwasaki@jp.FreeBSD.org>
	<20011029.093510.41626124.iwasaki@jp.FreeBSD.org>
X-Mailer: Mew version 2.0 on Emacs 21.1 / Mule 5.0 (SAKAKI)
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 1396
Subject: [acpi-jp 1396] Re: Libretto L2
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: funa@funa.org

Hi, 

Thank you Mr. Baldwin for detailed information about getting stack
trace. And thank you Watanabe-san and Isawaki-san for help.
I must apologize that my previous mail ([acpi-jp 1389]) didn't
contain useful debug message.
I want to get the stack trace, but my laptop doesn't have a serial
port and ddb won't work after the double panic. Only I can do is to
reboot and use gdb -k on kernel.debug. I'll try it later.

Mitsuru IWASAKI <iwasaki@jp.freebsd.org> wrote:
> The root cause of this problem was in ACPICA and Osd in
> AcpiEnterSleepState() after all for me.  Funamashi-san, could you try
> attached patch?

I've applied your patch to the kernel source, and tried 
"acpiconf -s 3". Great!! Now my LibrettoL2 can wake up from S3 state.
I must run 'killall -HUP moused' and switch to console when I run
"acpiconf -s 3" under X running, but that's not a problem.

The problem I have is that fxp and pccard(OLDCARD) are dead after
resume. For fxp, I've tried "kldunload if_fxp" before "acpiconf -s 3"
and kldload'ed after it wakes up, but fxp won't come back. The message
is as follows:

  # kldunload if_fxp
  # acpiconf -s 3
  <set to S3 state>
  <wake up>
  wakeup from sleeping state (slept 01:38:58)
  ata0: resetting devices .. done
  ata1: resetting devices .. done

  # kldload if_fxp
  fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0xedc0-0xedff mem 0xdfe00000-0xdfefffff,0xdffff000-0xdfffffff irq 10 at device 14.0 on pci0
  fxp0: Ethernet address 00:00:39:03:d0:a8
  inphy0: <i82555 10/100 media interface> on miibus0
  inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
  fxp0: device timeout
  fxp0: device timeout
  fxp0: device timeout
  fxp0: device timeout

And pccard can't read CIS after resume. The card I've tested (Flash
ATA) was working before suspend.

  # pccardc dumpcis
  Configuration data for card in slot 0
  Tuple #1, code = 0xff (Terminator), length = 0
  1 slots found

I'm greatly happy about the progress, but I wish I can use fxp or
pccard after resume.
-- 
Akira Funahashi/[funa@funa.org]
