]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf: imx9_perf: Introduce AXI filter version to refactor the driver and better extension
authorXu Yang <xu.yang_2@nxp.com>
Thu, 12 Dec 2024 06:57:08 +0000 (14:57 +0800)
committerWill Deacon <will@kernel.org>
Thu, 19 Dec 2024 15:50:32 +0000 (15:50 +0000)
commitf3edf03a4c59e59e52c0c1fd958f64a76a038302
treef97987f054e50d0a20714d9d3fb74f4d163118ae
parente49ecdf79a6009433b8a4aff827eab3d43b61ea5
perf: imx9_perf: Introduce AXI filter version to refactor the driver and better extension

The imx93 is the first supported DDR PMU that supports read transaction,
write transaction and read beats events which corresponding respecitively
to counter 2, 3 and 4.

However, transaction-based AXI match has low accuracy when get total bits
compared to beats-based. And imx93 doesn't assign AXI_ID to each master.
So axi filter is not used widely on imx93. This could be regards as AXI
filter version 1.

To improve the AXI filter capability, imx95 supports 1 read beats and 3
write beats event which corresponding respecitively to counter 2-5. imx95
also detailed AXI_ID allocation so that most of the master could be count
individually. This could be regards as AXI filter version 2.

This will introduce AXI filter version to refactor the driver and support
better extension, such as coming imx943. This is also a potential fix on
imx91 when configure axi filter.

Fixes: 44798fe136dc ("perf: imx_perf: add support for i.MX91 platform")
Cc: stable@vger.kernel.org
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20241212065708.1353513-1-xu.yang_2@nxp.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/fsl_imx9_ddr_perf.c