diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2017-06-22 17:43:05 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-27 13:44:05 -0400 |
commit | 5572bfa86a6afc7ae3c2f4a61e568f8e759c6ecc (patch) | |
tree | be8c8160c1b83646163a3b3e7b7587c8362f5991 /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |
parent | 5107bda90a1e55d4850a8f1c27008f05c420b4ec (diff) |
gpu: nvgpu: gv11b: sw method for NVC397_SET_TEX_IN_DBG
Added sw method for NVC397_SET_TEX_IN_DBG with
following data fields:
data:0 PRI_TEX_IN_DBG_TSL1_RVCH_INVALIDATE
data:1 PRI_SM_L1TAG_CTRL_CACHE_SURFACE_LD
data:2 PRI_SM_L1TAG_CTRL_CACHE_SURFACE_ST
Bug 1934197
Change-Id: I0956d3f5c859ac23e16fb6b7372acd098dfb6d16
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master/r/1507479
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Wei Sun <wsun@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h index 29a8b33c..75a64be5 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h +++ b/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |||
@@ -3830,6 +3830,38 @@ static inline u32 gr_zcull_subregion_qty_v(void) | |||
3830 | { | 3830 | { |
3831 | return 0x00000010; | 3831 | return 0x00000010; |
3832 | } | 3832 | } |
3833 | static inline u32 gr_gpcs_tpcs_tex_in_dbg_r(void) | ||
3834 | { | ||
3835 | return 0x00419a00; | ||
3836 | } | ||
3837 | static inline u32 gr_gpcs_tpcs_tex_in_dbg_tsl1_rvch_invalidate_f(u32 v) | ||
3838 | { | ||
3839 | return (v & 0x1) << 19; | ||
3840 | } | ||
3841 | static inline u32 gr_gpcs_tpcs_tex_in_dbg_tsl1_rvch_invalidate_m(void) | ||
3842 | { | ||
3843 | return 0x1 << 19; | ||
3844 | } | ||
3845 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_r(void) | ||
3846 | { | ||
3847 | return 0x00419bf0; | ||
3848 | } | ||
3849 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_ld_f(u32 v) | ||
3850 | { | ||
3851 | return (v & 0x1) << 5; | ||
3852 | } | ||
3853 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_ld_m(void) | ||
3854 | { | ||
3855 | return 0x1 << 5; | ||
3856 | } | ||
3857 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_f(u32 v) | ||
3858 | { | ||
3859 | return (v & 0x1) << 10; | ||
3860 | } | ||
3861 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_m(void) | ||
3862 | { | ||
3863 | return 0x1 << 10; | ||
3864 | } | ||
3833 | static inline u32 gr_fe_pwr_mode_r(void) | 3865 | static inline u32 gr_fe_pwr_mode_r(void) |
3834 | { | 3866 | { |
3835 | return 0x00404170; | 3867 | return 0x00404170; |