From effa9dcfaa5220c6e59d421e1e3c90a97b86dc74 Mon Sep 17 00:00:00 2001 From: Randy Spurlock Date: Mon, 5 May 2014 18:37:54 -0500 Subject: video: tegra: host: gk20a: add class perf settings Add a place to edit context-switched perf settings based upon class. Disable tex-lock as the first of such for compute. Bug 1409041 Change-Id: I5317a2a2e5f855661a1400b42f69211d16ae0c1d Signed-off-by: Randy Spurlock Reviewed-on: http://git-master/r/405908 (cherry picked from commit 250e149be35ecb8893dcef053ec44ffea86c302a) Reviewed-on: http://git-master/r/407094 (cherry picked from commit 54337c08cbf6c2c6b5c929c1be24e87165d9d946) Reviewed-on: http://git-master/r/408837 Reviewed-by: Mandar Padmawar Tested-by: Mandar Padmawar --- drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h | 52 +++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h') diff --git a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h index a28a1d0d..fad8d3a6 100644 --- a/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/hw_gr_gk20a.h @@ -3190,4 +3190,56 @@ static inline u32 gr_gpc0_tpc0_l1c_dbg_cya15_en_f(void) { return 0x8000000; } +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_r(void) +{ + return 0x00419ec8; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_m(void) +{ + return 0x1 << 0; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_disable_f(void) +{ + return 0x0; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tile_m(void) +{ + return 0x1 << 1; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tile_disable_f(void) +{ + return 0x0; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_phase_m(void) +{ + return 0x1 << 2; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_phase_disable_f(void) +{ + return 0x0; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tex_m(void) +{ + return 0x1 << 3; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_tex_disable_f(void) +{ + return 0x0; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_timeout_m(void) +{ + return 0xff << 4; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_tex_hash_timeout_disable_f(void) +{ + return 0x0; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_dot_t_unlock_m(void) +{ + return 0x1 << 16; +} +static inline u32 gr_gpcs_tpcs_sm_sch_texlock_dot_t_unlock_disable_f(void) +{ + return 0x0; +} #endif -- cgit v1.2.2