diff options
author | Richard Zhao <rizhao@nvidia.com> | 2015-11-19 21:16:21 -0500 |
---|---|---|
committer | Vladislav Buzov <vbuzov@nvidia.com> | 2016-01-10 23:05:56 -0500 |
commit | f1d41774627efe612ee0ef0868d7233c5f2038f3 (patch) | |
tree | c5b67d176446d45d54fce6f886a013a579988472 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | aeee97b059c0c2d1960d5dae7c86b7858cd00cce (diff) |
gpu: nvgpu: abstract set sm debug mode
Add new operation g->ops.gr.set_sm_debug_mode and move native
implementation to gr_gk20a.c
It's preparing for adding vgpu set sm debug mode hook.
JIRA VFND-1006
Bug 1594604
Change-Id: Ia5ca06a86085a690e70bfa9c62f57ec3830ea933
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/923232
(cherry picked from commit 032552b54c570952d1e36c08191e9f70b9c59447)
Reviewed-on: http://git-master/r/835614
Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vladislav Buzov <vbuzov@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 6f2258e9..f7b98e39 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -185,6 +185,8 @@ struct gpu_ops { | |||
185 | u32 expect_delay); | 185 | u32 expect_delay); |
186 | void (*init_cyclestats)(struct gk20a *g); | 186 | void (*init_cyclestats)(struct gk20a *g); |
187 | void (*enable_cde_in_fecs)(void *ctx_ptr); | 187 | void (*enable_cde_in_fecs)(void *ctx_ptr); |
188 | int (*set_sm_debug_mode)(struct gk20a *g, struct channel_gk20a *ch, | ||
189 | u64 sms, bool enable); | ||
188 | void (*bpt_reg_info)(struct gk20a *g, | 190 | void (*bpt_reg_info)(struct gk20a *g, |
189 | struct warpstate *w_state); | 191 | struct warpstate *w_state); |
190 | void (*get_access_map)(struct gk20a *g, | 192 | void (*get_access_map)(struct gk20a *g, |