|
From: William C. <wc...@re...> - 2024-12-10 18:25:38
|
On 12/9/24 19:02, Florian Fainelli wrote:
> Broadcom's Brahma-B53 CPU features a PMU which is 100% software
> compatible with those found on Cortex-A53 designs. Add the required
> code to recognize the implementor id (0x42) and the Brahma-B53 part
> number (0x100) and return "arm/armv8-ca53" so we can utilize the PMU.
>
> Signed-off-by: Florian Fainelli <flo...@br...>
> ---
> libop/op_cpu_type.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/libop/op_cpu_type.c b/libop/op_cpu_type.c
> index 3aab4a2d418d..69e9098cf516 100644
> --- a/libop/op_cpu_type.c
> +++ b/libop/op_cpu_type.c
> @@ -430,6 +430,8 @@ static op_cpu _get_arm_cpu_type(void)
> switch (cpuid) {
> case 0x00f:
> return op_get_cpu_number("arm/armv7-ca15");
> + case 0x100:
> + return op_get_cpu_number("arm/armv8-ca53");
> case 0x516:
> return op_get_cpu_number("arm/armv8-thunderx2");
> }
Hi,
The patch looks reasonable and it has been merged into the upstream oprofile git master repository.
-Will
|