Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1045521ybh; Wed, 18 Mar 2020 13:58:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvA5rggPyYh3ygeMGnh/aHHN564NHzsVdNVPN/82Lhegf5xqGfSg8cDveMt927aIWrYF7jd X-Received: by 2002:a9d:895:: with SMTP id 21mr5328177otf.365.1584565134891; Wed, 18 Mar 2020 13:58:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584565134; cv=none; d=google.com; s=arc-20160816; b=cYRXCSM6CQ1j1RXrXbMSrZ3aEJW+0/9KyNXbZYYaIMooRBWwKxJlf7/oiC4jrjg6NQ HKC+t8DMEW3yNQpaVk2KiTammzGNGj3AC8Za1om9KPb7gKX8xwQ4IsbgLBEXTRKCOYlJ CdlGZD9KmIHv3qDKL0cACX+YlTiL1RtGSZp8woOLuSsOJ/sC7Oq/jcxKAf/Q4OegaY/v wYu/cjMehXrDk8oyEX4ZW1ncq/6MicoG5NYqgCItg5LB51e4AQ7VNFD+mw55SEH1NQaf 5odHixbgIhaKFvB+I1NdXacYAVPS7lHogZDrKTmQffRiOFbSTjd/+ubMewZDMUL7ZJbA I/3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OgY7VOfHkDDaQpSxYo5KTfoLcV1Kuu6VW0kJTpIhH6I=; b=qQcQl5i3V1V7r85QvqMmuVwET4RwsEhD4GTN6S20JBiUn5ZjxN7YrFsxZ+nLn6MzbZ SAFnCDkvASjHrawBOM7N2lP2hr/+VMzZQDAXR2+8gfI6/UII/raj3DqKjCgcwR0cX7s7 Jr6EHxwyMGAEJ+3sCGu9hhPCp32RSv+8+0b06+BJ8scj/oN4PUHWhwOz04VweNorvoMA NAj1zdgNqyVw28+EqLNSLs6B7EmUybPn8+y07ACQr+5kJXc8LXqnWSOagMYAuNi/kPzI c3eVTRLpd8ZHzcY5giWKAnLmsK6iYiEGE2GKqp1b+Df9OiA86W2UcnMbIjq4LvbxUwfM Ochg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xljifAxN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 94si68926otc.25.2020.03.18.13.58.42; Wed, 18 Mar 2020 13:58:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xljifAxN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727438AbgCRU5t (ORCPT + 99 others); Wed, 18 Mar 2020 16:57:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:58584 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728339AbgCRU5K (ORCPT ); Wed, 18 Mar 2020 16:57:10 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9674A208E0; Wed, 18 Mar 2020 20:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584565029; bh=rFLv1ZfRcV+svX8JTmV+UQxowcY75lz27dYs4kS6JTk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xljifAxNivUslQxB0dEZbzfkBmD+lKeG1i4Zu0f4ZRaU7QqI58Yeigqxo2i7lgJj3 No8I85DDU9TleHICnvT+UQMBEoeHcB/Cf6mFuyFNGH386BIT46hb59dGhDR4MXSMk6 IfsNELEx6AoL/oVqpy/sO2tX4ylZfDhlQ/aiJdiU= Date: Wed, 18 Mar 2020 20:57:05 +0000 From: Will Deacon To: Tuan Phan Cc: patches@amperecomputing.com, Mark Rutland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, suzuki.poulose@arm.com Subject: Re: [PATCH 1/2] perf: dsu: Allow multiple devices share same IRQ. Message-ID: <20200318205704.GC8094@willie-the-truck> References: <1584491176-31358-1-git-send-email-tuanphan@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1584491176-31358-1-git-send-email-tuanphan@os.amperecomputing.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+Suzuki, since he wrote the driver] On Tue, Mar 17, 2020 at 05:26:15PM -0700, Tuan Phan wrote: > Add IRQF_SHARED flag when register IRQ such that multiple dsu > devices can share same IRQ. > > Signed-off-by: Tuan Phan > --- > drivers/perf/arm_dsu_pmu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c > index 70968c8..2622900 100644 > --- a/drivers/perf/arm_dsu_pmu.c > +++ b/drivers/perf/arm_dsu_pmu.c > @@ -700,7 +700,7 @@ static int dsu_pmu_device_probe(struct platform_device *pdev) > if (!name) > return -ENOMEM; > rc = devm_request_irq(&pdev->dev, irq, dsu_pmu_handle_irq, > - IRQF_NOBALANCING, name, dsu_pmu); > + IRQF_NOBALANCING | IRQF_SHARED, name, dsu_pmu); > if (rc) { > dev_warn(&pdev->dev, "Failed to request IRQ %d\n", irq); > return rc; > -- > 2.7.4 >