From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yinghai Lu Subject: Re: [PATCH v5 10/33] iommu, irq: Allocate irq_desc for dmar_msi with local node Date: Fri, 21 Feb 2014 23:44:40 -0800 Message-ID: References: <1388707565-16535-1-git-send-email-yinghai@kernel.org> <1388707565-16535-11-git-send-email-yinghai@kernel.org> <53070393.5020005@linux.intel.com> <53081614.4020503@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-oa0-f53.google.com ([209.85.219.53]:45655 "EHLO mail-oa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbaBVHok (ORCPT ); Sat, 22 Feb 2014 02:44:40 -0500 In-Reply-To: <53081614.4020503@linux.intel.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Jiang Liu Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Tony Luck , Bjorn Helgaas , "Rafael J. Wysocki" , "linux-pci@vger.kernel.org" , Linux Kernel Mailing List , ACPI Devel Maling List , Joerg Roedel , Donald Dutile , Sebastian Andrzej Siewior , "stable@vger.kernel.org" On Fri, Feb 21, 2014 at 7:14 PM, Jiang Liu wrote: > Seems there is no such protection on IA64 side. I feel create_irq_nr() > returns 0 for error is a little risky, 0 may be > a valid IRQ number on other platforms(no sure about this). > Thanks! in [PATCH] ia64, irq: Add dummy create_irq_nr() +unsigned int create_irq_nr(unsigned int from, int node) +{ + int irq = create_irq(); + + if (irq < 0) + irq = 0; + + return irq; +} + so that from is ignored. create_irq_nr() is only with x86 and ia64. Thanks Yinghai