From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 10 17:37:13 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8F21106567C for ; Tue, 10 Aug 2010 17:37:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id 5D0118FC1B for ; Tue, 10 Aug 2010 17:37:12 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=v89yDwyNY1EA:10 a=8nJEP1OIZ-IA:10 a=M8b_wTzEtboA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=rYIz90Yos4e7FC7J1LAA:9 a=kJ5shmO7C9yzjAxWpleGwBfg5zwA:4 a=wPNLvfGTeEIA:10 a=9aOQ2cSd83gA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 1249170766; Tue, 10 Aug 2010 19:32:10 +0200 From: Hans Petter Selasky To: Neel Natu Date: Tue, 10 Aug 2010 19:28:40 +0200 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <201008041918.54028.hselasky@c2i.net> <201008042129.32095.hselasky@c2i.net> In-Reply-To: X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201008101928.40492.hselasky@c2i.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Not getting interrupts from PCI express slot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 17:37:14 -0000 On Wednesday 04 August 2010 23:24:12 Neel Natu wrote: > Hi, > > On Wed, Aug 4, 2010 at 12:29 PM, Hans Petter Selasky wrote: > > On Wednesday 04 August 2010 21:13:55 Neel Natu wrote: > >> Hi, > >> > >> On Wed, Aug 4, 2010 at 10:18 AM, Hans Petter Selasky > > > > wrote: > >> > Hi, > >> > > >> > I'm not getting any interrupts from a PCI express slot. When I insert > >> > a device, no attach event is generated. If the device is present > >> > during boot the device is fully detected, but still no IRQ's. Is > >> > there anything I can do or test? > >> > >> Is the driver using legacy INT-A style interrupt or MSI/MSI-X? > > > > I don't know. How can I find out. It is a PCI driver like EHCI. > > I looked at the ehci_pci.c driver and it looks like it only requests > legacy interrupt. It may be that the legacy interrupt routing is > screwed up by the BIOS. > Hi, > You can try a few things to narrow this down a bit: > > % devinfo -ru: this will tell you which irq is being assigned to the ehci > device > devinfo -ru | grep -Ei "irq|port|xhci" 16 (xhci0) I/O ports: 0xf6000000-0xf6001fff (xhci0) ACPI I/O ports: > % vmstat -i: this will tell you the number of interrupts received on > that irq. It would be especially telling if you saw any stray > interrupts as it may indicate bad interrupt routing. > vmstat -i irq16: xhci0 5538390 957 Thanks for your reply. I'm now getting interrupts like other PCI devices. The only problem left is that my XHCI PCI express device does not generate an attach event when inserted. It is only detected if I boot with the device plugged in. Is it so to understand that PCI express system is not supported? How much effort would be required to add support for this? --HPS