From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754009Ab0DTQFG (ORCPT ); Tue, 20 Apr 2010 12:05:06 -0400 Received: from va3ehsobe004.messaging.microsoft.com ([216.32.180.14]:54742 "EHLO VA3EHSOBE004.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753850Ab0DTQFC (ORCPT ); Tue, 20 Apr 2010 12:05:02 -0400 X-SpamScore: -3 X-BigFish: VPS-3(zz4015Lzz1202hzzz32i2a8h87h43h65h) X-Spam-TCS-SCL: 4:0 X-FB-DOMAIN-IP-MATCH: fail X-WSS-ID: 0L16NBD-02-P7O-02 X-M-MSG: Date: Tue, 20 Apr 2010 18:04:24 +0200 From: Joerg Roedel To: Jesse Barnes CC: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: pci_get_dev_by_id() from interrupt handlers Message-ID: <20100420160423.GD31537@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Organization: Advanced Micro Devices =?iso-8859-1?Q?GmbH?= =?iso-8859-1?Q?=2C_Karl-Hammerschmidt-Str=2E_34=2C_85609_Dornach_bei_M=FC?= =?iso-8859-1?Q?nchen=2C_Gesch=E4ftsf=FChrer=3A_Thomas_M=2E_McCoy=2C_Giuli?= =?iso-8859-1?Q?ano_Meroni=2C_Andrew_Bowd=2C_Sitz=3A_Dornach=2C_Gemeinde_A?= =?iso-8859-1?Q?schheim=2C_Landkreis_M=FCnchen=2C_Registergericht_M=FCnche?= =?iso-8859-1?Q?n=2C?= HRB Nr. 43632 User-Agent: Mutt/1.5.20 (2009-06-14) X-OriginalArrivalTime: 20 Apr 2010 16:04:24.0952 (UTC) FILETIME=[25A7B780:01CAE0A3] X-Reverse-DNS: unknown Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jesse, I have a question regarding the warning in the pci_get_dev_by_id() [search.c] function which triggers when called from interrupt context. As far as I have seen this function should be save to be called in atomic mode. Is there any other reason it should not be called in interrupt handlers? I need to (indirectly) call this function for my IOMMU driver to handle events from the IOMMU. Thanks, Joerg