From owner-acpi-jp@jp.freebsd.org  Sat Feb 24 07:21:28 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id HAA44112;
	Sat, 24 Feb 2001 07:21:28 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id HAA44077
	for <acpi-jp@jp.freebsd.org>; Sat, 24 Feb 2001 07:21:27 +0900 (JST)
	(envelope-from jhb@FreeBSD.org)
Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241])
	by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f1NMHrl43344;
	Fri, 23 Feb 2001 14:17:53 -0800 (PST)
	(envelope-from jhb@FreeBSD.org)
Message-ID: <XFMail.010223142009.jhb@FreeBSD.org>
X-Mailer: XFMail 1.4.0 on FreeBSD
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <14998.56397.93642.417117@grasshopper.cs.duke.edu>
Date: Fri, 23 Feb 2001 14:20:09 -0800 (PST)
From: John Baldwin <jhb@FreeBSD.org>
To: Andrew Gallatin <gallatin@cs.duke.edu>
Cc: acpi-jp@jp.freebsd.org, msmith@FreeBSD.org
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 1077
Subject: [acpi-jp 1077] RE: status of ACPI based power-mgmnt in -current?
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: jhb@FreeBSD.org


On 23-Feb-01 Andrew Gallatin wrote:
> 
> John Baldwin writes:
>  > 
>  > On 23-Feb-01 Andrew Gallatin wrote:
>  > > 
>  > > Hi,
>  > > 
>  > > I've been playing with FreeBSD-current's ACPI features on a Dell
>  > > PowerEdge-4400.  I cannot seem to make the machine power-off, nor can
>  > > I suspend it.   Can somebody help?
>  > > 
>  > > I've attempted to power the machine off via:
>  > ># acpiconf -e
>  > ># halt -p
>  > > 
>  > > I then see this on the serial console:
>  > > 
>  > >   Waiting (max 60 seconds) for system process `bufdaemon' to
> stop...stopped
>  > >   Waiting (max 60 seconds) for system process `syncer' to stop...stopped
>  > > 
>  > >   syncing disks... 
>  > >   done
>  > >   Uptime: 8m2s
>  > >   Power system off using ACPI...
>  > > 
>  > > 
>  > > However, the machine is still up and running (power LED on, all 8
>  > > disks spinning, etc).  If I attempt to press the power button, I see
>  > > one "stray irq 9" on console.
>  > 
>  > Let me guess, in your ACPI dump it says you have an INT_MODEL of APIC?  I
> have
>  > similar problems on my SMP boxes here.  I think that currently the ACPI
> code
>  > doesn't handle this right, (APIC INT_MODEL) as it tries to register the
> PIC IRQ
>  > 9 for its interrupt, rather than intpin 9 on the i/o apic, but Mike Smith
> might
>  > be more knowledgable about this.
> 
> Yes:
> 
> <....>
> INT_MODEL=APIC
> SCI_INT=9
> SMI_CMD=0xb0, ACPI_ENABLE=0x69, ACPI_DISABLE=0x6a, S4BIOS_REQ=0x0
> <....>
> 
> However: The machine is uniprocessor, and I'm not using the PIC, not
> the APIC.

Oh my.  Well, I'm not sure that ACPI knows that. :)  If its wired to pin 9 on
the APIC, I guess that might be IRQ 9 on the pic, but I'm not sure. 
Regardless, I'm not sure yet if we are setting up the interrupt right on SMP
systems using the APIC.  If ACPI ties itself to the APIC and we don't init the
APIC...  But you got a stray interrupt, so maybe the ACPI code isn't settign up
an interrupt if the INT_MODEL is APIC?  I'll look in the code..

> Drew

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
