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? 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/f430c0cb-52a7-7f36-a960-66840ad12110%40siemens.com.