Re: [PATCH 1/2] arm64: smp: Fix pseudo NMI issues w/ broken Mediatek FW
From: Doug Anderson
Date: Fri Oct 06 2023 - 18:17:47 EST
Hi,
On Fri, Oct 6, 2023 at 3:20 AM Marc Zyngier <maz@xxxxxxxxxx> wrote:
>
> On Thu, 05 Oct 2023 11:27:26 +0100,
> Mark Rutland <mark.rutland@xxxxxxx> wrote:
>
> > 3) Partial fix: make the ARM64_HAS_GIC_PRIO_MASKING cpucap depend on the
> > absence of a "mediatek,broken-save-restore-fw" property in the DT. I believe
> > we can check that in early_enable_pseudo_nmi() or can_use_gic_priorities().
> >
> > That'll avoid potential issues if/when we change the priorities used for
> > pNMI (which is something I've been looking at).
> >
> > I'm happy with (3) if Marc is.
>
> Definitely worth investigating if you have the bandwidth.
I made an attempt at it. See:
https://lore.kernel.org/20231006151547.1.Ide945748593cffd8ff0feb9ae22b795935b944d6@changeid