diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-04-26 21:33:06 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-04 00:44:25 -0400 |
commit | 8b666b0bd6987781611103f7bb74cbdd44ef80b5 (patch) | |
tree | 5e34fcbebf76e218a5bbbf3d32e380fd4e02898e /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |
parent | c9463fdbb31324cc8eaa7fbed69f8d4b98ef38b5 (diff) |
gpu: nvgpu: add sw method for SHADER_CUT_COLLECTOR
Added sw method for NVC397_SET_SHADER_CUT_COLLECTOR
to enable/disable SHADER_CUT_COLLECTOR_STATE.
Added support for this sw method in gv11b and gv100.
Bug 2108381
Change-Id: Ief2c2bf5d9c99779dad3b1243041c5efe56287d3
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1703662
GVS: Gerrit_Virtual_Submit
Reviewed-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@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 | 12 |
1 files changed, 12 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 f7968089..17c7e77d 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 | |||
@@ -4640,6 +4640,18 @@ static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_cache_surface_st_m(void) | |||
4640 | { | 4640 | { |
4641 | return 0x1U << 10U; | 4641 | return 0x1U << 10U; |
4642 | } | 4642 | } |
4643 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_m(void) | ||
4644 | { | ||
4645 | return 0x1U << 28U; | ||
4646 | } | ||
4647 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_disable_f(void) | ||
4648 | { | ||
4649 | return 0x0U; | ||
4650 | } | ||
4651 | static inline u32 gr_gpcs_tpcs_sm_l1tag_ctrl_always_cut_collector_enable_f(void) | ||
4652 | { | ||
4653 | return 0x10000000U; | ||
4654 | } | ||
4643 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control_sel0_r(void) | 4655 | static inline u32 gr_egpc0_etpc0_sm_dsm_perf_counter_control_sel0_r(void) |
4644 | { | 4656 | { |
4645 | return 0x00584200U; | 4657 | return 0x00584200U; |