From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: Guo Ren <guoren@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>,
tglx@kernel.org, linux-riscv@lists.infradead.org,
linux-kernel@vger.kernel.org, palmer@dabbelt.com, pjw@kernel.org,
aou@eecs.berkeley.edu, alex@ghiti.fr, daniel.lezcano@kernel.org,
anup@brainfault.org, hui.wang@canonical.com,
samuel.holland@sifive.com
Subject: Re: [PATCH 1/5] riscv: smp: Move enum ipi_message_type to asm/smp.h
Date: Mon, 21 Sep 2026 08:45:08 +0200 [thread overview]
Message-ID: <arDSR9S3tZPB91Zm@monoceros> (raw)
In-Reply-To: <CAJF2gTRYaiskhtZckt9ccRqv7an+OBKE34N=0uR3uKW9F8r6kA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2076 bytes --]
On Fri, Sep 11, 2026 at 09:17:11AM +0800, Guo Ren wrote:
> On Wed, Sep 9, 2026 at 6:23 AM Nathan Chancellor <nathan@kernel.org> wrote:
> >
> > On Sun, Aug 16, 2026 at 07:00:45AM +0000, Guo Ren wrote:
> > > From: "GUO Ren (XuanTie)" <guoren@kernel.org>
> > >
> > > The IPI message type enumeration (and therefore IPI_MAX) is currently
> > > private to arch/riscv/kernel/smp.c. Several IPI providers need to know
> > > the exact number of IPIs that the architecture requires, so move the
> > > enum into the public header.
> > >
> > > This is a pure code movement with no functional change.
> >
> > Other than a build breakage with allmodconfig :) -next has this change
> > as commit 1ae91dc397eb ("riscv: smp: Move enum ipi_message_type to
> > asm/smp.h"), where it breaks allmodconfig with several errors along the
> > lines of:
> >
> > In file included from drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c:20:
> > drivers/media/platform/mediatek/vpu/mtk_vpu.h:63:9: error: redeclaration of enumerator 'IPI_MAX'
> > 63 | IPI_MAX,
> > | ^~~~~~~
> > In file included from include/linux/smp.h:119,
> > from include/linux/interrupt_rc.h:17,
> > from include/linux/spinlock.h:60,
> > from include/linux/sched.h:38,
> > from include/linux/ratelimit.h:6,
> > from include/linux/dev_printk.h:16,
> > from include/linux/device.h:15,
> > from drivers/media/platform/mediatek/mdp/mtk_mdp_m2m.c:8:
> > arch/riscv/include/asm/smp.h:27:9: note: previous definition of 'IPI_MAX' with type 'enum ipi_message_type'
> > 27 | IPI_MAX
> > | ^~~~~~~
> >
> > So one of these needs to change.
>
> I prefer to keep IPI_MAX for SMP and rename IPI_MAX in mtk_vpu.h to
> VPU_IPI_MAX, consistent with SCP_IPI_MAX in mtk_scp.h.
That's why using driver specific prefixes are great. Why not
MTK_VPU_IPI_MAX or something along these lines?
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2026-09-21 6:45 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-16 7:00 [PATCH 0/5] riscv: Make IPI_MAX visible and use it consistently Guo Ren
2026-08-16 7:00 ` [PATCH 1/5] riscv: smp: Move enum ipi_message_type to asm/smp.h Guo Ren
2026-08-17 14:22 ` Radu Rendec
2026-08-17 14:35 ` Anup Patel
2026-09-04 13:40 ` [tip: irq/drivers] " tip-bot2 for GUO Ren (XuanTie)
2026-09-08 22:23 ` [PATCH 1/5] " Nathan Chancellor
2026-09-11 1:17 ` Guo Ren
2026-09-21 6:45 ` Uwe Kleine-König [this message]
2026-09-28 8:42 ` Guo Ren
2026-08-16 7:00 ` [PATCH 2/5] riscv: sbi: Use IPI_MAX for SBI IPI muxing Guo Ren
2026-08-17 14:35 ` Anup Patel
2026-09-04 13:40 ` [tip: irq/drivers] " tip-bot2 for GUO Ren (XuanTie)
2026-08-16 7:00 ` [PATCH 3/5] clocksource: clint: Use IPI_MAX for " Guo Ren
2026-08-17 14:36 ` Anup Patel
2026-09-04 13:40 ` [tip: irq/drivers] " tip-bot2 for GUO Ren (XuanTie)
2026-08-16 7:00 ` [PATCH 4/5] irqchip/aclint-sswi: " Guo Ren
2026-08-16 15:22 ` Radu Rendec
2026-08-17 14:36 ` Anup Patel
2026-09-04 13:40 ` [tip: irq/drivers] " tip-bot2 for GUO Ren (XuanTie)
2026-08-16 7:00 ` [PATCH 5/5] irqchip/imsic: Use IPI_MAX instead of IMSIC_NR_IPI Guo Ren
2026-08-16 15:28 ` Radu Rendec
2026-08-17 13:05 ` Guo Ren
2026-08-17 14:25 ` Radu Rendec
2026-08-17 14:36 ` Anup Patel
2026-09-04 13:40 ` [tip: irq/drivers] " tip-bot2 for GUO Ren (XuanTie)
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=arDSR9S3tZPB91Zm@monoceros \
--to=u.kleine-koenig@baylibre.com \
--cc=alex@ghiti.fr \
--cc=anup@brainfault.org \
--cc=aou@eecs.berkeley.edu \
--cc=daniel.lezcano@kernel.org \
--cc=guoren@kernel.org \
--cc=hui.wang@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=nathan@kernel.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=samuel.holland@sifive.com \
--cc=tglx@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
all inboxes | Powered by JetHome®