diff options
author | Sami Kiminki <skiminki@nvidia.com> | 2018-01-31 16:09:28 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-06 08:21:41 -0500 |
commit | 068217e5674d9d396b294331012e1effd18c345a (patch) | |
tree | a6a0be30715bb84e8cf5eb98b1140745a4a2640f /drivers/gpu/nvgpu/include/nvgpu/hw/gv11b/hw_gr_gv11b.h | |
parent | d6ce4f7fb4bb9e6f393ff0f938b3ad8375163983 (diff) |
gpu: nvgpu: gv11b: disable SCC pagepool invalidates
Disable SCC pagepool invalidates as is required by HW. Since this
register is context-switched, add these in the GR init sequence.
Bug 2040262
Change-Id: I8dd1b7c7c4b0544878ca57b1261f9c85fa380d47
Signed-off-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1649719
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
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 | 16 |
1 files changed, 16 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 d34dcf33..c430122d 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 | |||
@@ -2932,6 +2932,22 @@ static inline u32 gr_ds_num_tpc_per_gpc_r(u32 i) | |||
2932 | { | 2932 | { |
2933 | return 0x00405870U + i*4U; | 2933 | return 0x00405870U + i*4U; |
2934 | } | 2934 | } |
2935 | static inline u32 gr_scc_debug_r(void) | ||
2936 | { | ||
2937 | return 0x00408000U; | ||
2938 | } | ||
2939 | static inline u32 gr_scc_debug_pagepool_invalidates_m(void) | ||
2940 | { | ||
2941 | return 0x1U << 9U; | ||
2942 | } | ||
2943 | static inline u32 gr_scc_debug_pagepool_invalidates_disable_f(void) | ||
2944 | { | ||
2945 | return 0x200U; | ||
2946 | } | ||
2947 | static inline u32 gr_scc_debug_pagepool_invalidates_enable_f(void) | ||
2948 | { | ||
2949 | return 0x0U; | ||
2950 | } | ||
2935 | static inline u32 gr_scc_bundle_cb_base_r(void) | 2951 | static inline u32 gr_scc_bundle_cb_base_r(void) |
2936 | { | 2952 | { |
2937 | return 0x00408004U; | 2953 | return 0x00408004U; |