From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754582AbdBHORA (ORCPT ); Wed, 8 Feb 2017 09:17:00 -0500 Received: from foss.arm.com ([217.140.101.70]:49486 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754335AbdBHOQ5 (ORCPT ); Wed, 8 Feb 2017 09:16:57 -0500 From: Marc Zyngier To: Marcin Nowakowski Cc: , Paul Burton , Thomas Gleixner , Jason Cooper , Subject: Re: [PATCH 1/1] irqchip/mips-gic: Fix local interrupts In-Reply-To: <1485353305-23672-1-git-send-email-marcin.nowakowski@imgtec.com> (Marcin Nowakowski's message of "Wed, 25 Jan 2017 15:08:25 +0100") Organization: ARM Ltd References: <1485353305-23672-1-git-send-email-marcin.nowakowski@imgtec.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Date: Wed, 08 Feb 2017 14:16:45 +0000 Message-ID: <8737fo938y.fsf@on-the-bus.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 25 2017 at 2:08:25 pm GMT, Marcin Nowakowski wrote: > Some local interrupts are not initialised properly at the moment and > cannot be used since the domain's alloc method is never called for them. > > This has been observed earlier and partially fixed in commit > e875bd66dfb ("irqchip/mips-gic: Fix local interrupts"), but that change > still relied on the interrupt to be requested by an external driver (eg. > drivers/clocksource/mips-gic-timer.c). > > This does however not solve the issue for interrupts that are not > referenced by any driver through the device tree and results in > request_irq() calls returning -ENOSYS. It can be observed when attempting > to use perf tool to access hardware performance counters. > > Fix this by explicitly calling irq_create_fwspec_mapping() for local > interrupts. > > Fixes: e875bd66dfb ("irqchip/mips-gic: Fix local interrupts") > Signed-off-by: Marcin Nowakowski > Cc: Paul Burton > Cc: Thomas Gleixner > Cc: Jason Cooper > Cc: Marc Zyngier > Cc: linux-mips@linux-mips.org Queued, thanks. M. -- Jazz is not dead, it just smell funny.