mirror of
git://nv-tegra.nvidia.com/linux-hwpm.git
synced 2025-12-24 10:13:00 +03:00
tegra: hwpm: set IP config as per fuse setting
Performance monitoring of IPs is dependent on the build config. Read SOC fuses and set IP override_enable accordingly. Jira THWPM-41 Change-Id: Id289a3e6763d3f3a7852e098b8a12be2eeec8e62 Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2677058 Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Vasuki Shankar <vasukis@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
146211284c
commit
5518c6ea4c
@@ -135,8 +135,15 @@ void tegra_hwpm_release_sw_components(struct tegra_soc_hwpm *hwpm)
|
||||
|
||||
int tegra_hwpm_setup_sw(struct tegra_soc_hwpm *hwpm)
|
||||
{
|
||||
int ret = 0;
|
||||
tegra_hwpm_fn(hwpm, " ");
|
||||
|
||||
ret = hwpm->active_chip->validate_current_config(hwpm);
|
||||
if (ret != 0) {
|
||||
tegra_hwpm_err(hwpm, "Failed to validate current conifg");
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* Initialize SW state */
|
||||
hwpm->bind_completed = false;
|
||||
hwpm->full_alist_size = 0;
|
||||
|
||||
Reference in New Issue
Block a user