From nobody Sat Feb 7 05:00:58 2026 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5A393D81 for ; Thu, 16 Oct 2025 00:32:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760574768; cv=none; b=koIyljzygq7ECJm9Y12ih/m2ZhOp6av+RTT/6StMGOmIPuw2AcDp0tg1IqWZe5j04tczkiCfQxCNatjTffGdkjUuuKRGTZlcKaI6TpBkdV+t0UlQ7Ds60Aaf6figLglUPBS6wuiEC+gNKyrZGP5KsrGFaI0hESFLFQ4UkbWuZkw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760574768; c=relaxed/simple; bh=8P8NkKCLs3qEUE3ZpJyZIYywS2j6MMoa05Ix0fhl73E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=naYTlkbBorpuqv8NCPyWgzAdniKLCf+BpvZG+QwZa3kUT3C/foM2eKUt+C0gc3aZFQGx81C7rx7rYebh91uoLLqtU/oCOxGdhNeqmQwzEtxb9H3R34dxP64+12+WrlaIZQB4f2upuGGsEpdMP5rm9K3mf/IJUoO8b/jsc4VWB2w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com; spf=pass smtp.mailfrom=sifive.com; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b=EDcEwO6v; arc=none smtp.client-ip=209.85.210.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=sifive.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sifive.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sifive.com header.i=@sifive.com header.b="EDcEwO6v" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-781010ff051so147849b3a.0 for ; Wed, 15 Oct 2025 17:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1760574766; x=1761179566; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Wl/lY8JAaE7A8957nqq7PMXYFhem+rXkxRLcRBl4qnU=; b=EDcEwO6vTbwn6PRGCAZC/iZHDh2yKldUqYbpSQfR8rtJJvZ/fp/atqbmA1kNy9eeH2 1U2zlvRBdDIOxHHWQ4R9hJT3bozQiBW8CPXQC7U+gXyHbp7D7qyfvjTB/PFldN7PJTHv h43oDggWPAU66HFTI0ikKxezE5RxC2k6SqtCzDrKwApd0yLXDcLNZywUak4a1wW7IW/9 6SLH9MfV5LrNOP46hjmMEJGp9vSIwJerI/LbSliR3R6X33x55NANfUfO1R6vvvyBYcjx jA+PqMpbR0n4j9HwxOSBIyNlVJ6UCVhZK5tt77HFjX9Nc0JFbkDe4f4YgDi+1FGyyEN1 lAQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760574766; x=1761179566; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Wl/lY8JAaE7A8957nqq7PMXYFhem+rXkxRLcRBl4qnU=; b=fYe7TQu20Aer7tke4EZ6nj0/x2eYjvtuHLpoG3hQCUjMDc7nYnJtJxPyRBOqQlZRpz wtuOOqRtxgbUu4rzgbOVVcI9mz5z4UUkDYSqW62s0grDM73qXVd8mejxof8bSg0W3PaI z8Lu8x6P4glpATbg8ybSFpvUdcsr+6ZGs524GxUciJJwN5MGo9G0HpDrxBrFBzP4beDL KsO0kzKwZL4+UGehCH0PTOYvd/XX6RuN9cjIT3RisvyQmzBVouh6Yfcc2ibNU35O96nB 3ZA85nuw8Feo+CXQEnwcoNBQRf+tUdu1pDxxuAJmlcEYfFnD2RqS754b8cUq08+RjfJK 3n8Q== X-Forwarded-Encrypted: i=1; AJvYcCU95mhVb+XDO09AO2VJ+Rl9cGt4ltIxpZgR+sstFox5rVcn9k0L+CFn0NEeztcKmYm9+5xFYJl1JE10M0M=@vger.kernel.org X-Gm-Message-State: AOJu0YyVXqpSH/LX7ULTOToig//AUTsI+ERAlmhPuEhH8ECq7D3xFRTd dV0JiqnVrKRDuCmtxe/3tsVGq/QPnINvX3VVODsX4agoZXokXlSS626MQH15RFY6DiU= X-Gm-Gg: ASbGncu8FwjbDuyk8tIe+DwpaxIPCJEB8Jfe7IcSqHhnkB3FH+DqtscPR/70GnJ8fgw 8SToVzIyXJ+IGPnjvyOW0+lNmvzw52d/XwembIcYf7BbX3tLHQtjQ5azHCwyNBUHDJa27vhwrtw k7+xEzYRcawWH3v0zi50YmYVO6Y8dpeIbiQiSA25XImwEkqpu0WQxJTPFGk9ai31msCuyGNuEYA V0xJnmsQa2idFJrJw361yCKLRg89G1E4PJXj5yrCW1PZq4+FRCV3qhYFJerPd9jYcq0ddMYW1yy 9Jzue0iaxxIDe/sSLIkjqQNJ1bksY0M5LtY2MuMlg4qlqUT8Zgr+SJVOyedG7+6LTQjnjpFbgRE a90+tB6Q40h6Ow5Qv6cuBJdFI+2kLoPSQQApuOt4dJbG9rW/P5Y0jkBZi9Hd/B2R38tBGkax70R pqZDQ13oRD7hCMhnPkphfBxkOOVmnPqbQA X-Google-Smtp-Source: AGHT+IHLzh9TmRMIItVhwqjxb8DLVTBAx6eIunXzY4s4RJzGl3w59VWm5xr1ObSp2GfFAAyuDlXIcQ== X-Received: by 2002:a05:6a20:12cd:b0:2f8:4558:ad9e with SMTP id adf61e73a8af0-32da839ee26mr41282091637.33.1760574766115; Wed, 15 Oct 2025 17:32:46 -0700 (PDT) Received: from sw06.internal.sifive.com ([4.53.31.132]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7992b060b59sm20620987b3a.2.2025.10.15.17.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Oct 2025 17:32:45 -0700 (PDT) From: Samuel Holland To: Palmer Dabbelt , Paul Walmsley Cc: Samuel Holland , Albert Ou , Alexandre Ghiti , Conor Dooley , Jassi Brar , Valentina Fernandez , Yunhui Cui , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH] riscv: Register IPI IRQs with unique names Date: Wed, 15 Oct 2025 17:32:05 -0700 Message-ID: <20251016003244.3910332-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.47.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This allows different IPIs to be distinguished in tracing output. Signed-off-by: Samuel Holland --- arch/riscv/kernel/smp.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/arch/riscv/kernel/smp.c b/arch/riscv/kernel/smp.c index e650dec44817..5ed5095320e6 100644 --- a/arch/riscv/kernel/smp.c +++ b/arch/riscv/kernel/smp.c @@ -40,6 +40,17 @@ enum ipi_message_type { IPI_MAX }; =20 +static const char * const ipi_names[] =3D { + [IPI_RESCHEDULE] =3D "Rescheduling interrupts", + [IPI_CALL_FUNC] =3D "Function call interrupts", + [IPI_CPU_STOP] =3D "CPU stop interrupts", + [IPI_CPU_CRASH_STOP] =3D "CPU stop (for crash dump) interrupts", + [IPI_IRQ_WORK] =3D "IRQ work interrupts", + [IPI_TIMER] =3D "Timer broadcast interrupts", + [IPI_CPU_BACKTRACE] =3D "CPU backtrace interrupts", + [IPI_KGDB_ROUNDUP] =3D "KGDB roundup interrupts", +}; + unsigned long __cpuid_to_hartid_map[NR_CPUS] __ro_after_init =3D { [0 ... NR_CPUS-1] =3D INVALID_HARTID }; @@ -199,7 +210,7 @@ void riscv_ipi_set_virq_range(int virq, int nr) /* Request IPIs */ for (i =3D 0; i < nr_ipi; i++) { err =3D request_percpu_irq(ipi_virq_base + i, handle_IPI, - "IPI", &ipi_dummy_dev); + ipi_names[i], &ipi_dummy_dev); WARN_ON(err); =20 ipi_desc[i] =3D irq_to_desc(ipi_virq_base + i); @@ -210,17 +221,6 @@ void riscv_ipi_set_virq_range(int virq, int nr) riscv_ipi_enable(); } =20 -static const char * const ipi_names[] =3D { - [IPI_RESCHEDULE] =3D "Rescheduling interrupts", - [IPI_CALL_FUNC] =3D "Function call interrupts", - [IPI_CPU_STOP] =3D "CPU stop interrupts", - [IPI_CPU_CRASH_STOP] =3D "CPU stop (for crash dump) interrupts", - [IPI_IRQ_WORK] =3D "IRQ work interrupts", - [IPI_TIMER] =3D "Timer broadcast interrupts", - [IPI_CPU_BACKTRACE] =3D "CPU backtrace interrupts", - [IPI_KGDB_ROUNDUP] =3D "KGDB roundup interrupts", -}; - void show_ipi_stats(struct seq_file *p, int prec) { unsigned int cpu, i; --=20 2.47.2 base-commit: 5a6f65d1502551f84c158789e5d89299c78907c7 branch: up/ipi-names