From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 559B32222B6; Mon, 2 Jun 2025 13:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748872178; cv=none; b=nWU15KNDrGkqGNOyqK2jD03g76KCeQpWpGsDW2PkhtVmSM7AWUWRxv+9mfvXP7L2jxAdtaPLmFxVlcEGVZRU4jlHTwuXTG52tL+vHYftwDi8TpUDbJXhqrqgxoF5ceJki+TZKM2NyV5OXwmC7PndSyYv9Z6S/i22GX2SJvoYFss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748872178; c=relaxed/simple; bh=ELEck4TZc5YmmPJ92WGgPHPMh7ceeqO6KEfbRfuz32E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=r6rs/NDOcK/eaNetqhheoqV5Ih8pbOgGtmk6ylAq0ub2BvsPFaVpogHVAyD5zBmCRW8ohs4O3De8+vSar3tmB9BWjkqJ34y2+dt55+cNnO/QSwQVCsiHiAx1NcW4NOaTnWbCFRZWPe0CmW2TFY0ymjIWVXZDcVdNi8kbKVz42aM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s9sOAd63; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="s9sOAd63" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68E27C4CEEB; Mon, 2 Jun 2025 13:49:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748872177; bh=ELEck4TZc5YmmPJ92WGgPHPMh7ceeqO6KEfbRfuz32E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=s9sOAd63qEUlugQkAbuGm9Vb5KooLw/QpGEUjl3xOwqGa/TDLTvoz0E6DpyqGhZJQ DUy74F+FUqEaHwmT2W9O+jklaHEiqn+LN1ZFs+I/zE1evN2xZaR499B23b4Iut8nHz 2luNkiO/71tA8L9P+q6BuUfHNkfpilTV855YN1e0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Robin Murphy , Ilkka Koskinen , Will Deacon Subject: [PATCH 6.15 43/49] perf/arm-cmn: Initialise cmn->cpu earlier Date: Mon, 2 Jun 2025 15:47:35 +0200 Message-ID: <20250602134239.631739971@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602134237.940995114@linuxfoundation.org> References: <20250602134237.940995114@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Robin Murphy commit 597704e201068db3d104de3c7a4d447ff8209127 upstream. For all the complexity of handling affinity for CPU hotplug, what we've apparently managed to overlook is that arm_cmn_init_irqs() has in fact always been setting the *initial* affinity of all IRQs to CPU 0, not the CPU we subsequently choose for event scheduling. Oh dear. Cc: stable@vger.kernel.org Fixes: 0ba64770a2f2 ("perf: Add Arm CMN-600 PMU driver") Signed-off-by: Robin Murphy Reviewed-by: Ilkka Koskinen Link: https://lore.kernel.org/r/b12fccba6b5b4d2674944f59e4daad91cd63420b.1747069914.git.robin.murphy@arm.com Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- drivers/perf/arm-cmn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/perf/arm-cmn.c +++ b/drivers/perf/arm-cmn.c @@ -2558,6 +2558,7 @@ static int arm_cmn_probe(struct platform cmn->dev = &pdev->dev; cmn->part = (unsigned long)device_get_match_data(cmn->dev); + cmn->cpu = cpumask_local_spread(0, dev_to_node(cmn->dev)); platform_set_drvdata(pdev, cmn); if (cmn->part == PART_CMN600 && has_acpi_companion(cmn->dev)) { @@ -2585,7 +2586,6 @@ static int arm_cmn_probe(struct platform if (err) return err; - cmn->cpu = cpumask_local_spread(0, dev_to_node(cmn->dev)); cmn->pmu = (struct pmu) { .module = THIS_MODULE, .parent = cmn->dev,