diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-12-23 05:26:50 -0500 |
---|---|---|
committer | Sachin Nikam <snikam@nvidia.com> | 2016-01-13 02:00:08 -0500 |
commit | b51ffba58f83f0324e22884906fcb70d055c287a (patch) | |
tree | f790e8959a8784cb22db3d161e87ff5b05d2883b /drivers/gpu/nvgpu/gm20b | |
parent | 4bc0a42f32f16b2050b9f190909d0d5df4d80e44 (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/gm20b')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h index 34f8a6a4..d01667bc 100644 --- a/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h +++ b/drivers/gpu/nvgpu/gm20b/hw_ctxsw_prog_gm20b.h | |||
@@ -270,4 +270,8 @@ static inline u32 ctxsw_prog_main_image_preemption_options_control_cta_enabled_f | |||
270 | { | 270 | { |
271 | return 0x1; | 271 | return 0x1; |
272 | } | 272 | } |
273 | static inline u32 ctxsw_prog_main_image_context_id_o(void) | ||
274 | { | ||
275 | return 0x000000f0; | ||
276 | } | ||
273 | #endif | 277 | #endif |