From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751545AbdBBMr3 (ORCPT ); Thu, 2 Feb 2017 07:47:29 -0500 Received: from foss.arm.com ([217.140.101.70]:56416 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbdBBMr2 (ORCPT ); Thu, 2 Feb 2017 07:47:28 -0500 Date: Thu, 2 Feb 2017 12:47:27 +0000 From: Will Deacon To: Sodagudi Prasad Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tsoni@quicinc.com, pfay@qti.qualcomm.com Subject: Re: irq_work_run called from armv8pmu_handle_irq Message-ID: <20170202124727.GA13839@arm.com> References: <762e1210e12fbc693b3d0e27361df53f@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <762e1210e12fbc693b3d0e27361df53f@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 01, 2017 at 12:15:01PM -0800, Sodagudi Prasad wrote: > we would like to understand why irq_work_run() is getting called from > armv8pmu_handle_irq() irq handler for arm SoC. > > Is this irq_work frame work designed to run works from ARMPMU irq handlers? > If there are no of drivers using the IRQ WORK frame work, we may see that > ARMPMU irq handler taking long time, right? The perf_event_overflow callback can schedule IRQ work to e.g. disable the PMU and want to make sure this runs before we EOI the PMU IRQ. Will From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Thu, 2 Feb 2017 12:47:27 +0000 Subject: irq_work_run called from armv8pmu_handle_irq In-Reply-To: <762e1210e12fbc693b3d0e27361df53f@codeaurora.org> References: <762e1210e12fbc693b3d0e27361df53f@codeaurora.org> Message-ID: <20170202124727.GA13839@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Feb 01, 2017 at 12:15:01PM -0800, Sodagudi Prasad wrote: > we would like to understand why irq_work_run() is getting called from > armv8pmu_handle_irq() irq handler for arm SoC. > > Is this irq_work frame work designed to run works from ARMPMU irq handlers? > If there are no of drivers using the IRQ WORK frame work, we may see that > ARMPMU irq handler taking long time, right? The perf_event_overflow callback can schedule IRQ work to e.g. disable the PMU and want to make sure this runs before we EOI the PMU IRQ. Will