From 2998ab4e0a0b19da1332b82d779bd17b4e284b38 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 4 Sep 2018 16:37:33 +0530 Subject: gpu: nvgpu: remove unused regops HALs Below regops HALs are not being called from anywhere, so remove them gops.regops.get_runcontrol_whitelist_ranges() gops.regops.get_runcontrol_whitelist_ranges_count() gops.regops.get_qctl_whitelist_ranges() gops.regops.get_qctl_whitelist_ranges_count() HAL gops.regops.apply_smpc_war() is unimplemented for all the chips, and it was originally only needed for gk20a which is not unsupported So remove this HAL and its call too Jira NVGPU-620 Change-Id: Ia2c74883cd647a2e94ee740ffd040a40c442b939 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1813106 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gv11b/regops_gv11b.c | 38 ---------------------------------- 1 file changed, 38 deletions(-) (limited to 'drivers/gpu/nvgpu/gv11b/regops_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/regops_gv11b.c b/drivers/gpu/nvgpu/gv11b/regops_gv11b.c index 768674fe..0bc8ab05 100644 --- a/drivers/gpu/nvgpu/gv11b/regops_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/regops_gv11b.c @@ -23,7 +23,6 @@ */ #include "gk20a/gk20a.h" -#include "gk20a/dbg_gpu_gk20a.h" #include "gk20a/regops_gk20a.h" #include "regops_gv11b.h" @@ -1452,23 +1451,12 @@ static const u32 gv11b_runcontrol_whitelist[] = { static const u64 gv11b_runcontrol_whitelist_count = ARRAY_SIZE(gv11b_runcontrol_whitelist); -static const struct regop_offset_range gv11b_runcontrol_whitelist_ranges[] = { -}; -static const u64 gv11b_runcontrol_whitelist_ranges_count = - ARRAY_SIZE(gv11b_runcontrol_whitelist_ranges); - - /* quad ctl */ static const u32 gv11b_qctl_whitelist[] = { }; static const u64 gv11b_qctl_whitelist_count = ARRAY_SIZE(gv11b_qctl_whitelist); -static const struct regop_offset_range gv11b_qctl_whitelist_ranges[] = { -}; -static const u64 gv11b_qctl_whitelist_ranges_count = - ARRAY_SIZE(gv11b_qctl_whitelist_ranges); - const struct regop_offset_range *gv11b_get_global_whitelist_ranges(void) { return gv11b_global_whitelist_ranges; @@ -1499,16 +1487,6 @@ u64 gv11b_get_runcontrol_whitelist_count(void) return gv11b_runcontrol_whitelist_count; } -const struct regop_offset_range *gv11b_get_runcontrol_whitelist_ranges(void) -{ - return gv11b_runcontrol_whitelist_ranges; -} - -u64 gv11b_get_runcontrol_whitelist_ranges_count(void) -{ - return gv11b_runcontrol_whitelist_ranges_count; -} - const u32 *gv11b_get_qctl_whitelist(void) { return gv11b_qctl_whitelist; @@ -1518,19 +1496,3 @@ u64 gv11b_get_qctl_whitelist_count(void) { return gv11b_qctl_whitelist_count; } - -const struct regop_offset_range *gv11b_get_qctl_whitelist_ranges(void) -{ - return gv11b_qctl_whitelist_ranges; -} - -u64 gv11b_get_qctl_whitelist_ranges_count(void) -{ - return gv11b_qctl_whitelist_ranges_count; -} - -int gv11b_apply_smpc_war(struct dbg_session_gk20a *dbg_s) -{ - /* Not needed on gv11b */ - return 0; -} -- cgit v1.2.2