[PATCH v2 6/9] drivers/perf: hisi: Refactor the event configuration of L3C PMU

Jonathan Cameron Jonathan.Cameron at huawei.com
Tue Aug 26 06:08:29 PDT 2025


On Thu, 21 Aug 2025 21:50:46 +0800
Yushan Wang <wangyushan12 at huawei.com> wrote:

> From: Yicong Yang <yangyicong at hisilicon.com>
> 
> The event register is configured using hisi_pmu::base directly since
> only one address space is supported for L3C PMU. We need to extend if
> events configuration locates in different address space. In order to
> make preparation for such hardware, extract the event register
> configuration to separate function using hw_perf_event::event_base as
> each event's base address.  Implement a private
> hisi_uncore_ops::get_event_idx() callback for initialize the event_base
> besides get the hardware index.
> 
> No functional changes intended.
> 
> Signed-off-by: Yicong Yang <yangyicong at hisilicon.com>
> Signed-off-by: Yushan Wang <wangyushan12 at huawei.com>
Acked-by: Jonathan Cameron <jonathan.cameron at huawei.com>



More information about the linux-arm-kernel mailing list