Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754321AbYKJGrY (ORCPT ); Mon, 10 Nov 2008 01:47:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751706AbYKJGrO (ORCPT ); Mon, 10 Nov 2008 01:47:14 -0500 Received: from yw-out-2324.google.com ([74.125.46.31]:6023 "EHLO yw-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751853AbYKJGrM (ORCPT ); Mon, 10 Nov 2008 01:47:12 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ZaNuB6DnhKVy8PxIi1dqeYdhuKP8LIDukkRruiFYvwp6Zzey4A3leayH4EReKG+gAJ sUwRjNgsUjZOa1CXd38YQTB1AV1n7Lj04TSnuPZWsjp5BhoOlg0w0hyga1Bgt+0hmnw0 dYKS6+Z2dc7irBNzI0dwNJOfNvxlFvbkbfat0= Message-ID: <8d6898730811092247u2d376f60u6bb74dd40fe81326@mail.gmail.com> Date: Mon, 10 Nov 2008 12:17:10 +0530 From: "Nobin Mathew" To: "Grant Grundler" Subject: Re: sharing interrupt between PCI device Cc: "Jiri Slaby" , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, "Robert Hancock" In-Reply-To: <8d6898730811092239s3397ef6bw4bb5934de258786e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4910E8AC.7050407@shaw.ca> <8d6898730811042349p19e65556l8e1c851b27758d5@mail.gmail.com> <20081108172716.GA28039@colo.lackof.org> <4915E43E.4010206@gmail.com> <20081108191536.GC28039@colo.lackof.org> <8d6898730811092235u4a41c664vd641d2792dee4c50@mail.gmail.com> <8d6898730811092239s3397ef6bw4bb5934de258786e@mail.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3417 Lines: 93 Version of the running kernel 2.6.18-92.el5. Thanks On Mon, Nov 10, 2008 at 12:09 PM, Nobin Mathew wrote: > lspci -vs 1:4 is taken before inserting the drivers. > > Thanks > > On Mon, Nov 10, 2008 at 12:05 PM, Nobin Mathew wrote: >> lspci output >> >> [root@localhost ~]# lspci -vs 1:4 >> 01:04.0 System peripheral: Compaq Computer Corporation Integrated >> Lights Out Controller (rev 03) >> Subsystem: Hewlett-Packard Company Unknown device 3305 >> Flags: medium devsel, IRQ 11 >> I/O ports at 2800 [size=256] >> Memory at fdee0000 (32-bit, non-prefetchable) [size=512] >> Capabilities: [f0] Power Management version 3 >> >> 01:04.2 System peripheral: Compaq Computer Corporation Integrated >> Lights Out Processor (rev 03) >> Subsystem: Hewlett-Packard Company Unknown device 3305 >> Flags: medium devsel, IRQ 225 >> BIST result: 00 >> I/O ports at 1400 [disabled] [size=256] >> Memory at fded0000 (32-bit, non-prefetchable) [disabled] [size=2K] >> Memory at fdec0000 (32-bit, non-prefetchable) [disabled] [size=8K] >> Memory at fde00000 (32-bit, non-prefetchable) [disabled] [size=512K] >> [virtual] Expansion ROM at fdd20000 [disabled] [size=64K] >> Capabilities: [f0] Power Management version 3 >> >> 01:04.4 USB Controller: Hewlett-Packard Company Proliant iLO2 virtual >> USB controller (prog-if 00 [UHCI]) >> Subsystem: Hewlett-Packard Company Unknown device 3305 >> Flags: medium devsel, IRQ 225 >> I/O ports at 1800 [disabled] [size=32] >> Capabilities: [f0] Power Management version 3 >> >> 01:04.6 IPMI SMIC interface: Hewlett-Packard Company Proliant iLO2 >> virtual UART (prog-if 01) >> Subsystem: Hewlett-Packard Company Unknown device 3305 >> Flags: medium devsel, IRQ 50 >> Memory at fddf0000 (32-bit, non-prefetchable) [size=256] >> Capabilities: [f0] Power Management version 3 >> >> dmesg messages and /proc/interupts are attached. >> >> >> command sequence just for reference >> >> insmod hpilo >> insmod uhci_hcd >> cat /proc/interrupts >> dmesg >> rmmod hpilo >> rmmod uhci_hcd >> dmesg >> >> Thanks >> Nobin Mathew >> >> On Sun, Nov 9, 2008 at 12:45 AM, Grant Grundler >> wrote: >>> On Sat, Nov 08, 2008 at 08:10:54PM +0100, Jiri Slaby wrote: >>>> Grant Grundler napsal(a): >>>> > So I see how the IRQ is enabled and disabled. I still don't see where >>>> > an interrupt handler is bound to IRQ 225 (output you posted today in >>>> > another email). >>>> >>>> This irq setup is done during pci_enable_device. >>> >>> Sorry, I wasn't quite correct: pci_enable_device() should only assign IRQs, >>> not enable them. request_irq() would enable them. >>> >>>> > Nobin, can you dump /proc/interrupts when both drivers >>>> > are loaded and also send the dmesg output after both are loaded? >>>> >>>> This won't show the hp driver as it doesn't request_irq. >>> >>> Yup - that's what I expect too. But I was afraid something else might >>> be calling request_irq() and I'm just not seeing it. :) >>> >>> grant >>> >> > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/