Message ID | 20230608203742.3503486-1-ilkka@os.amperecomputing.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 968D1C7EE25 for <linux-arm-kernel@archiver.kernel.org>; Thu, 8 Jun 2023 20:38:40 +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: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:In-Reply-To:References: List-Owner; bh=e2qcJEmeVmSWUNFJLiuWWGqs5ei3219n8O2EqmCjTE0=; b=DNXPgDIX6VpGP4 SrUH0Hk1FRB2KBJi3I42t/fzHz74z0P3TOE3RR6tAPYowNunm9CvWrhtqGxInKJ9uhTFfJu7WEA5U R5NkaiRoZuocgw8NVkaH3ZWZwzePoNsfwO69mf7VF019MT2bNPMdhvDnSoe+pFTC7WjFvGrFQHMka lhbv1c3o3ldkzBk2tD5f73oVg9DO16cCyTCjmMCFBW867ivyqyNJqDGztImm7RVEtwUYnVUsb6v8H 0U8/WKLU49tFhMgvd/98oElELv0F5nXoWP/NTBzaUo2IA7Ej8av8O5eLfEkBjsqYscQekm45gAarM LYkmRT36hgTToJEEM5bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q7MOe-00AZtk-06; Thu, 08 Jun 2023 20:38:16 +0000 Received: from mail-dm6nam12on20701.outbound.protection.outlook.com ([2a01:111:f400:fe59::701] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q7MOa-00AZrw-1y for linux-arm-kernel@lists.infradead.org; Thu, 08 Jun 2023 20:38:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LYJfLF1j3jcXaJIZk8Z6WePGjRMyffWCDxle+AllcBvjRXWBkGeJSbtz08DxA8xhdwbHgDc/uklmuXLjWLs7VSVvYrekYgNZhjrsbQeFkcNR0Su0R2pbJTdWHuX1SwhhlbvLiT542JxBOZkVRv77OYLmEHtieVZoubfz+LwoAwBR35Ejvm7JbiDhG2Ynr0YYuSzU65PYO3G0Y969nfZJ/wSdKN/SufymXFcYEJVaw5BDLQ1HTQfGI22S3VUcspPLGC7nheyytooutHdJFQz8IU5iaInEzhk/LM0sSRtKYv7lJEGijcTU9VhRD1K3rNrN5vT2/tE5Or8UkIhvJn7d6Q== 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=VAgeodxrHzBfPD3iF3I6usiMPaomjhchm9OeASXTV5M=; b=MC5j9fH2dOF7IcomSjrYBl85xWUrDDd2pT0LV1FFfggLw6hFcqsaqfgftJRj4djvH3rpiMoPC2gdezhVDoTOeoIv5HeEJLux1FedxfDu/3JvYI3CSaVBEJY+hsXOMS8d9cf7gczYDol7vgR9PwWdboyhb8QJlM5CysvXAFXKVIlXrnegqwWxnTxW4kjPOT/JsMQ2Xr2j7GtSSfaMYPkG09dZhDpeSWCqEwRRGSQUgy20/dYbXKC5jUSOeNqPYx0x0tdNkEILJhTHHSKkLu0TVH7pFr7qec3RZs5z1Nvm6mSLyTAeNYMZWB6kxnUl6fOtaEzKr7tvqY3KiH0SwBxT9w== 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=VAgeodxrHzBfPD3iF3I6usiMPaomjhchm9OeASXTV5M=; b=irAAOb+jgzMXzWKr05/ywd9me/I9/TI/icqLQezFNagsAv8FeU/EWZL2qg9zmxq4x8HKdoEU74VzHP62ZIRU6phQ4I3266Zz/BURAGkLyk8sgZ7fXQm1K30bZHzEoMjrR82a/ayerpunSAV8nZ5z+MzGzmPpbCPnUmg0y91/Z6E= 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 LV8PR01MB8656.prod.exchangelabs.com (2603:10b6:408:1e9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Thu, 8 Jun 2023 20:37:59 +0000 Received: from DM5PR0102MB3590.prod.exchangelabs.com ([fe80::5aae:2a5e:15f5:8196]) by DM5PR0102MB3590.prod.exchangelabs.com ([fe80::5aae:2a5e:15f5:8196%6]) with mapi id 15.20.6455.037; Thu, 8 Jun 2023 20:37:59 +0000 From: Ilkka Koskinen <ilkka@os.amperecomputing.com> To: Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Besar Wicaksono <bwicaksono@nvidia.com>, Suzuki K Poulose <suzuki.poulose@arm.com>, Robin Murphy <robin.murphy@arm.com>, Randy Dunlap <rdunlap@infradead.org> Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Ilkka Koskinen <ilkka@os.amperecomputing.com> Subject: [PATCH] perf: arm_cspmu: Set irq affinitiy only if overflow interrupt is used Date: Thu, 8 Jun 2023 13:37:42 -0700 Message-Id: <20230608203742.3503486-1-ilkka@os.amperecomputing.com> X-Mailer: git-send-email 2.40.1 X-ClientProxiedBy: CH0P220CA0002.NAMP220.PROD.OUTLOOK.COM (2603:10b6:610:ef::14) To DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR0102MB3590:EE_|LV8PR01MB8656:EE_ X-MS-Office365-Filtering-Correlation-Id: 66c16a67-ddbb-4b90-799f-08db68603f00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: JcIR67CJdI5mKFUjBG83wfX0J7FP2HFHdzJrkigijIS4dg63JI/rkVSQLo91rhAYijTedsRm/zEq4x7q8cUwF8phOLcGu+ag0TK1Z4yF29kQrWirQ71pTcrI7hwu+VQ1qEsDf6iAgPZ5baXdfFZAjIhzm0SaFL7Rfm8uyZDgHxjk9dsFI4iO/xnsF4OFFbrhFFD6fO0je9o91ERGBOEZhqrhid+zVLvKFKoE8DqLMLNQS0l0lxrREn76eT0qO1IIgZhecvMzIQdoYw7oFRlkFF8h4/dteYu7aStIlaCmnD20MD/bP8HrSLUzz4GQZHD5CeJhlPnL2oYUDJUf3YOyfyxRL2M/2z0r40tpqJxbm+1ZXIyPUK7BNvbQHbTdUNp1qquFUxpGhzttaFkmO55uxCsTpdnrmV2gYeBbj5oWMpE5ZYqdaDxoJkiilZUB4AXLy2Ne/YfiKw9wnyXVgGHlenO+Y0xG78BSPs2akQmNWXfh3StT/xj1E+8MJHSEpKyYI5zSrK4KpCVe2R6LDFAzrZMSnKBtjEdEtA0+/bLLAIXb0MECTWuaerOJbNP67RInimkfUZNyjR9BPJIL6iVz+mh0dqnhgt7t7W281tKjBOxRm/qBQCNthsX9ZXvbuQfp 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)(39850400004)(366004)(396003)(376002)(136003)(346002)(451199021)(66946007)(86362001)(38350700002)(38100700002)(6666004)(52116002)(478600001)(110136005)(4744005)(6486002)(2906002)(6506007)(316002)(186003)(26005)(83380400001)(107886003)(2616005)(6512007)(41300700001)(66476007)(66556008)(1076003)(8676002)(4326008)(8936002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 38xJ/spOh6I3mfMBTTvKoTRwj3tvqrqKaHSCcq8PmqhXx1EnCjwVD3AbWttOWZpeEcAh+7sNAgVnOYaAO0DSkCmddFklHBPEuXOv7H0pjo6ZcDO0QKvdQ/5fYGUQbug6sWL4tHrowe2fwqRuiT4Q8PWIOnJeD4sXtu0q5zOcjebadJBKoPNvrPUZoJvQ6R2L0voJ1QzDGnprOZ/9SaycdV6IuQJAukUC7a9BgZ8s0VFgEviXCMEhj0kwajN52hAOMY/oYl3Hy64OFKf95YfLl4ACee7CPz80chqL1an3tz6P8Om7+IKvhcQl1oG1HIbMT/U4GffnIaPefjjlw7805Rsjx7FB5kzYxH4zO3wybx4SrIiYSBCccyMCHCYNgqHGibbflwz1FmCbcMYQP+xIAKz3vXx8C/PxOd9bZUBG300HtBCm8UP0TGOoVcmTxDhpNNMj4uSzdbRJUO0mKDfNibvexso/v2v0dHUBkka8N3MOWbQtAgqnzg4aanyYd7uhAEd4U2WJdzcygh3hunUJQlfiZEueRehXgfsooT6yGBckYEi6kAYKOFSqomuvDhVcREv+H2yWaKS4THEFLa4bss6IhnbsjabgDQ2quvuG5XK/dXk7aVLIxy/T7FESOUmjxOkA5sTewCO3/QqalZ7druTsKSeL9qhBVpdKlOf35im/003VbK3DpN1ifgLiQJcojehL7Ld8YDy6zI2IEUxprAwnxH6s1IhCugjdLnKSEMoBOJMbH3ksL+dx9AU2QibUst25UXqw640MAlDDQ+jUO+yArJFzK9nkzeepPrLBWo5BSgktQSJBQl4aKlxvdR40bP5aTrD4HIDK80tYbUuEuj5jt3gAyQ5JhRhvc0tcJB16fUUUmwGo1tbZtdZz6hg3421tqsjIxV00MOAWIQwUj58ntos5/tz3Pd/vhvRcUEdejhCOMKEjkfD+MHxphqz/hAJl9XCE7LrZ2MSIlNULebM/akNZFSJDck0Huli9R+P22+5G9cg4baAHtYJ78BkhU4HYRVNNGd0wqaZSzc4c+VNoMC03dIwOWrv4iBm40R1y7l/gI71+FCJoGLIF6J0UpW/lkYMs7rNnpvhy9nV92Z6WLip+AzkZWnrDNuHSsoFGqWS7lBViLXw2hHqwrqFQtcaxAohwAYKjxDwwRQeI5YdGvrNkDGRavpPE2Jt05bcYbe1sipKVC4Q1zAv1sHiFqLmUtiBmyMcQAaQajJa0wcrKf4+AuXjGF5koBaJhQ4rJRJdc8Tm9WXXG5pmT/Xam/n06+Lt6+sMvP+7FLchBn0UUgjxAbQiYFoUmXjvmjxkc+JHxpNgiqz5HVjwFOnIso5E3SoTR1B7lIkSz7wF65vCo/MxhDYFS0pI1XsXXsosmqkufyVEdHrrEYEUYwW76T2wZOyr+029Nz4jZiLP1yN078x7gZgioZdswkdV/EZyBXryRMqLpV5raQeGpUydpzYpPld9g/UNl4aSqXeDZqMaYj1lP34X42tFek3b7MaIhzn8H2p+/h25ESCjsGRk7Olr0B2atyMViK9BMA2/YTIzvOohQW/Z3SIrjw4OA8chP3omGsjU4xDhfTl8xBWu+3oxOyUb+zC5x6Tf6zKgw0A== X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66c16a67-ddbb-4b90-799f-08db68603f00 X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3590.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2023 20:37:58.7981 (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: wz7FP5P/eAe0TbTvCU7HdCF4h0Ey/uvcJJhtuCkLhcJ7dDKBEvxb9Rjxvt2dL+ElJgEnOW+uuUnIEgM7POdYU1+xOkPFi2rRFO0r+mu2Bx68g7ICad2R+nEr4WMSJfRB X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR01MB8656 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230608_133812_678342_E1991061 X-CRM114-Status: GOOD ( 11.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
perf: arm_cspmu: Set irq affinitiy only if overflow interrupt is used
|
expand
|
On Thu, 8 Jun 2023 13:37:42 -0700, Ilkka Koskinen wrote: > Don't try to set irq affinity if PMU doesn't have an overflow interrupt. > > Applied to will (for-next/perf), thanks! [1/1] perf: arm_cspmu: Set irq affinitiy only if overflow interrupt is used https://git.kernel.org/will/c/225d757012e0 Cheers,
diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c index 9021d1878250..62be0956dbba 100644 --- a/drivers/perf/arm_cspmu/arm_cspmu.c +++ b/drivers/perf/arm_cspmu/arm_cspmu.c @@ -1250,7 +1250,8 @@ static struct platform_driver arm_cspmu_driver = { static void arm_cspmu_set_active_cpu(int cpu, struct arm_cspmu *cspmu) { cpumask_set_cpu(cpu, &cspmu->active_cpu); - WARN_ON(irq_set_affinity(cspmu->irq, &cspmu->active_cpu)); + if (cspmu->irq) + WARN_ON(irq_set_affinity(cspmu->irq, &cspmu->active_cpu)); } static int arm_cspmu_cpu_online(unsigned int cpu, struct hlist_node *node)
Don't try to set irq affinity if PMU doesn't have an overflow interrupt. Fixes: e37dfd65731d ("perf: arm_cspmu: Add support for ARM CoreSight PMU driver") Signed-off-by: Ilkka Koskinen <ilkka@os.amperecomputing.com> --- drivers/perf/arm_cspmu/arm_cspmu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)