summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorJunhao He <hejunhao3@huawei.com>2024-02-27 15:52:31 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-13 14:07:36 +0300
commit0662deae8bb88758b5d3edef2e950a674079ba2c (patch)
treea242204861e47a8180ecbea3720117b09ad73bca /block
parent44723bd493cd491a1f03664df61f5d120cb63a08 (diff)
downloadlinux-0662deae8bb88758b5d3edef2e950a674079ba2c.tar.xz
drivers/perf: hisi: Enable HiSilicon Erratum 162700402 quirk for HIP09
[ Upstream commit e10b6976f6b9afdf3564f88c851e42d139bb19c0 ] HiSilicon UC PMU v2 suffers the erratum 162700402 that the PMU counter cannot be set due to the lack of clock under power saving mode. This will lead to error or inaccurate counts. The clock can be enabled by the PMU global enabling control. This patch tries to fix this by set the UC PMU enable before set event period to turn on the clock, and then restore the UC PMU configuration. The counter register can hold its value without a clock. Signed-off-by: Junhao He <hejunhao3@huawei.com> Reviewed-by: Yicong Yang <yangyicong@hisilicon.com> Link: https://lore.kernel.org/r/20240227125231.53127-1-hejunhao3@huawei.com Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions