Re: [PATCH 1/2] ARM: dts: imx6q: add pmu interrupt-affinity

From: Lucas Stach
Date: Fri Jan 18 2019 - 09:12:25 EST


Am Freitag, den 18.01.2019, 14:59 +0100 schrieb Stefan Agner:
> Explicitly specify interrupt affinity to avoid HW perfevents
> need to guess. This avoids the following error upon boot:
> Â hw perfevents: no interrupt-affinity property for /pmu, guessing.
>
But then it isn't correct either AFAICS. On i.MX6 all the PMU IRQs are
ORed together into a single SPI, instead of each core dealing with its
own PPI. So pretending that there are more IRQs with affinity to each
core isn't the right thing to do, no?

Regards,
Lucas

> Specifying all four CPUs shows no aversive effects on i.MX 6Dual
> SoCs.
>
> > Signed-off-by: Stefan Agner <stefan@xxxxxxxx>
> ---
> Âarch/arm/boot/dts/imx6q.dtsi | 7 +++++++
> Â1 file changed, 7 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
> index 8381d24eff7d..d2c1977c8b16 100644
> --- a/arch/arm/boot/dts/imx6q.dtsi
> +++ b/arch/arm/boot/dts/imx6q.dtsi
> @@ -537,6 +537,13 @@
> > Â <0x28 0x0000000c>; /* DCIC2_MUX_CTL */
> Â};
> Â
> +&pmu {
> > > + interrupt-affinity = <&{/cpus/cpu@0}>,
> > > + ÂÂÂÂÂ<&{/cpus/cpu@1}>,
> > > + ÂÂÂÂÂ<&{/cpus/cpu@2}>,
> > > + ÂÂÂÂÂ<&{/cpus/cpu@3}>;
> +};
> +
> Â&vpu {
> > Â compatible = "fsl,imx6q-vpu", "cnm,coda960";
> Â};