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 481708BE5 for ; Mon, 2 Jun 2025 09:51:31 +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=1748857891; cv=none; b=mtjroF9hnX4S8CXJKQGaNE8fzGVYhH4n45aJF447dG8wjzVSLraPJsFEC+Gu+H5F5LxB0H3++djClxnlk6fNRcGVEoAA1mQcs2xzpFB1DGW00V8QlvKjD7YyYbzaIh5IgvqOgZWuoBRQsJF4GnyaCpudx+BYnGVgHWL9b38pk0c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748857891; c=relaxed/simple; bh=IN36z2z61uJ6bpTo/wlSOlokNSl7lU3uDi1oc1xU/Bs=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=jNdLAzmvtgIhC/p7iJ6ibXjOMDNxT4HsM6aOBsZnWPWa8yEu/PuZz7pEBviQkOt7wqu777b8AEdiP2Y0TeuaTwzQsqHuh1ftg1RIqWCDmGY5QVo8Vto2NsG/YTVMYZt3xQel4chL9R8jO0ws83PLJNZhI8Ie3ej1GRUb9MsHAlY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=byNlN5lb; 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="byNlN5lb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A79B8C4CEEB; Mon, 2 Jun 2025 09:51:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1748857891; bh=IN36z2z61uJ6bpTo/wlSOlokNSl7lU3uDi1oc1xU/Bs=; h=Subject:To:Cc:From:Date:From; b=byNlN5lbqHm9JkiGVpLk6qNleaIRLhtFnIEWNlO8bgDQqdigXXqL9H+cVbYAyi4E/ KJkycsoiJUyicK1R2ChXlI6VSgCL4WxDYCVMU2G+digdnO3VyV9C3qHix9a7WJ7Ndx +KSnVSfisSsE2QF5kte9YnD0eeaF1pRapreFOqRo= Subject: FAILED: patch "[PATCH] perf/arm-cmn: Initialise cmn->cpu earlier" failed to apply to 5.15-stable tree To: robin.murphy@arm.com,ilkka@os.amperecomputing.com,will@kernel.org Cc: From: Date: Mon, 02 Jun 2025 11:51:28 +0200 Message-ID: <2025060228-output-connected-12d9@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 597704e201068db3d104de3c7a4d447ff8209127 # git commit -s git send-email --to '' --in-reply-to '2025060228-output-connected-12d9@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 597704e201068db3d104de3c7a4d447ff8209127 Mon Sep 17 00:00:00 2001 From: Robin Murphy Date: Mon, 12 May 2025 18:11:54 +0100 Subject: [PATCH] perf/arm-cmn: Initialise cmn->cpu earlier 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 diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c index 83f4ef985255..668c581e932a 100644 --- a/drivers/perf/arm-cmn.c +++ b/drivers/perf/arm-cmn.c @@ -2551,6 +2551,7 @@ static int arm_cmn_probe(struct platform_device *pdev) 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)) { @@ -2578,7 +2579,6 @@ static int arm_cmn_probe(struct platform_device *pdev) 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,