linux-stable/drivers/acpi/arm64
Yicong Yang 9d9b5cbc12 perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09
[ Upstream commit 0242737dc4 ]

Some HiSilicon SMMU PMCG suffers the erratum 162001900 that the PMU
disable control sometimes fail to disable the counters. This will lead
to error or inaccurate data since before we enable the counters the
counter's still counting for the event used in last perf session.

This patch tries to fix this by hardening the global disable process.
Before disable the PMU, writing an invalid event type (0xffff) to
focibly stop the counters. Correspondingly restore each events on
pmu::pmu_enable().

Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20230814124012.58013-1-yangyicong@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 11:11:00 +02:00
..
Kconfig ACPI: AGDI: Add driver for Arm Generic Diagnostic Dump and Reset device 2022-03-10 20:17:28 +01:00
Makefile ACPI: AGDI: Add driver for Arm Generic Diagnostic Dump and Reset device 2022-03-10 20:17:28 +01:00
agdi.c ACPI: AGDI: Fix missing prototype warning for acpi_agdi_init() 2022-05-06 20:35:44 +02:00
dma.c ACPI: scan: Support multiple DMA windows with different offsets 2022-09-24 18:39:21 +02:00
gtdt.c acpi/arm64: fix next_platform_timer() section mismatch error 2021-10-12 17:41:19 +01:00
iort.c perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09 2023-09-23 11:11:00 +02:00