Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751297AbaKFF3V (ORCPT ); Thu, 6 Nov 2014 00:29:21 -0500 Received: from mail-qa0-f51.google.com ([209.85.216.51]:52319 "EHLO mail-qa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751184AbaKFF3Q (ORCPT ); Thu, 6 Nov 2014 00:29:16 -0500 MIME-Version: 1.0 In-Reply-To: <545AFFF1.5030509@linux.intel.com> References: <1415102525-9898-1-git-send-email-jiang.liu@linux.intel.com> <1415102525-9898-22-git-send-email-jiang.liu@linux.intel.com> <20141105230952.GH6168@google.com> <545AFFF1.5030509@linux.intel.com> From: Bjorn Helgaas Date: Wed, 5 Nov 2014 22:28:55 -0700 Message-ID: Subject: Re: [Patch Part2 v4 21/31] PCI/MSI: enhance PCI MSI core to support hierarchy irqdomain To: Jiang Liu Cc: Benjamin Herrenschmidt , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "Rafael J. Wysocki" , Randy Dunlap , Yinghai Lu , Borislav Petkov , Grant Likely , Marc Zyngier , Yingjoe Chen , Matthias Brugger , Yijing Wang , Alexander Gordeev , Konrad Rzeszutek Wilk , Andrew Morton , Tony Luck , Joerg Roedel , Greg Kroah-Hartman , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-acpi@vger.kernel.org" , linux-arm Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 5, 2014 at 9:58 PM, Jiang Liu wrote: > On 2014/11/6 7:09, Bjorn Helgaas wrote: >> On Tue, Nov 04, 2014 at 08:01:55PM +0800, Jiang Liu wrote: >>> +{ >>> + return (irq_hw_number_t)msidesc->msi_attrib.entry_nr | >>> + PCI_DEVID(pdev->bus->number, pdev->devfn) << 11 | >>> + (pci_domain_nr(pdev->bus) & 0xFFFFFFFF) << 27; >> >> Where does this bit layout come from? Is this defined in the spec >> somewhere? A reference would help. > We need a unique number to identify every possible MSI source, > and this ID number is only used within the irqdomain subsystem. > So we used above algorithm to generate the ID number, there's > no specification for it. A comment to that effect would be great. Bjorn -- 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/