From 5c94e7dad33890bfc8328ba36a6024b1ad7cb7b7 Mon Sep 17 00:00:00 2001 From: Vedashree Vidwans Date: Wed, 1 Jun 2022 10:49:42 -0700 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2723370 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Seema Khowala Reviewed-by: svc_kernel_abi Reviewed-by: svcacv GVS: Gerrit_Virtual_Submit --- hal/t234/t234_hwpm_ip_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hal/t234/t234_hwpm_ip_utils.c b/hal/t234/t234_hwpm_ip_utils.c index 3cbe6e1..90dfff1 100644 --- a/hal/t234/t234_hwpm_ip_utils.c +++ b/hal/t234/t234_hwpm_ip_utils.c @@ -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) {