From: Mark Rutland <mark.rutland@arm.com>
To: Joakim Tjernlund <Joakim.Tjernlund@infinera.com>
Cc: "linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Marc Zyngier <maz@kernel.org>
Subject: Re: [PATCH] GICv3: Add restart handler to detach CPU from GICv3
Date: Wed, 4 Jan 2023 16:04:14 +0000 [thread overview]
Message-ID: <Y7Wjfu0NHDMzwf9b@FVFF77S0Q05N> (raw)
In-Reply-To: <dd369d813411fc6a0a2eabb2d6e6c26f083c0b0a.camel@infinera.com>
On Tue, Jan 03, 2023 at 04:27:07PM +0000, Joakim Tjernlund wrote:
> On Fri, 2022-12-16 at 17:21 +0100, Joakim Tjernlund wrote:
>
> Ping?
To whom?
You don't appeared to have Cc'd any relevant maintainer, and people are still
on holiday, so it's extremely likely this will be missed.
For the maintainer, please use scripts/get_maintainer.pl, e.g.
| [mark@lakrids:~/src/linux]% ./scripts/get_maintainer.pl -f drivers/irqchip/irq-gic-v3.c
| Thomas Gleixner <tglx@linutronix.de> (maintainer:IRQCHIP DRIVERS)
| Marc Zyngier <maz@kernel.org> (maintainer:IRQCHIP DRIVERS)
| linux-kernel@vger.kernel.org (open list:IRQCHIP DRIVERS)
Note: I've Cc'd Marc, who wrote the GICv3 driver.
> > Needed for reboot without resetting the whole GIC
This doesn't really explain what you're trying to do nor why.
Why do you need to "reboot without resetting the whole GIC" ?
Do you encounter a problem if we try to reset the whole GIC?
Is this for kexec?
Is this for some use-case enabled by out-of-tree code?
Thanks,
Mark.
> >
> > Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
> > ---
> > drivers/irqchip/irq-gic-v3.c | 18 ++++++++++++++++++
> > 1 file changed, 18 insertions(+)
> >
> > diff --git a/drivers/irqchip/irq-gic-v3.c b/drivers/irqchip/irq-gic-v3.c
> > index dd7e7f061e8f..1989ea3d2db4 100644
> > --- a/drivers/irqchip/irq-gic-v3.c
> > +++ b/drivers/irqchip/irq-gic-v3.c
> > @@ -23,6 +23,7 @@
> > #include <linux/irqchip/arm-gic-common.h>
> > #include <linux/irqchip/arm-gic-v3.h>
> > #include <linux/irqchip/irq-partition-percpu.h>
> > +#include <linux/reboot.h>
> >
> > #include <asm/cputype.h>
> > #include <asm/exception.h>
> > @@ -1359,6 +1360,22 @@ static void gic_cpu_pm_init(void)
> > static inline void gic_cpu_pm_init(void) { }
> > #endif /* CONFIG_CPU_PM */
> >
> > +static int gicv3_restart_notify(struct notifier_block *nb,
> > + unsigned long mode, void *cmd)
> > +{
> > + if (gic_dist_security_disabled()) {
> > + gic_write_grpen1(0);
> > + gic_enable_redist(false);
> > + }
> > +
> > + return NOTIFY_DONE;
> > +}
> > +
> > +static struct notifier_block gicv3_restart_nb = {
> > + .notifier_call = gicv3_restart_notify,
> > + .priority = 255, /* Call last */
> > +};
> > +
> > static struct irq_chip gic_chip = {
> > .name = "GICv3",
> > .irq_mask = gic_mask_irq,
> > @@ -1849,6 +1866,7 @@ static int __init gic_init_bases(void __iomem *dist_base,
> > gic_cpu_init();
> > gic_smp_init();
> > gic_cpu_pm_init();
> > + register_restart_handler(&gicv3_restart_nb);
> >
> > if (gic_dist_supports_lpis()) {
> > its_init(handle, &gic_data.rdists, gic_data.domain);
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2023-01-04 16:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-16 16:21 [PATCH] GICv3: Add restart handler to detach CPU from GICv3 Joakim Tjernlund
2023-01-03 16:27 ` Joakim Tjernlund
2023-01-04 16:04 ` Mark Rutland [this message]
2023-01-04 16:50 ` Marc Zyngier
2023-01-04 17:23 ` Joakim Tjernlund
2023-01-04 18:48 ` Marc Zyngier
2023-01-04 19:52 ` Joakim Tjernlund
2023-01-05 10:37 ` Marc Zyngier
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=Y7Wjfu0NHDMzwf9b@FVFF77S0Q05N \
--to=mark.rutland@arm.com \
--cc=Joakim.Tjernlund@infinera.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=maz@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