summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
diff options
context:
space:
mode:
authorseshendra Gadagottu <sgadagottu@nvidia.com>2018-01-30 16:05:47 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-01-31 15:37:36 -0500
commit8e523a9a53088cd6b8645ab2b9ea8b3cd7cd5e9d (patch)
tree23e374cac0d95d19075e0a3f22b0251058f94387 /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h
parentcb9f8bae1aeacf9da0d5fea2da36baa43e9a586b (diff)
gpu: nvgpu: gv11b: disable cbm alpha/beta cache invalidates
Disabled CBM alpha and beta cache invalidates as required by hw. Since these registers are context switched out, added these invalidates as part of gr init sequence, so golden context restore these settings for all contexts. Bug 2040262 Change-Id: Iffdd03f2ac6440ddd615899c407cfee692460918 Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1648948 Reviewed-by: Sami Kiminki <skiminki@nvidia.com> Tested-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: Chris Dragan <kdragan@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.h28
1 files changed, 28 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 72cbc7dd..f40c7585 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
@@ -3636,6 +3636,34 @@ static inline u32 gr_gpcs_ppcs_cbm_beta_cb_ctrl_cbes_reserve_f(u32 v)
3636{ 3636{
3637 return (v & 0xfffU) << 0U; 3637 return (v & 0xfffU) << 0U;
3638} 3638}
3639static inline u32 gr_gpcs_ppcs_cbm_debug_r(void)
3640{
3641 return 0x0041bec4U;
3642}
3643static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_m(void)
3644{
3645 return 0x1U << 0U;
3646}
3647static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_disable_f(void)
3648{
3649 return 0x0U;
3650}
3651static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_alpha_enable_f(void)
3652{
3653 return 0x1U;
3654}
3655static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_m(void)
3656{
3657 return 0x1U << 1U;
3658}
3659static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_disable_f(void)
3660{
3661 return 0x0U;
3662}
3663static inline u32 gr_gpcs_ppcs_cbm_debug_invalidate_beta_enable_f(void)
3664{
3665 return 0x2U;
3666}
3639static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i) 3667static inline u32 gr_gpcs_swdx_tc_beta_cb_size_r(u32 i)
3640{ 3668{
3641 return 0x00418ea0U + i*4U; 3669 return 0x00418ea0U + i*4U;