diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index f6857b66..70abef78 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -8088,13 +8088,11 @@ void gk20a_gr_suspend_all_sms(struct gk20a *g, | |||
8088 | } | 8088 | } |
8089 | } | 8089 | } |
8090 | 8090 | ||
8091 | void gk20a_resume_single_sm(struct gk20a *g, | 8091 | void gk20a_gr_resume_single_sm(struct gk20a *g, |
8092 | u32 gpc, u32 tpc) | 8092 | u32 gpc, u32 tpc, u32 sm) |
8093 | { | 8093 | { |
8094 | u32 dbgr_control0; | 8094 | u32 dbgr_control0; |
8095 | u32 offset; | 8095 | u32 offset; |
8096 | u32 gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_GPC_STRIDE); | ||
8097 | u32 tpc_in_gpc_stride = nvgpu_get_litter_value(g, GPU_LIT_TPC_IN_GPC_STRIDE); | ||
8098 | /* | 8096 | /* |
8099 | * The following requires some clarification. Despite the fact that both | 8097 | * The following requires some clarification. Despite the fact that both |
8100 | * RUN_TRIGGER and STOP_TRIGGER have the word "TRIGGER" in their | 8098 | * RUN_TRIGGER and STOP_TRIGGER have the word "TRIGGER" in their |
@@ -8108,7 +8106,7 @@ void gk20a_resume_single_sm(struct gk20a *g, | |||
8108 | * effect, before enabling the run trigger. | 8106 | * effect, before enabling the run trigger. |
8109 | */ | 8107 | */ |
8110 | 8108 | ||
8111 | offset = gpc_stride * gpc + tpc_in_gpc_stride * tpc; | 8109 | offset = gk20a_gr_gpc_offset(g, gpc) + gk20a_gr_tpc_offset(g, tpc); |
8112 | 8110 | ||
8113 | /*De-assert stop trigger */ | 8111 | /*De-assert stop trigger */ |
8114 | dbgr_control0 = | 8112 | dbgr_control0 = |