From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968722AbdADRqe (ORCPT ); Wed, 4 Jan 2017 12:46:34 -0500 Received: from foss.arm.com ([217.140.101.70]:55234 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968693AbdADRqW (ORCPT ); Wed, 4 Jan 2017 12:46:22 -0500 Subject: Re: Need clarity on MSI handling in RC driver To: valmiki , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org References: <2fea5a0c-7410-97fd-91d1-ae6a06ab1a52@gmail.com> <307e8512-7e14-39a2-c225-6db44e443aea@gmail.com> Cc: helgaas@kernel.org, arnd@arndb.de, mark.rutland@arm.com From: Marc Zyngier Organization: ARM Ltd Message-ID: <060e94a4-00a2-bdb7-caf3-72785b333c83@arm.com> Date: Wed, 4 Jan 2017 17:46:19 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.5.1 MIME-Version: 1.0 In-Reply-To: <307e8512-7e14-39a2-c225-6db44e443aea@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/01/17 17:39, valmiki wrote: > Hi All, > > I have a doubt, the MSI domains are handled differently in different RC > drivers. > > Some drivers use irq_domain_add_linear alone, and some use > pci_msi_create_irq_domain also to handle MSI. > > In most of the 32-bit architectures only irq_domain_add_linear is used > and in 64 bit drivers both pci_msi_create_irq_domain and > irq_domain_add_linear are used. > > So is this because of architecture difference between ARM and ARM64 ? Neither. This is purely a software construct. Newer drivers use the generic MSI infrastructure (which also allows things like non-PCI MSI), while older drivers use some ad-hoc infrastructure which is more or less specific to PCI. The former is the way to go, and the latter is being phased out. I'll let Mark draw some shiny ASCII art. Thanks, M. -- Jazz is not dead. It just smells funny...