• Xu Yang's avatar
    perf: imx_perf: add support for i.MX95 platform · d0d7c66c
    Xu Yang authored
    i.MX95 has a DDR PMU which is almostly same as i.MX93, it now supports
    read beat and write beat filter capabilities. This will add support for
    i.MX95 and enhance the driver to support specific filter handling for it.
    
    Usage:
    
    For read beat:
    ~# perf stat -a -I 1000 -e imx9_ddr0/eddrtq_pm_rd_beat_filt2,axi_mask=ID_MASK,axi_id=ID/
    ~# perf stat -a -I 1000 -e imx9_ddr0/eddrtq_pm_rd_beat_filt1,axi_mask=ID_MASK,axi_id=ID/
    ~# perf stat -a -I 1000 -e imx9_ddr0/eddrtq_pm_rd_beat_filt0,axi_mask=ID_MASK,axi_id=ID/
    eg: For edma2: perf stat -a -I 1000 -e imx9_ddr0/eddrtq_pm_rd_beat_filt0,axi_mask=0x00f,axi_id=0x00c/
    
    For write beat:
    ~# perf stat -a -I 1000 -e imx9_ddr0/eddrtq_pm_wr_beat_filt,axi_mask=ID_MASK,axi_id=ID/
    eg: For edma2: perf stat -a -I 1000 -e imx9_ddr0/eddrtq_pm_wr_beat_filt,axi_mask=0x00f,axi_id=0x00c/
    Reviewed-by: default avatarFrank Li <Frank.Li@nxp.com>
    Signed-off-by: default avatarXu Yang <xu.yang_2@nxp.com>
    Link: https://lore.kernel.org/r/20240529080358.703784-6-xu.yang_2@nxp.comSigned-off-by: default avatarWill Deacon <will@kernel.org>
    d0d7c66c
fsl_imx9_ddr_perf.c 24 KB