linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Murphy <robin.murphy@arm.com>
To: will@kernel.org
Cc: mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org,
	linux-perf-users@vger.kernel.org, allen.wang@hj-micro.com,
	peter.du@hj-micro.com, andy.xu@hj-micro.com,
	stable@vger.kernel.org
Subject: [PATCH 1/3] perf/arm-ni: Set initial IRQ affinity
Date: Tue, 13 May 2025 16:38:58 +0100	[thread overview]
Message-ID: <614ced9149ee8324e58930862bd82cbf46228d27.1747149165.git.robin.murphy@arm.com> (raw)
In-Reply-To: <cover.1747149165.git.robin.murphy@arm.com>

While we do request our IRQs with the right flags to stop their affinity
changing unexpectedly, we forgot to actually set it to start with. Oops.

Cc: stable@vger.kernel.org
Fixes: 4d5a7680f2b4 ("perf: Add driver for Arm NI-700 interconnect PMU")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
 drivers/perf/arm-ni.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/perf/arm-ni.c b/drivers/perf/arm-ni.c
index de7b6cce4d68..9396d243415f 100644
--- a/drivers/perf/arm-ni.c
+++ b/drivers/perf/arm-ni.c
@@ -544,6 +544,8 @@ static int arm_ni_init_cd(struct arm_ni *ni, struct arm_ni_node *node, u64 res_s
 		return err;
 
 	cd->cpu = cpumask_local_spread(0, dev_to_node(ni->dev));
+	irq_set_affinity(cd->irq, cpumask_of(cd->cpu));
+
 	cd->pmu = (struct pmu) {
 		.module = THIS_MODULE,
 		.parent = ni->dev,
-- 
2.39.2.101.g768bb238c484.dirty


  reply	other threads:[~2025-05-13 15:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-13 15:38 [PATCH 0/3] perf/arm-ni: IRQ improvements Robin Murphy
2025-05-13 15:38 ` Robin Murphy [this message]
2025-05-13 15:38 ` [PATCH 2/3] perf/arm-ni: Consolidate CPU affinity handling Robin Murphy
2025-05-13 15:39 ` [PATCH 3/3] perf/arm-ni: Support sharing IRQs within an NI instance Robin Murphy
2025-05-19 12:29   ` Will Deacon
2025-05-19 14:57     ` Robin Murphy
2025-07-04 17:47       ` Will Deacon
2025-05-16 11:46 ` [PATCH 0/3] perf/arm-ni: IRQ improvements Shouping Wang
2025-07-04 17:44 ` Will Deacon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=614ced9149ee8324e58930862bd82cbf46228d27.1747149165.git.robin.murphy@arm.com \
    --to=robin.murphy@arm.com \
    --cc=allen.wang@hj-micro.com \
    --cc=andy.xu@hj-micro.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=peter.du@hj-micro.com \
    --cc=stable@vger.kernel.org \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).