From owner-acpi-jp@jp.FreeBSD.org Wed Dec 11 13:52:45 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id gBB4qjd14691;
	Wed, 11 Dec 2002 13:52:45 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from smtp1.mivlmd.cablespeed.com (smtp1.mivlmd.cablespeed.com [24.35.0.18] (may be forged))
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with SMTP/inet id gBB4qi214686
	for <acpi-jp@jp.FreeBSD.org>; Wed, 11 Dec 2002 13:52:44 +0900 (JST)
	(envelope-from mccrobie@cablespeed.com)
Received: (qmail 22176 invoked by uid 0); 11 Dec 2002 04:52:24 -0000
Received: from unknown (HELO cablespeed.com) (216.45.73.136)
  by 0 with SMTP; 11 Dec 2002 04:52:24 -0000
Message-ID: <3DF6C488.746B555C@cablespeed.com>
From: Chuck McCrobie <mccrobie@cablespeed.com>
X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386)
X-Accept-Language: en
MIME-Version: 1.0
To: "Vladimir B. Grebenschikov" <vova@express.ru>
CC: acpi-jp@jp.FreeBSD.org, "current@freebsd.org" <current@freebsd.org>
References: <1039431323.1314.18.camel@vbook> <1039531425.10656.71.camel@vbook>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 10 Dec 2002 23:52:24 -0500
X-Sequence: acpi-jp 2035
Subject: [acpi-jp 2035] Re: ACPI missfucntioning on SONY VAIO Z505s with CURRENT (RC)
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: mccrobie
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+021210

"Vladimir B. Grebenschikov" wrote:
> 
>  Mon, 09.12.2002,  13:55, Vladimir B. Grebenschikov :
> 
> > I have already filled http://www.freebsd.org/cgi/query-pr.cgi?pr=45913
> >
> > Lucent WaveLan Orinoco card  (driver wi) stops working with latest
> > current (last I have tried RC)
> >
> > Playing with problem I have found that WaveLan problem can be cured
> > by turning off ACPI.
> >
> > Also another problem cured - with turned off ACPI I can insert and
> > remove PCCARDs while notebook running, card successful detected.
> > With ACPI turned on insertion/removal of PCCARD freezes machine
> > completely.
> 
> Another thing - without ACPI: pcm driver detected
> but does not work:
> 
> Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc046c0b4.
> pcm0: <NeoMagic 256AV> mem 0xfea00000-0xfeafffff,0xfe000000-0xfe3fffff
> irq 9 at device 8.1 on pci0
> pcm0: buftop is 0x0027ec00
> pcm0: buftop is changed to 0x0027ec00
> pcm0: ac97 codec id 0x414b4d01 (Asahi Kasei AK4542)
> pcm0: ac97 codec features headphone, 5 bit master volume, AKM 3D Audio
> pcm0: rec buf 0xcb49bc00
> pcm0: play buf 0xcb497c00
> 
> # cat /dev/sndstat
> FreeBSD Audio Driver (newpcm)
> Installed devices:
> pcm0: <NeoMagic 256AV> at memory 0xfe000000, 0xfea00000 irq 9 (1p/1r/2v
> channels duplex default)
> #
> 
> but does not work
> 
> pcm0:virtual:1: play interrupt timeout, channel dead
> pcm0:virtual:1: play interrupt timeout, channel dead
> 
> > Can I help to diagnose problem ? how ?
> --
> Vladimir B. Grebenschikov <vova@express.ru>
> TSB "Russian Express"
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message

Sony Vaio GRX 670 did not play sound either - interrupt routing issue. 
"Fixed" with the following:

/usr/src/sys/dev/pci/pci.c: line 776, or there-abouts.

        if (cfg->intpin > 0 && PCI_INTERRUPT_VALID(cfg->intline)) {
#ifdef __ia64__
                /*
                 * Re-route interrupts on ia64 so that we can get the
                 * I/O SAPIC interrupt numbers (the BIOS leaves legacy
                 * PIC interrupt numbers in the intline registers).
                 */
                cfg->intline = PCIB_ROUTE_INTERRUPT(pcib, dev,
cfg->intpin);
+#else
+                /*
+                 * XXX: Do we need to re-program the device's PCIREG
intline?
+                 */
+
+                cfg->intline = PCIB_ROUTE_INTERRUPT(pcib, dev,
cfg->intpin);
#endif
                resource_list_add(rl, SYS_RES_IRQ, 0, cfg->intline,
                  cfg->intline, 1);
        }
