mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-22 17:30:40 +03:00
tegra: hwpm: th500: Add support for C-NVLINK
This patch adds support for C-NVLINK performance monitoring in the driver. C-NVLINK consists of RX, TX, and CTRL apertures, each with its own perfmux signals and perfmons. So this patch breaks them up into three sets of perfmux-perfmon data structures. Bug 4287384 Signed-off-by: Vishal Aslot <vaslot@nvidia.com> Change-Id: Id8be4c965018125765f75a7b8bc8ab809bb7f976 Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/2999166 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-by: Vedashree Vidwans <vvidwans@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
6e75fd7b50
commit
bc6fdf1f18
@@ -96,6 +96,15 @@ static u32 tegra_hwpm_translate_soc_hwpm_ip(struct tegra_soc_hwpm *hwpm,
|
||||
case TEGRA_SOC_HWPM_IP_CL2:
|
||||
ip_enum_idx = TEGRA_HWPM_IP_CL2;
|
||||
break;
|
||||
case TEGRA_SOC_HWPM_IP_NVLCTRL:
|
||||
ip_enum_idx = TEGRA_HWPM_IP_NVLCTRL;
|
||||
break;
|
||||
case TEGRA_SOC_HWPM_IP_NVLRX:
|
||||
ip_enum_idx = TEGRA_HWPM_IP_NVLRX;
|
||||
break;
|
||||
case TEGRA_SOC_HWPM_IP_NVLTX:
|
||||
ip_enum_idx = TEGRA_HWPM_IP_NVLTX;
|
||||
break;
|
||||
default:
|
||||
tegra_hwpm_err(hwpm,
|
||||
"Queried enum tegra_soc_hwpm_ip %d is invalid",
|
||||
@@ -207,6 +216,15 @@ u32 tegra_hwpm_translate_soc_hwpm_resource(struct tegra_soc_hwpm *hwpm,
|
||||
case TEGRA_SOC_HWPM_RESOURCE_CL2:
|
||||
res_enum_idx = TEGRA_HWPM_RESOURCE_CL2;
|
||||
break;
|
||||
case TEGRA_SOC_HWPM_RESOURCE_NVLCTRL:
|
||||
res_enum_idx = TEGRA_HWPM_RESOURCE_NVLCTRL;
|
||||
break;
|
||||
case TEGRA_SOC_HWPM_RESOURCE_NVLRX:
|
||||
res_enum_idx = TEGRA_HWPM_RESOURCE_NVLRX;
|
||||
break;
|
||||
case TEGRA_SOC_HWPM_RESOURCE_NVLTX:
|
||||
res_enum_idx = TEGRA_HWPM_RESOURCE_NVLTX;
|
||||
break;
|
||||
default:
|
||||
tegra_hwpm_err(hwpm,
|
||||
"Queried enum tegra_soc_hwpm_resource %d is invalid",
|
||||
|
||||
Reference in New Issue
Block a user