From owner-acpi-jp@jp.FreeBSD.org Sat Sep 14 00:23:42 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g8DFNg278740;
	Sat, 14 Sep 2002 00:23:42 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g8DFNf378735
	for <acpi-jp@jp.FreeBSD.org>; Sat, 14 Sep 2002 00:23:41 +0900 (JST)
	(envelope-from jhb@FreeBSD.org)
Received: (qmail 6451 invoked from network); 13 Sep 2002 15:23:39 -0000
Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender <jhb@FreeBSD.org>)
          by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP
          for <acpi-jp@jp.FreeBSD.org>; 13 Sep 2002 15:23:39 -0000
Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1])
	by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g8DFNbBv042681
	for <acpi-jp@jp.FreeBSD.org>; Fri, 13 Sep 2002 11:23:38 -0400 (EDT)
	(envelope-from jhb@FreeBSD.org)
Message-ID: <XFMail.20020913112338.jhb@FreeBSD.org>
X-Mailer: XFMail 1.5.2 on FreeBSD
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <20020913.124643.104028373.iwasaki@jp.FreeBSD.org>
From: John Baldwin <jhb@freebsd.org>
To: acpi-jp@jp.FreeBSD.org
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Fri, 13 Sep 2002 11:23:38 -0400
X-Sequence: acpi-jp 1822
Subject: [acpi-jp 1822] RE: acpi issue on my Fiva 205
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: jhb@FreeBSD.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+020902


On 13-Sep-2002 Mitsuru IWASAKI wrote:
>> I noticed that NO interrupts raised from PCCard controllers after
>> resume.  It seems that all current irq settings to ACPI PCI Link
>> object are cleared and default PCI INTLINE settings are restored at
>> resume time :-(
>> Also it's difficult to redo interrupt routing setting in resume method
>> for me, so I added pci_cfgwrite() in acpi_pci_link_set_irq() again.
>> # sorry, John
>> I'll remove it after resume method is implemented so that interrupt
>> routing is set at resume time.
> 
> I've written the pci resume stuff to redo interrupt routing setting at
> resume time.
> http://people.freebsd.org/~iwasaki/acpi/pci_resume-20020912.diff
> Note that John's patch included.  Comments welcome!
># I can remove pci_cfgwrite() from acpi_pci_link_set_irq() again :-)

Cool.  One thing you could do is instead of using the records, just
go and re-route interrupts for all children that have a valid
intline.  You can get the intpin and bus and stuff from the ivars.
You can get the bridge device by doing a device_get_parent() on the
bus device.  Then you don't have to maintain your own separate list.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
