tegra: hwpm: th500: Add support for MCF CORE

This patch adds support for MCF CORE performance
monitoring in the driver.

Bug 4287384

Signed-off-by: Vishal Aslot <vaslot@nvidia.com>
Change-Id: I75466b28f3539c4b77be274d512e97f4d3a8847c
Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2985961
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com>
This commit is contained in:
Vishal Aslot
2023-09-26 15:28:32 +00:00
committed by mobile promotions
parent 2e41e3a5bd
commit d8fa381df1
7 changed files with 743 additions and 0 deletions

View File

@@ -120,6 +120,9 @@ static u32 tegra_hwpm_translate_soc_hwpm_ip(struct tegra_soc_hwpm *hwpm,
case TEGRA_SOC_HWPM_IP_MCF_CLINK:
ip_enum_idx = TEGRA_HWPM_IP_MCF_CLINK;
break;
case TEGRA_SOC_HWPM_IP_MCF_CORE:
ip_enum_idx = TEGRA_HWPM_IP_MCF_CORE;
break;
default:
tegra_hwpm_err(hwpm,
"Queried enum tegra_soc_hwpm_ip %d is invalid",
@@ -255,6 +258,9 @@ u32 tegra_hwpm_translate_soc_hwpm_resource(struct tegra_soc_hwpm *hwpm,
case TEGRA_SOC_HWPM_RESOURCE_MCF_CLINK:
res_enum_idx = TEGRA_HWPM_RESOURCE_MCF_CLINK;
break;
case TEGRA_SOC_HWPM_RESOURCE_MCF_CORE:
res_enum_idx = TEGRA_HWPM_RESOURCE_MCF_CORE;
break;
default:
tegra_hwpm_err(hwpm,
"Queried enum tegra_soc_hwpm_resource %d is invalid",