From owner-freebsd-usb@FreeBSD.ORG Sat Dec 3 21:27:33 2005 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 933E016A41F; Sat, 3 Dec 2005 21:27:33 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id BD04543D49; Sat, 3 Dec 2005 21:27:16 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3086349 for multiple; Sat, 03 Dec 2005 16:25:14 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jB3LR5Em020892; Sat, 3 Dec 2005 16:27:05 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: jpeg@thilelli.net Date: Sat, 3 Dec 2005 16:26:57 -0500 User-Agent: KMail/1.8.3 References: <49704.192.168.1.18.1113475314.squirrel@webmail.thilelli.net> <200512020811.33720.jhb@freebsd.org> <62227.192.168.1.20.1133563026.squirrel@webmail.thilelli.net> In-Reply-To: <62227.192.168.1.20.1133563026.squirrel@webmail.thilelli.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512031626.59048.jhb@freebsd.org> X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: freebsd-acpi@freebsd.org, freebsd-usb@freebsd.org, bug-followup@freebsd.org 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 List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2005 21:27:33 -0000 On Friday 02 December 2005 05:37 pm, Julien Gabel wrote: > > Ok, yours is a more odd case. :) This is debatably a bug in your ASL, > > but I think we can work around it. It is routing your USB interrupts > > to IRQ 10 but is not using a link device to do it, and it is not > > including an INTR_OVERRIDE entry in the MADT to change IRQ 10 from the > > default of edge/trigger to level/low. The patch below forces all > > hard-wired PCI interrupts routed via ACPI to be level/low. This patch > > should apply both to HEAD and 6.x and maybe 5.x. > > > > Index: acpi_pcib.c > > [...] > > Ok. I think you finally got it this time. Applied this patch against > RELENG_6 and it seems to work fine now. I build and installed the kernel, > set the loader.conf directives > hint.acpi.0.disabled to 0 > hint.apic.0.disabled to 0 > and reboot on the system... it works well now, thank you ;) Ok, fix committed. It will be in 6.1 as well. > >> More precisely, here is a little tab... to be more accurate (i hope): > >> > >> --------------------------------------- > >> USB support | ACPI | APIC | > >> ------------------------ > >> > >> | on | off | on | off | > >> > >> --------------------------------------- > >> Did not boot(*)| | XX | | XX | > >> --------------------------------------- > >> (*) The boot disk seems not be able to be used for the root mount, i.e. > >> ufs:/dev/ad0s1a in my case. > > > > If you could get a verbose dmesg for this case using a serial console I= 'd > > be interested in looking at that too. > > Certainly! The output can be found at: > http://www.thilelli.net/~jgabel/store/pub/PR/74989/serial.dmesg.boot-v > > Note: the kernel used for this boot was the just-previously-patched one. Ok, what happens here is that the $PIR code ends up using IRQ 14 for a=20 virgin-routed link. You can just use a tunable to override this like so: hw.pci.link.0x1.irq=3D12 That should make the vga adapter use irq 12 rather than irq 14. If you hav= e a=20 BIOS setting that says 'enable VGA irq' you could also try turning that on.= =20 However, you'd probably much rather be running with ACPI + APIC enabled=20 anyway. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org