summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2016-04-18 04:24:31 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-04-19 11:08:07 -0400
commit2b2f84219c4bd21be9a7abf34334ec6d443c6c38 (patch)
tree2405fcb040a91a35becda1c6df023e156251f7cd /drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h
parentb63c4bced5b01e2aef477ecfca784848e2a2cd3a (diff)
gpu: nvgpu: add accessors for global_esr values and sm_dbgr_control
Add gk20a/gm20b accessors for various global_esr values and for sm_dbgr_control modes Bug 200156699 Change-Id: If7fd8cd7567f8bcd1f645facf9553bdc0a153526 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1120333 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h')
-rw-r--r--drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h
index c9bf4b4f..535b6c6e 100644
--- a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h
+++ b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h
@@ -74,6 +74,10 @@ static inline u32 ctxsw_prog_main_image_patch_count_o(void)
74{ 74{
75 return 0x00000010; 75 return 0x00000010;
76} 76}
77static inline u32 ctxsw_prog_main_image_context_id_o(void)
78{
79 return 0x000000f0;
80}
77static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void) 81static inline u32 ctxsw_prog_main_image_patch_adr_lo_o(void)
78{ 82{
79 return 0x00000014; 83 return 0x00000014;
@@ -458,8 +462,4 @@ static inline u32 ctxsw_prog_main_image_preemption_options_control_cta_enabled_f
458{ 462{
459 return 0x1; 463 return 0x1;
460} 464}
461static inline u32 ctxsw_prog_main_image_context_id_o(void)
462{
463 return 0x000000f0;
464}
465#endif 465#endif