From: Marc Zyngier <maz@kernel.org>
To: Palmer Dabbelt <palmer@dabbelt.com>
Cc: bjorn@kernel.org, tglx@linutronix.de, conor.dooley@microchip.com,
aou@eecs.berkeley.edu, Paul Walmsley <paul.walmsley@sifive.com>,
linux-riscv@lists.infradead.org, samuel@sholland.org,
dfustini@baylibre.com
Subject: Re: [PATCH] riscv: enable software resend of irqs
Date: Thu, 13 Oct 2022 11:20:00 +0100 [thread overview]
Message-ID: <86ilkof2jz.wl-maz@kernel.org> (raw)
In-Reply-To: <mhng-92f4a77e-550d-47b9-8b09-4bceee203b60@palmer-ri-x1c9a>
On Thu, 13 Oct 2022 02:13:50 +0100,
Palmer Dabbelt <palmer@dabbelt.com> wrote:
>
> On Mon, 10 Oct 2022 04:21:38 PDT (-0700), bjorn@kernel.org wrote:
> > Conor Dooley <conor.dooley@microchip.com> writes:
> >
> >> The PLIC specification does not describe the interrupt pendings bits as
> >> read-write, only that they "can be read". To allow for retriggering of
> >> interrupts (and the use of the irq debugfs interface) enable
> >> HARDIRQS_SW_RESEND for RISC-V.
> >>
> >> Link: https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc#interrupt-pending-bits
> >> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
> >
> > Waking up an old thread. FWIW,
> >
> > Reviewed-by: Björn Töpel <bjorn@kernel.org>
>
> Thanks. This look reasonable to me, not sure if the irqchip folks
> have an opinion though?
>
> In theory the PLIC isn't the only interrupt controller (and that spec
> predates most of the implementations), but the SiFive PLIC derived
> interrupt controllers have become a defacto standard and IIRC they're
> the only thing shipping right now so I think it's OK to just stick
> this in arch code. We could mark it as "if SIFIVE_PLIC" or something,
> but I don't know if that's worth doing.
Setting it at the architecture level is at least consistent with what
other arches are doing. If we need to fix it one day, we'll do it
globally.
>
> Either way, this isn't really my thing. Happy to take it via the
> RISC-V tree, but
> Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
> Tested-by: Palmer Dabbelt <palmer@rivosinc.com> # on QEMU
Please take it directly, and feel free to add my
Acked-by: Marc Zyngier <maz@kernel.org>
to it.
Thanks,
M.
--
Without deviation from the norm, progress is not possible.
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2022-10-13 10:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-29 11:11 [PATCH] riscv: enable software resend of irqs Conor Dooley
2022-10-10 11:21 ` Björn Töpel
2022-10-13 1:13 ` Palmer Dabbelt
2022-10-13 10:20 ` Marc Zyngier [this message]
2022-10-13 19:48 ` Palmer Dabbelt
2022-10-13 19:45 ` Palmer Dabbelt
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=86ilkof2jz.wl-maz@kernel.org \
--to=maz@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=bjorn@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=dfustini@baylibre.com \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=samuel@sholland.org \
--cc=tglx@linutronix.de \
/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