> Subject: Re: [PATCH v1] arm64: dts: imx8m: add pmu node
> 
> On 12.03.21 11:26, Alice Guo (OSS) wrote:
> > From: Alice Guo <alice....@nxp.com>
> >
> > Adding pmu node supports to use perf tool to monitor the CPU
> > performance of the inmate cell when enabling Jailhouse and running dual
> Linux OS.
> >
> 
> Is the PMU truly per core, i.e. exposing no information about other cores or
> central resources and also not permitting any influence on other cores?

To ARM64, each cpu core has a PMU which is per cpu, and its registers
are system registers that could only accessed by per cpu.

I not see it will expose information about other cores or central resources and 
etc.

Thanks,
Peng.

> 
> Jan
> 
> > Signed-off-by: Alice Guo <alice....@nxp.com>
> > ---
> >  configs/arm64/dts/inmate-imx8mm-evk.dts      | 7 +++++++
> >  configs/arm64/dts/inmate-imx8mn-ddr4-evk.dts | 8 ++++++++
> >  configs/arm64/dts/inmate-imx8mp-evk.dts      | 8 ++++++++
> >  configs/arm64/dts/inmate-imx8mq-evk.dts      | 7 +++++++
> >  4 files changed, 30 insertions(+)
> >
> > diff --git a/configs/arm64/dts/inmate-imx8mm-evk.dts
> > b/configs/arm64/dts/inmate-imx8mm-evk.dts
> > index f7c21b10..591c3543 100644
> > --- a/configs/arm64/dts/inmate-imx8mm-evk.dts
> > +++ b/configs/arm64/dts/inmate-imx8mm-evk.dts
> > @@ -48,6 +48,13 @@
> >             };
> >     };
> >
> > +   pmu {
> > +           compatible = "arm,armv8-pmuv3";
> > +           interrupts = <GIC_PPI 7
> > +                           (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
> > +           interrupt-affinity = <&A53_2>, <&A53_3>;
> > +   };
> > +
> >     gic: interrupt-controller@38800000 {
> >             compatible = "arm,gic-v3";
> >             reg = <0x0 0x38800000 0 0x10000>, /* GIC Dist */ diff --git
> > a/configs/arm64/dts/inmate-imx8mn-ddr4-evk.dts
> > b/configs/arm64/dts/inmate-imx8mn-ddr4-evk.dts
> > index 74fe9d7c..e5a87d03 100644
> > --- a/configs/arm64/dts/inmate-imx8mn-ddr4-evk.dts
> > +++ b/configs/arm64/dts/inmate-imx8mn-ddr4-evk.dts
> > @@ -48,6 +48,14 @@
> >             };
> >     };
> >
> > +   pmu {
> > +           compatible = "arm,armv8-pmuv3";
> > +           interrupt-parent = <&gic>;
> > +           interrupts = <GIC_PPI 7
> > +                           (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
> > +           interrupt-affinity = <&A53_2>, <&A53_3>;
> > +   };
> > +
> >     osc_24m: clock-osc-24m {
> >             compatible = "fixed-clock";
> >             #clock-cells = <0>;
> > diff --git a/configs/arm64/dts/inmate-imx8mp-evk.dts
> > b/configs/arm64/dts/inmate-imx8mp-evk.dts
> > index 2fb4bc74..b4068771 100644
> > --- a/configs/arm64/dts/inmate-imx8mp-evk.dts
> > +++ b/configs/arm64/dts/inmate-imx8mp-evk.dts
> > @@ -48,6 +48,14 @@
> >             };
> >     };
> >
> > +   pmu {
> > +           compatible = "arm,armv8-pmuv3";
> > +           interrupt-parent = <&gic>;
> > +           interrupts = <GIC_PPI 7
> > +                           (GIC_CPU_MASK_SIMPLE(6) | IRQ_TYPE_LEVEL_HIGH)>;
> > +           interrupt-affinity = <&A53_2>, <&A53_3>;
> > +   };
> > +
> >     gic: interrupt-controller@38800000 {
> >             compatible = "arm,gic-v3";
> >             reg = <0x0 0x38800000 0 0x10000>, /* GIC Dist */ diff --git
> > a/configs/arm64/dts/inmate-imx8mq-evk.dts
> > b/configs/arm64/dts/inmate-imx8mq-evk.dts
> > index 8d620522..45b42c94 100644
> > --- a/configs/arm64/dts/inmate-imx8mq-evk.dts
> > +++ b/configs/arm64/dts/inmate-imx8mq-evk.dts
> > @@ -48,6 +48,13 @@
> >             };
> >     };
> >
> > +   pmu {
> > +           compatible = "arm,cortex-a53-pmu";
> > +           interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
> > +           interrupt-parent = <&gic>;
> > +           interrupt-affinity = <&A53_2>, <&A53_3>;
> > +   };
> > +
> >     osc_25m: clock-osc-25m {
> >             compatible = "fixed-clock";
> >             #clock-cells = <0>;
> >
> 
> --
> Siemens AG, T RDA IOT
> Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/DB6PR0402MB2760CC86ADB97D6C2A60507588659%40DB6PR0402MB2760.eurprd04.prod.outlook.com.

Reply via email to