]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/perf: hisi: Fix data source control
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Thu, 3 Jun 2021 08:34:51 +0000 (16:34 +0800)
committerWill Deacon <will@kernel.org>
Fri, 4 Jun 2021 18:21:09 +0000 (19:21 +0100)
commit37131913d61070b23f2675f0b876fe6004cee31e
tree6e61accff9d8c88f6323e07f582034fcc84425ef
parente2446ebd6dbf4cda8a06ce4df49314be432a2c9c
drivers/perf: hisi: Fix data source control

'Data source' is a new function for HHA PMU and config / clear
interface was wrong by mistake. 'HHA_DATSRC_CTRL' register is
mainly used for data source configuration, if we enable bit0
as driver, it will go on count the event and we didn't check
it carefully. So fix the issue and do as the initial purpose.

Fixes: 998da2871c72 ("drivers/perf: hisi: Add new functions for HHA PMU")
Reported-by: kernel test robot <lkp@intel.com>
Cc: Will Deacon <will@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Link: https://lore.kernel.org/r/1622709291-37996-1-git-send-email-zhangshaokun@hisilicon.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/hisilicon/hisi_uncore_hha_pmu.c