From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com ([217.140.101.70]:53808 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23991359AbdBHORAcjEmQ (ORCPT ); Wed, 8 Feb 2017 15:17:00 +0100 From: Marc Zyngier 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") References: <1485353305-23672-1-git-send-email-marcin.nowakowski@imgtec.com> 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 Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Marcin Nowakowski Cc: linux-kernel@vger.kernel.org, Paul Burton , Thomas Gleixner , Jason Cooper , linux-mips@linux-mips.org Message-ID: <20170208141645.rVZ8Yf06r7urBRzCDNvcRdylAd5QR2ZyEYlA9sLnBmM@z> 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.