From 06039978a16d6733b6b9549892d6f54ca23980cd Mon Sep 17 00:00:00 2001 From: vasukis Date: Tue, 23 Jan 2024 20:23:13 +0000 Subject: [PATCH] tegra: hwpm: Remove un-used NVDLA allow-list regs HWPM allowlist defines additional allow-list register offsets which are not used to profile NVDLA IP. Remove these register offsets to be on par with what NVDLA ResMgr expects. Bug 4452024 Change-Id: Ifce31753f32b31592a1868840a8c45b113a578f5 Signed-off-by: vasukis Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3061071 Reviewed-by: Seema Khowala GVS: Gerrit_Virtual_Submit --- drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.c | 10 ++-------- drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.h | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.c b/drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.c index a71fd61..d269372 100644 --- a/drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.c +++ b/drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT /* - * Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * Copyright (c) 2021-2024 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"), @@ -252,11 +252,8 @@ struct allowlist t234_pva0_pm_alist[9] = { {0x00008020, true}, }; -struct allowlist t234_nvdla_alist[37] = { - {0x00001088, false}, +struct allowlist t234_nvdla_alist[31] = { {0x000010a8, false}, - {0x0001a000, false}, - {0x0001a004, false}, {0x0001a008, true}, {0x0001a00c, true}, {0x0001a010, true}, @@ -287,9 +284,6 @@ struct allowlist t234_nvdla_alist[37] = { {0x0001a074, true}, {0x0001a078, true}, {0x0001a07c, true}, - {0x00000008, true}, - {0x00000a00, true}, - {0x00000a20, true}, }; struct allowlist t234_mgbe_alist[2] = { diff --git a/drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.h b/drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.h index cd20180..2483004 100644 --- a/drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.h +++ b/drivers/tegra/hwpm/hal/t234/t234_regops_allowlist.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: MIT */ /* - * Copyright (c) 2021-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * Copyright (c) 2021-2024 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"), @@ -35,7 +35,7 @@ extern struct allowlist t234_isp_thi_alist[7]; extern struct allowlist t234_vic_alist[9]; extern struct allowlist t234_ofa_alist[8]; extern struct allowlist t234_pva0_pm_alist[9]; -extern struct allowlist t234_nvdla_alist[37]; +extern struct allowlist t234_nvdla_alist[31]; extern struct allowlist t234_mgbe_alist[2]; extern struct allowlist t234_nvdec_alist[8]; extern struct allowlist t234_nvenc_alist[9];