From: Julien Grall Subject: [PATCH v2 0/3] Find automatically a PPI for the DOM0 event channel IRQ Date: Thu, 15 Jan 2015 20:23:39 +0000 Message-ID: <1421353422-13133-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YBqxi-0004LJ-8t for xen-devel@lists.xenproject.org; Thu, 15 Jan 2015 20:24:14 +0000 Received: by mail-we0-f179.google.com with SMTP id q59so16802761wes.10 for ; Thu, 15 Jan 2015 12:24:12 -0800 (PST) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: ian.campbell@citrix.com, Julien Grall , tim@xen.org, stefano.stabellini@citrix.com, parth.dixit@linaro.org, christoffer.dall@linaro.org List-Id: xen-devel@lists.xenproject.org Hello, This patch series replaces the per-platform hardcoded event channel interrupt to a generic solution. It will make the port to a new platform easier and may avoid to introduce per-platform code with the new upcoming ACPI support. This could be done by keeping track of vIRQ (emulated and assigned) used by a domain. While the new set of function to keep track of vIRQ is only used for PPI in this series. We will need them for IRQ routing very soon. Parth: I provided an updated branch on my personal repo [1]. It's based on the latest upstream branch. You can use vgic_allocate_virq(d, 0), to allocate the event channel PPI. Major changes in v2: - Rework patch #2 to drop the lock - Rework vgic_free_virq which was completely buggy - Drop former patch #3 [2]. I will send a separate series to RAZ/WI register bits which are associated to unwired IRQ. Sincerel yours, [1] git://xenbits.xen.org/people/julieng/xen-unstable.git branch find-evtchn-v2 [2] https://patches.linaro.org/42184/ Julien Grall (3): xen/arm: vgic: Rename nr_lines into nr_spis xen/arm: vgic: Keep track of vIRQ used by a domain xen/arm: Find automatically a PPI for the DOM0 event channel interrupt xen/arch/arm/domain.c | 14 +++++-- xen/arch/arm/domain_build.c | 16 ++++++++ xen/arch/arm/gic-v2.c | 2 - xen/arch/arm/gic-v3.c | 2 - xen/arch/arm/platform.c | 7 ---- xen/arch/arm/platforms/xgene-storm.c | 5 ++- xen/arch/arm/vgic-v2.c | 2 +- xen/arch/arm/vgic-v3.c | 2 +- xen/arch/arm/vgic.c | 73 +++++++++++++++++++++++++++++++----- xen/arch/arm/vtimer.c | 25 ++++++++++++ xen/include/asm-arm/domain.h | 3 +- xen/include/asm-arm/platform.h | 4 -- xen/include/asm-arm/vgic.h | 17 ++++++++- 13 files changed, 140 insertions(+), 32 deletions(-) -- 2.1.4