From patchwork Thu Jun 1 03:01:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilkka Koskinen X-Patchwork-Id: 13262924 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4DB5C7EE24 for ; Thu, 1 Jun 2023 03:03:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ola1IwrLF7sjmDa2U6d0hOr+NGN4ntMl26OJIvq/D04=; b=tGFTYApiYzCzyK Ld7+RDzk6Xf18442LP6aqIEdo0GzixH2b+N6KECKid16Hq8GskHUzmZzM4c+Qs7IlCT3hW+PnAjRh aLoCkE+N21vSo1FC0UIBYcSDZPqWhlYq1l0+kaM+HrkLQB6cYo5DS4ictFm/xRf1J6IGa8N9nbMpw 9BqcTSFYfAWBvyP6ZI/F4QYOtN8xHN+U5cGWrIDHPiiNAWLiu60SHTTiFN9Vj0MwcD7/Nch3PsSpC nMCW3ZKLXDoMZaYdHIT+1KE/a1tHS7cxrzfAbSP4h4rm25qdedJqYr2d8Z6szbrybCqO7DGDwWTEW m64m9fv8q1yn0nuhdVdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q4YaP-001lQE-1S; Thu, 01 Jun 2023 03:02:49 +0000 Received: from mail-mw2nam04on20728.outbound.protection.outlook.com ([2a01:111:f400:7e8c::728] helo=NAM04-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q4YaL-001lOq-33 for linux-arm-kernel@lists.infradead.org; Thu, 01 Jun 2023 03:02:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PmQ/d4FiUmDaygse92YShTw9URN/7am4UdcB6l5JV9Y/Z0QYgnCuFcs2PqHoiM/fYl5JcAKbwhh7M+vUkAP/gKphEnLxqL1p54NcZcjqveTkev+dw5bF21kxZ6hL6xqLz9pM+Fx/bEN5iGYoiGjDVf58VSvDqcYaTvT2UKvIC8KPGv0+pfIa2WRHoKJa5zVL0PIgxI7+bWdv/UIBEID5g7oKKIOEnbio7k0ECwDWlRzyFxEnkucK/TKgTg4Z4K+0CdxzmKzDX0G/j9cIKeD5RYX6Uh+aS2Cm27nRtdStuNVi6VC/cT+aNY6YpnvhUrrIuNZPic+WCtcdY/yUgtZFrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tWKe79HyrxnVliMN+kGZfKv197rvGPnxmP5qPgke8t4=; b=bE7Gt9i4N8Kr1dh8Wt7hynV31lOwfEqsFvEkx3MgGbZmuDAERu9qr4+DIet443ZH2dNyJKk6SGQ3SjvGFL0O5Z5GUMG2lpQ89b+bhZF/a9rMf9rbHqQ5ub+qxRsBD5PyoHMdyOMMqBk0bNiWZzVZMTMQL/xyuYublckOtpE5lTzGQqnNRae1QOTYIC8ab6+B/8JaICmj0B49SO7ulfctbgMP/VhotIRmv5qdiQ6gUOXFOeTlbEwjATXL6qtPhztK94HemONqKP6vTc/ma7JrE7Msq+qkk3+2D3IrBXReb6pO0unccaxPeaxJlVBa55oKFVIqZiwoFgEuVtdJyZ4RIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tWKe79HyrxnVliMN+kGZfKv197rvGPnxmP5qPgke8t4=; b=KGCE9+OmBzFRH5I5onFxkIlUNi7VZN73iegFfC7HHjIFbRKru++AiwuyuB+zBEv6noVqoNIr5ZaA9xin3aGpmSYUPB1IRxyxxAQYXk/0KRKH/89Ju5aOAfsQ7k/faqLK+XnT6D2LN/m2nY7W3D0K0qH+4rxxGcMFjPORVtSg0cY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) by CO1PR01MB6709.prod.exchangelabs.com (2603:10b6:303:f9::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.22; Thu, 1 Jun 2023 03:02:37 +0000 Received: from DM5PR0102MB3590.prod.exchangelabs.com ([fe80::5aae:2a5e:15f5:8196]) by DM5PR0102MB3590.prod.exchangelabs.com ([fe80::5aae:2a5e:15f5:8196%2]) with mapi id 15.20.6433.022; Thu, 1 Jun 2023 03:02:36 +0000 From: Ilkka Koskinen To: Jonathan Corbet , Will Deacon , Mark Rutland , Besar Wicaksono , Suzuki K Poulose , Robin Murphy Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ilkka Koskinen Subject: [PATCH v2 2/5] perf: arm_cspmu: Support shared interrupts Date: Wed, 31 May 2023 20:01:41 -0700 Message-Id: <20230601030144.3458136-3-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230601030144.3458136-1-ilkka@os.amperecomputing.com> References: <20230601030144.3458136-1-ilkka@os.amperecomputing.com> X-ClientProxiedBy: CH0PR08CA0015.namprd08.prod.outlook.com (2603:10b6:610:33::20) To DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR0102MB3590:EE_|CO1PR01MB6709:EE_ X-MS-Office365-Filtering-Correlation-Id: 13111809-f624-40bd-89c4-08db624ca6e5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mMyBiOcOwL8NQqEA/n7pZOGFCkDaESg4pyoC2XI9OPR3Jnn6MQzYfUyAH5JcQfIJKYDjrT71DQBa8WUMWVeIM03ZCtdo9r+DZFzejF8LzOHbdWQI5GirUEQKYN/UdVlsrxJPRv23BtMqKvBW5lYnd1mZm6JfyHmxAglS1UzENV0SCOpewcJhwj7qnSrSd/aIsN+tXj3vU6Belx/CiK7+s6Vlm9jAdncyT6Jm7XXpbrVmfqr0CWXxGJhzSGZAxeZer+dzy+FI9/Oln6gCKgqE/KminEJxzmJy/dc6f00u5S8jE7Pb1nA4wypbXg12Tp1F53TielHXSlA296Jz3UlR9/1f3nTON/EGEVP1Qaks7P66D4mvmHbl8/8TAYbaJuKTNvKAOFA/6fVeEDGO6fu7yqnGmOaYr0DSXI2NkDHZVkxTin/uw23m+SZuRh/UDblDlrHjbjHOVZLONCNLnpACfBs4vijq+oQC/Mwt2qZ2wfDhFc/XQ3CCkEr0hKGncwVn5mxdwOCWPe01L/ZWRVA/d+s4zah78tMfzTMzpKoa+ddoe67c63TsC/geBhquvHatXlRoEMqmrnH15Fhznr/BR4rMJIFmngqLOGZl3Cpt74tTcZnCrjC9Zj4VA7Cm7/DUBmMa8yv8bPAgpu6Ez2RJiwWQoLndEnSR4xjj67H2H4k= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR0102MB3590.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(136003)(366004)(376002)(346002)(451199021)(316002)(83380400001)(4744005)(2906002)(110136005)(6506007)(1076003)(38100700002)(26005)(6512007)(66556008)(66476007)(4326008)(38350700002)(66946007)(86362001)(2616005)(478600001)(5660300002)(186003)(6666004)(41300700001)(52116002)(6486002)(8676002)(8936002)(107886003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sO92BGVzI/p7+A853GHmpSfS+WfGvLpc/yyK5L3ktWBYdwQP/pPcNhI4eQj0oqPKHLkYXRaPIpbmjLl+0W65DtSXsrbWpAlIxMotdXItRNDQ35NDGD+ItJ0+shk72kZdoLv1oHBAg9UDUvV6AeYB/MWy3ypzvjHOjHuN9JA9zOD/J2ii7gJHG2eDzYnBgTeU1+r2rKxiOH6vC4F5yFRQrRGoBusXvvu24GCWDzfY1vDlksNl0y1s/NZi3ORHkKpj/ssZ4kd2J38OoG/Cy/397ciqx7fg2h7HzsGW19VlkI13vDUuobxoqc8VzK7oQ6WP5twnsvvXpn4b6JDt3tQBOya3Fo/AaSurB6WyBvKOhODd+axNh7n7phLVN1xFR7kBCcn4sBptJ/CSHL9QDbUMV/Zeb5I1nJj91Sw+I6RikhbP8kEZ+5eTdx049X/uNffipYKHzaD2uxBPSME+56jNyi+tH1r8MIFhK3qi2pWcwERR+CoVwYqIkolY6PhNT7mYTd/H+ul7z/4DNcDgaAk3GUnvxSKn5dPoixKktYPISfsoyxcuuGtvVFMztM9W/l2cQSyVIIC/FMYQvGsYBrjSlSJ6+pVAQUgRFik3Dbq6/1NbuVdAv7YRcA5gj0K/cSlhP96n99CVT60y5ikTwTmS17mMltwb78eg2EX526mIGHpXVqC3s7xd/O8QrCa59SgnmrL2lU4OKUrMpR/Kru0dO+6LQFK4340YK+tVRHNv9Qu0jExHQw1UXdIcF68QEjkUnRhNoOLWLNtMkLLS/+ePP0iK1eeau6yHnZJ5+CX4607ha3YinlAwu5nDXSMUcD3Y2a1/KWBBcTwlAwA0xd1TnYU+AjdNpWtgJP+BavchggkXk2S+gKo9ppFe5852iU3KwXLl5WUj41j68M5apDzkga71I4HZZniN89BxBLUeAD/dyr1ut0KRXPBAO/kIoRSdFEi/kXMJdbembncFAVEdkVc0W7aChFu14MhCLbsFRHSfWUP0KhEcdqPk4eOcjRQscohjzG3418TPArxCItS/s4WmDwuwT51+3mynKFzZoiRTURpDmjV+w7GJqVHZ0/iwQOs6LrS/4UW68Y3opfhPLWz6Brsa5MGdkmKrGUrUeaaiH9Kk/7A5MAndRLZAK+gPLmQ5jDwJOSnZ+W9esIPwASD0Aqu3fztclJT8cnZuP0AFvrrIki0uQ1xbfBUccUcBxym7xgxWCWABU+x57UUyH6I12w8cyFPSRGDWBws4CIZpBUX2xlnJglw1bAEG4/Zd+1QxFYnzX70PbyI6a1kmKpizKWMjOKUvIKbolqxpBQLFbUHBEIRugtBTYAEdDliSuM2Lia/HiGrmTaECcQBIQffrndqgHFyOFY46KD0K7A8BCf92ibrNpK1stPPZFSjn+5b2uJjtYVq8ne+2MHieU9aFcJrT04V0+kZsxx3KtIF051UJYQs/+E1q5KIlvnKr2iXmChVKZRBti5q6evWbCowzgdIz/868yF4Qm/cP3Wb/kuofe8tGZhC6kM9yvgOAk5DdGnQPmLrbO5ksuM196dDT1EnQR/toJ/VJpxykOZ5SCutRvS3EXtyoQtFeEjtjo+8Tp/bpC2t9nv7gLNzhSg== X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13111809-f624-40bd-89c4-08db624ca6e5 X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3590.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jun 2023 03:02:36.1762 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1rcmitTyd0dzqxQq/HUZFdkoLf3t1nnd8PKnRMAl06FbG8zIN5lztF9q6E27+Jda5RyAEdyrO+i4L0xHWlpLJNZJa5qnLPSqQ3j8fggSx5DugIxF1XvsJiCo6Z69tbp6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR01MB6709 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230531_200246_005114_AE8CCF5D X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Some of the PMUs may share the interrupt. Support them by setting IRQF_SHARED Signed-off-by: Ilkka Koskinen --- drivers/perf/arm_cspmu/arm_cspmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c index 88547a2b73e6..cc5204d1b5fb 100644 --- a/drivers/perf/arm_cspmu/arm_cspmu.c +++ b/drivers/perf/arm_cspmu/arm_cspmu.c @@ -1067,8 +1067,8 @@ static int arm_cspmu_request_irq(struct arm_cspmu *cspmu) return irq; ret = devm_request_irq(dev, irq, arm_cspmu_handle_irq, - IRQF_NOBALANCING | IRQF_NO_THREAD, dev_name(dev), - cspmu); + IRQF_NOBALANCING | IRQF_NO_THREAD | IRQF_SHARED, + dev_name(dev), cspmu); if (ret) { dev_err(dev, "Could not request IRQ %d\n", irq); return ret;