From c558b389c1287d11694faee3b726a7a8cb73bb42 Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Sun, 7 Apr 2019 11:40:03 -0700 Subject: [PATCH] gpu: nvgpu: remove un-used kernel hw header defs Following kernel headers register defs are removed from minimal hw headers. gv100 and tu104 kernel headers are updated with these def removal: NV_PGRAPH_PRI_GPC0_TPC1_TPCCS_TPC_ACTIVITY0 NV_PGRAPH_PRI_GPC0_TPCS_TPCCS_TPC_ACTIVITY0 NV_PGRAPH_PRI_GPCS_TPC0_TPCCS_TPC_ACTIVITY0 NV_PGRAPH_PRI_GPCS_TPC1_TPCCS_TPC_ACTIVITY0 NV_PGRAPH_PRI_BE1_BECS_BE_ACTIVITY0 JIRA NVGPU-2920 JIRA NVGPU-2921 Change-Id: I444d9f23457e6dd2d42a8f4f40ad6c42fdcc6481 Signed-off-by: Seshendra Gadagottu Reviewed-on: https://git-master.nvidia.com/r/2091770 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions --- .../include/nvgpu/hw/gv100/hw_gr_gv100.h | 20 ------------------- .../include/nvgpu/hw/tu104/hw_gr_tu104.h | 20 ------------------- 2 files changed, 40 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h index 6109368ec..85fc16477 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv100/hw_gr_gv100.h @@ -526,14 +526,6 @@ static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void) { return 0x00504500U; } -static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void) -{ - return 0x00504d00U; -} -static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void) -{ - return 0x00501d00U; -} static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void) { return 0x0041ac80U; @@ -550,14 +542,6 @@ static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void) { return 0x0041ac8cU; } -static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void) -{ - return 0x0041c500U; -} -static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void) -{ - return 0x0041cd00U; -} static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void) { return 0x00419d00U; @@ -566,10 +550,6 @@ static inline u32 gr_pri_be0_becs_be_activity0_r(void) { return 0x00410200U; } -static inline u32 gr_pri_be1_becs_be_activity0_r(void) -{ - return 0x00410600U; -} static inline u32 gr_pri_bes_becs_be_activity0_r(void) { return 0x00408a00U; diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/tu104/hw_gr_tu104.h b/drivers/gpu/nvgpu/include/nvgpu/hw/tu104/hw_gr_tu104.h index 8ccc30147..cb36be485 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/tu104/hw_gr_tu104.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/tu104/hw_gr_tu104.h @@ -518,14 +518,6 @@ static inline u32 gr_pri_gpc0_tpc0_tpccs_tpc_activity_0_r(void) { return 0x00504500U; } -static inline u32 gr_pri_gpc0_tpc1_tpccs_tpc_activity_0_r(void) -{ - return 0x00504d00U; -} -static inline u32 gr_pri_gpc0_tpcs_tpccs_tpc_activity_0_r(void) -{ - return 0x00501d00U; -} static inline u32 gr_pri_gpcs_gpccs_gpc_activity_0_r(void) { return 0x0041ac80U; @@ -542,14 +534,6 @@ static inline u32 gr_pri_gpcs_gpccs_gpc_activity_3_r(void) { return 0x0041ac8cU; } -static inline u32 gr_pri_gpcs_tpc0_tpccs_tpc_activity_0_r(void) -{ - return 0x0041c500U; -} -static inline u32 gr_pri_gpcs_tpc1_tpccs_tpc_activity_0_r(void) -{ - return 0x0041cd00U; -} static inline u32 gr_pri_gpcs_tpcs_tpccs_tpc_activity_0_r(void) { return 0x00419d00U; @@ -558,10 +542,6 @@ static inline u32 gr_pri_be0_becs_be_activity0_r(void) { return 0x00410200U; } -static inline u32 gr_pri_be1_becs_be_activity0_r(void) -{ - return 0x00410600U; -} static inline u32 gr_pri_bes_becs_be_activity0_r(void) { return 0x00408a00U;