From owner-freebsd-mobile@FreeBSD.ORG Fri Aug 4 15:35:56 2006 Return-Path: X-Original-To: freebsd-mobile@freebsd.org Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C038516A4DD for ; Fri, 4 Aug 2006 15:35:56 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D17943D45 for ; Fri, 4 Aug 2006 15:35:56 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k74FZnG3003112; Fri, 4 Aug 2006 11:35:54 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-mobile@freebsd.org, yraffah@savola.com Date: Fri, 4 Aug 2006 11:15:08 -0400 User-Agent: KMail/1.9.1 References: <1152019643.704.42.camel@redevil.savola.com> <200608031114.51389.jhb@freebsd.org> <44D24E6C.9050502@savola.com> In-Reply-To: <44D24E6C.9050502@savola.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608041115.09320.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 04 Aug 2006 11:35:54 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Subject: Re: Interrupt Storms on irq:11 with Tecra A4 X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Aug 2006 15:35:56 -0000 On Thursday 03 August 2006 15:28, Yousef Raffah wrote: > John Baldwin wrote: > > On Thursday 03 August 2006 03:47, Yousef Raffah wrote: > > > >> John Baldwin wrote: > >> > >>> On Wednesday 02 August 2006 01:56, Yousef Raffah wrote: > >>> > >>> Well, these two appear to be your problem due to your BIOS having > >>> buggy ASL. You can work around it, but you'll need to figure out > >>> the names of your link devices first. 'devinfo -v' with ACPI > >>> enabled can help with that. For example, on my laptop: > >>> > >>> % devinfo -v | grep 'pci_link[67]' > >>> pci_link6 pnpinfo _HID=PNP0C0F _UID=106 at handle=\_SB_.C002.C0F2 > >>> pci_link7 pnpinfo _HID=PNP0C0F _UID=107 at handle=\_SB_.C002.C0F3 > >>> > >>> > >>> > >> Here is my devinfo > >> devinfo -v | grep 'pci_link[67]' > >> pci_link6 pnpinfo _HID=PNP0C0F _UID=7 at handle=\_SB_.PCI0.LPCB.LNKG > >> pci_link7 pnpinfo _HID=PNP0C0F _UID=8 at handle=\_SB_.PCI0.LPCB.LNKH > >> > >> So I can see that pci_link6 is named LNKG and pci_link7 is LNKH > >> > > > > Yep. > > > > > >>> pci_link6 is called C0F2, and pci_link7 is called C0F3. You'll use > >>> these names to override the IRQ for the link device by setting the > >>> following variables in the loader: > >>> > >>> hw.pci.link.C0F2.irq=11 > >>> hw.pci.link.C0F3.irq=11 > >>> > >>> (You'll have to replace C0F2 and C0F3 with the names for your link > >>> devices. Probably LNKF and LNKG.) > >>> > >> Based on that, I should have the following in my /boot/loader.conf? > >> hw.pci.link.LNKG.irq=11 > >> hw.pci.link.LNKH.irq=11 > >> > > > > Yep. > > > > > >> Let us try the loader file first and see if we need the patch after that. > >> > > > > Ok. I'm betting you will need the patch, but just want to make sure first. > > > > > Looks like I do need the patch as the interrupt storm is still there. > Now how do I do that? > What should I do with this code? I mean where to put it? is there a > special way of > patch file < your_patch ? Just: cd /usr/src/sys patch < /path/to/patch_file and then build a new kernel. > Index: dev/acpica/acpi_pci_link.c > =================================================================== > RCS file: /usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v > retrieving revision 1.53 > diff -u -r1.53 acpi_pci_link.c > --- dev/acpica/acpi_pci_link.c 6 Jan 2006 16:14:32 -0000 1.53 > +++ dev/acpica/acpi_pci_link.c 2 Aug 2006 14:27:09 -0000 > @@ -941,18 +941,16 @@ > KASSERT(!PCI_INTERRUPT_VALID(link->l_irq), > ("%s: link already has an IRQ", __func__)); > > - /* Check for a tunable override and use it if it is valid. */ > + /* Check for a tunable override. */ > if (ACPI_SUCCESS(acpi_short_name(acpi_get_handle(dev), link_name, > sizeof(link_name)))) { > snprintf(tunable_buffer, sizeof(tunable_buffer), > "hw.pci.link.%s.%d.irq", link_name, link->l_res_index); > - if (getenv_int(tunable_buffer, &i) && > - PCI_INTERRUPT_VALID(i) && link_valid_irq(link, i)) > + if (getenv_int(tunable_buffer, &i) && PCI_INTERRUPT_VALID(i)) > return (i); > snprintf(tunable_buffer, sizeof(tunable_buffer), > "hw.pci.link.%s.irq", link_name); > - if (getenv_int(tunable_buffer, &i) && > - PCI_INTERRUPT_VALID(i) && link_valid_irq(link, i)) > + if (getenv_int(tunable_buffer, &i) && PCI_INTERRUPT_VALID(i)) > return (i); > } > > > > > > > -- > > Sincerely, > > Yousef Adnan Raffah > Security Officer > The Savola Group > > ------------------- > Aren't you using Firefox? Get it at http://www.getfirefox.com > > > -- John Baldwin