diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2018-11-22 23:00:17 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-02-11 11:18:33 -0500 |
commit | 5b8ecbc51fe2e94a233c2c42d497b05c2eccdaf5 (patch) | |
tree | bce75e5e83f4370d763478587acca0faba786cbd /drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |
parent | 7e8ba851a826f398fb722b9ff26d6fd40f3226ce (diff) |
gpu: nvgpu: replace tsgid input variable with pointer to a struct tsg_gk20a
replace tsgid with a pointer to a struct tsg_gk20a in the function
gk20a_fifo_tsg_abort(). gk20a_fifo_tsg_abort needs to enumerate through
all the channels within the tsg as well as pass the tsg pointer to
other functions, qualifying the need to use a pointer instead as an
input parameter.
Jira NVGPU-1461
Change-Id: I59cec05d5d778f733d0c3e9ffadf46e74e249080
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1956567
(cherry picked from commit e5bebd880f28fe719c5e01e165fb189e7cafee01
in dev-kernel)
Reviewed-on: https://git-master.nvidia.com/r/2013724
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h index 2b646a7b..f3c1b362 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.h | |||
@@ -287,7 +287,7 @@ u32 gk20a_fifo_get_failing_engine_data(struct gk20a *g, | |||
287 | int *__id, bool *__is_tsg); | 287 | int *__id, bool *__is_tsg); |
288 | void gk20a_fifo_set_ctx_mmu_error_tsg(struct gk20a *g, | 288 | void gk20a_fifo_set_ctx_mmu_error_tsg(struct gk20a *g, |
289 | struct tsg_gk20a *tsg); | 289 | struct tsg_gk20a *tsg); |
290 | void gk20a_fifo_abort_tsg(struct gk20a *g, u32 tsgid, bool preempt); | 290 | void gk20a_fifo_abort_tsg(struct gk20a *g, struct tsg_gk20a *tsg, bool preempt); |
291 | void gk20a_fifo_set_ctx_mmu_error_ch(struct gk20a *g, | 291 | void gk20a_fifo_set_ctx_mmu_error_ch(struct gk20a *g, |
292 | struct channel_gk20a *refch); | 292 | struct channel_gk20a *refch); |
293 | bool gk20a_fifo_error_tsg(struct gk20a *g, struct tsg_gk20a *tsg); | 293 | bool gk20a_fifo_error_tsg(struct gk20a *g, struct tsg_gk20a *tsg); |