From owner-freebsd-usb@FreeBSD.ORG Tue Nov 29 22:00:26 2005 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 008A316A420 for ; Tue, 29 Nov 2005 22:00:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5331E43D70 for ; Tue, 29 Nov 2005 22:00:15 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jATM0CSU017212 for ; Tue, 29 Nov 2005 22:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jATM0CC8017211; Tue, 29 Nov 2005 22:00:12 GMT (envelope-from gnats) Date: Tue, 29 Nov 2005 22:00:12 GMT Message-Id: <200511292200.jATM0CC8017211@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: John Baldwin Cc: Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2005 22:00:26 -0000 The following reply was made to PR usb/74989; it has been noted by GNATS. From: John Baldwin To: jpeg@thilelli.net Cc: freebsd-acpi@freebsd.org, bug-followup@freebsd.org, freebsd-usb@freebsd.org Subject: Re: usb/74989: (regression) Lost USB support between 5.2.1-RELEASE and 5.3-RELEASE on K7T266 Pro2. Date: Tue, 29 Nov 2005 16:50:06 -0500 On Friday 15 April 2005 09:31 am, Julien Gabel wrote: > >> I made some progress here. After playing with BIOS settings, i am now > >> able to: > >> - Boot with ACPI enable (shutdown -p works as expected now); > >> - Use USB devices. > >> > >> In order to do that, i had to totally disable "APIC Function" in the > >> BIOS. With "APIC Function" enabled, neither version 1.4 nor 1.1 of the > >> "MPS Table Version" settings solved my problem. > >> > >> So, although i need to disable "APIC Function", all seems to works > >> correctly together: ACPI support and USB support. As a side note, i > >> did not encountered anymore the interrupt storm on the uhci USB host > >> controller driver. > >> > >> Maybe can someone explain me what may be wrong with "APIC Function", > >> and if there is some drawbacks to disable it (or what is the purpose > >> of this setting)? > > > > APIC is used to route interrupts differently. You can also disable it > > from the loader with 'hint.apic.0.disabled=1'. I've looked at your > > dmesg's, and the problem is that in the ACPI case the IRQ 10 that your > > USB controllers are using is configured as an ISA IRQ (edge/high). For > > now you can either disable APIC or ACPI as a workaround until I figure > > out a better solution. > > Thanks. I effectively prefer turn APIC off via the loader configuration > than from the BIOS settings, i think it is far more easily to remember > what i have done from this place. > > I can try patch(es) or make test(s) without problem on this machine, if > any. Thanks a lot. Actually, can you try this patch: Index: acpi_pci_link.c =================================================================== RCS file: /host/cvs/usr/cvs/src/sys/dev/acpica/acpi_pci_link.c,v retrieving revision 1.48 diff -u -r1.48 acpi_pci_link.c --- acpi_pci_link.c 1 Nov 2005 22:44:07 -0000 1.48 +++ acpi_pci_link.c 28 Nov 2005 13:03:29 -0000 @@ -859,7 +859,18 @@ if (!link->l_routed && PCI_INTERRUPT_VALID(link->l_irq)) { link->l_routed = TRUE; + /* + * Some BIOSen are broken and actually set + * some interrupts to active-high with level + * trigger. Workaround this by hard-coding + * active-low and level-trigger. + */ +#if 0 acpi_config_intr(dev, resource); +#else + BUS_CONFIG_INTR(dev, link->l_irq, + INTR_TRIGGER_LEVEL, INTR_POLARITY_LOW); +#endif pci_link_interrupt_weights[link->l_irq] += link->l_references; } -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org