diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2014-12-09 03:49:08 -0500 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:03 -0500 |
commit | 4493b6b2004420eacab07f4e063377599ec9fe53 (patch) | |
tree | 44394a4b6b3ea6a06709a04ee739c99e630ff336 /drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h | |
parent | d40f3fb2731b9e0586677026dcdeaabf63398933 (diff) |
gpu: nvgpu: gp10b: Enable CILP mode for compute
Allow enabling CILP for compute. Set CTA by default.
Bug 1517461
Change-Id: I85cc931b810afb3ee6116de1200d01b52e1bc29e
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/661298
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h b/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h index 0892f12e..7872c19c 100644 --- a/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h | |||
@@ -254,4 +254,20 @@ static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void) | |||
254 | { | 254 | { |
255 | return 0x00000068; | 255 | return 0x00000068; |
256 | } | 256 | } |
257 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_o(void) | ||
258 | { | ||
259 | return 0x00000084; | ||
260 | } | ||
261 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_f(u32 v) | ||
262 | { | ||
263 | return (v & 0x3) << 0; | ||
264 | } | ||
265 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cta_f(void) | ||
266 | { | ||
267 | return 0x1; | ||
268 | } | ||
269 | static inline u32 ctxsw_prog_main_image_compute_preemption_options_control_cilp_f(void) | ||
270 | { | ||
271 | return 0x2; | ||
272 | } | ||
257 | #endif | 273 | #endif |