From d9ed3fd02b97dff3a301c537762d1e453d113dc4 Mon Sep 17 00:00:00 2001 From: vasukis Date: Wed, 15 Jan 2025 21:46:13 +0000 Subject: [PATCH] tegra: hwpm: t264: Depreciate message to warning When an IP is not enabled in HWPM Makefile, an error message is given out. This has a higher log_level which causes the Kernel Warning test in GVS to fail. Hence, depreciate the log level to warning as not enabling an IP for HWPM profiling is not an error per say. Bug 4345706 Signed-off-by: vasukis Change-Id: Ib85931c06f42168e86aea5b0b2cb208f93216042 Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3284317 Reviewed-by: Yifei Wan Reviewed-by: Besar Wicaksono Reviewed-by: svcacv GVS: buildbot_gerritrpt --- drivers/tegra/hwpm/hal/t264/t264_interface.c | 5 +++-- drivers/tegra/hwpm/hal/t264/t264_ip.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/tegra/hwpm/hal/t264/t264_interface.c b/drivers/tegra/hwpm/hal/t264/t264_interface.c index 9b1e011..35288c6 100644 --- a/drivers/tegra/hwpm/hal/t264/t264_interface.c +++ b/drivers/tegra/hwpm/hal/t264/t264_interface.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT /* - * SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-FileCopyrightText: Copyright (c) 2023-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -278,7 +278,8 @@ bool t264_hwpm_is_resource_active(struct tegra_soc_hwpm *hwpm, config_ip = T264_HWPM_IP_RTR; break; default: - tegra_hwpm_err(hwpm, "Queried resource %d invalid", + tegra_hwpm_dbg(hwpm, hwpm_dbg_ip_register, + "Queried resource %d invalid", res_enum); break; } diff --git a/drivers/tegra/hwpm/hal/t264/t264_ip.c b/drivers/tegra/hwpm/hal/t264/t264_ip.c index 53f6dfb..946136e 100644 --- a/drivers/tegra/hwpm/hal/t264/t264_ip.c +++ b/drivers/tegra/hwpm/hal/t264/t264_ip.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT /* - * SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-FileCopyrightText: Copyright (c) 2023-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -50,7 +50,7 @@ int t264_hwpm_extract_ip_ops(struct tegra_soc_hwpm *hwpm, /* Convert tegra_soc_hwpm_resource to internal enum */ if (!(t264_hwpm_is_resource_active(hwpm, resource_enum, &ip_idx))) { - tegra_hwpm_err(hwpm, + tegra_hwpm_dbg(hwpm, hwpm_dbg_ip_register, "SOC hwpm resource %d (base 0x%llx) is unconfigured", resource_enum, (unsigned long long)base_address); goto fail;