tegra: hwpm: fix global disable expected value

HWPM_GLOBAL_DISABLE sticky bit is expected to have value 0 indicating
that HWPM profiling is allowed and value 1 indicates that HWPM perfmons
should be disabled.

Bug 3665263

Change-Id: Idfa77592e2a8a8307490f9265e4713741db6c1f4
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2723370
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Vedashree Vidwans
2022-06-01 10:49:42 -07:00
committed by mobile promotions
parent 97c0f1da08
commit 5c94e7dad3

View File

@@ -230,7 +230,7 @@ int t234_hwpm_validate_current_config(struct tegra_soc_hwpm *hwpm)
}
#define TEGRA_HWPM_GLOBAL_DISABLE_OFFSET 0x3CU
#define TEGRA_HWPM_GLOBAL_DISABLE_DISABLED 0x1U
#define TEGRA_HWPM_GLOBAL_DISABLE_DISABLED 0x0U
err = tegra_hwpm_read_sticky_bits(hwpm, addr_map_pmc_misc_base_r(),
TEGRA_HWPM_GLOBAL_DISABLE_OFFSET, &hwpm_global_disable);
if (err != 0) {