summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-12-03 09:11:50 -0500
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:52:03 -0500
commit15839d4763e0651e789a6511476851cccef0febb (patch)
tree0e0a6d52c478077049c0c51d1abf6bfdcccffacf /drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h
parent945e5e6832bd2461b9eafa61e8dd06b793a6f6b9 (diff)
gpu: nvgpu: Implement gp10b context creation
Implement context creation for gp10b. GfxP contexts need per channel buffers. Bug 1517461 Change-Id: Ifecb59002f89f0407457730a35bfb3fe988b907a Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/660236
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h')
-rw-r--r--drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h16
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 79890f3c..0892f12e 100644
--- a/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h
+++ b/drivers/gpu/nvgpu/gp10b/hw_ctxsw_prog_gp10b.h
@@ -238,4 +238,20 @@ static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(v
238{ 238{
239 return 0x0; 239 return 0x0;
240} 240}
241static inline u32 ctxsw_prog_main_image_graphics_preemption_options_o(void)
242{
243 return 0x00000080;
244}
245static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_f(u32 v)
246{
247 return (v & 0x3) << 0;
248}
249static inline u32 ctxsw_prog_main_image_graphics_preemption_options_control_gfxp_f(void)
250{
251 return 0x1;
252}
253static inline u32 ctxsw_prog_main_image_full_preemption_ptr_o(void)
254{
255 return 0x00000068;
256}
241#endif 257#endif