summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2015-12-23 05:26:50 -0500
committerSachin Nikam <snikam@nvidia.com>2016-01-13 02:00:08 -0500
commitb51ffba58f83f0324e22884906fcb70d055c287a (patch)
treef790e8959a8784cb22db3d161e87ff5b05d2883b /drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
parent4bc0a42f32f16b2050b9f190909d0d5df4d80e44 (diff)
gpu: nvgpu: API to extract context id
Add new API gr_gk20a_get_ctx_id() to get/extract context id from GR context Bug 200156699 Change-Id: If0e8887a9a6b139cd795bf03f5def64fd664d12b Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/927130 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h b/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
index 4e3fae13..39cbbb58 100644
--- a/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/hw_ctxsw_prog_gk20a.h
@@ -242,4 +242,8 @@ static inline u32 ctxsw_prog_main_image_misc_options_verif_features_disabled_f(v
242{ 242{
243 return 0x0; 243 return 0x0;
244} 244}
245static inline u32 ctxsw_prog_main_image_context_id_o(void)
246{
247 return 0x000000f0;
248}
245#endif 249#endif