From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 21:24:14 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 37E001065679 for ; Wed, 4 Aug 2010 21:24:14 +0000 (UTC) (envelope-from neelnatu@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id BD5B78FC26 for ; Wed, 4 Aug 2010 21:24:13 +0000 (UTC) Received: by wwa36 with SMTP id 36so5797329wwa.31 for ; Wed, 04 Aug 2010 14:24:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Hf2MBoatV83IbrynEpvhJPGINxWXWcMM7Phgeh2T9b4=; b=PxcMbTVGGGQSU6zDNYMMucZogBL571QU2bp4up9x0/jB9Z5zRyUWNM2KwNEvyoWxRT yTDEq7GAUQSUGhu6A8qqgh4FqfpogYeBwdbDyULAqRMQL4LEBHVCM0ZhuUdJT7AVjWX+ BlD9uWyiTiYnJSYl9ZRdRtxcnIWr5LhySPYIM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=tLG8+XoWfeTNhmHZQFmy+MjNDS6Qel2gj3mrPZr3e5eOaRNQneDQ+Q+ewzbVx+BKGb FoaWkX186jBSaX82jniHm8o/NT/x2LHQlbG3syofUfwQiRP/tPYRJx/dUBmbKpdTAGdD gBGTmjLBBeaqj5OGth0ccWWvskJVHGQZkOjgw= MIME-Version: 1.0 Received: by 10.227.133.81 with SMTP id e17mr7920480wbt.186.1280957052506; Wed, 04 Aug 2010 14:24:12 -0700 (PDT) Received: by 10.216.80.8 with HTTP; Wed, 4 Aug 2010 14:24:12 -0700 (PDT) In-Reply-To: <201008042129.32095.hselasky@c2i.net> References: <201008041918.54028.hselasky@c2i.net> <201008042129.32095.hselasky@c2i.net> Date: Wed, 4 Aug 2010 14:24:12 -0700 Message-ID: From: Neel Natu To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 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: Wed, 04 Aug 2010 21:24:14 -0000 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. 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 % 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. Hope this helps. best Neel > --HPS >