]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf: imx_perf: fix counter start and config sequence
authorXu Yang <xu.yang_2@nxp.com>
Wed, 29 May 2024 08:03:55 +0000 (16:03 +0800)
committerWill Deacon <will@kernel.org>
Mon, 1 Jul 2024 14:42:59 +0000 (15:42 +0100)
commitac9aa295f7a89d38656739628796f086f0b160e2
tree87e10838f0baa8d0532eb5fcd236ca4c1bd84f15
parentfab5e5a866e86054a78bedd1bd1d6707421149a5
perf: imx_perf: fix counter start and config sequence

In current driver, the counter will start firstly and then be configured.
This sequence is not correct for AXI filter events since the correct
AXI_MASK and AXI_ID are not set yet. Then the results may be inaccurate.

Reviewed-by: Frank Li <Frank.Li@nxp.com>
Fixes: 55691f99d417 ("drivers/perf: imx_ddr: Add support for NXP i.MX9 SoC DDRC PMU driver")
cc: stable@vger.kernel.org
Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Link: https://lore.kernel.org/r/20240529080358.703784-5-xu.yang_2@nxp.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/fsl_imx9_ddr_perf.c