diff options
author | Seema Khowala <seemaj@nvidia.com> | 2017-06-22 14:53:04 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-07-06 15:04:43 -0400 |
commit | 0852c9f1aba1654e380ccdd13cd0540fbb5a8ab0 (patch) | |
tree | 7f5a797567b0c76f89b8e8241f794b432129d8bc /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 4728761b6cd002404b9ccd8b318cc9f772962efb (diff) |
gpu: nvgpu: add sm lock_down gr ops
Add lock_down_sm and wait_for_sm_lock_down gr ops
Required to support multiple SM and t19x SM register
address changes
JIRA GPUT19X-75
Change-Id: I529babde51d9b2143fe3740a4f67c582b7eb404b
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master/r/1514042
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index a0a67332..483cdd6e 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -296,6 +296,10 @@ struct gpu_ops { | |||
296 | u32 (*get_sm_hww_global_esr)(struct gk20a *g, | 296 | u32 (*get_sm_hww_global_esr)(struct gk20a *g, |
297 | u32 gpc, u32 tpc, u32 sm); | 297 | u32 gpc, u32 tpc, u32 sm); |
298 | u32 (*get_sm_no_lock_down_hww_global_esr_mask)(struct gk20a *g); | 298 | u32 (*get_sm_no_lock_down_hww_global_esr_mask)(struct gk20a *g); |
299 | int (*lock_down_sm)(struct gk20a *g, u32 gpc, u32 tpc, u32 sm, | ||
300 | u32 global_esr_mask, bool check_errors); | ||
301 | int (*wait_for_sm_lock_down)(struct gk20a *g, u32 gpc, u32 tpc, | ||
302 | u32 sm, u32 global_esr_mask, bool check_errors); | ||
299 | void (*get_esr_sm_sel)(struct gk20a *g, u32 gpc, u32 tpc, | 303 | void (*get_esr_sm_sel)(struct gk20a *g, u32 gpc, u32 tpc, |
300 | u32 *esr_sm_sel); | 304 | u32 *esr_sm_sel); |
301 | int (*handle_sm_exception)(struct gk20a *g, | 305 | int (*handle_sm_exception)(struct gk20a *g, |