diff options
author | Debarshi Dutta <ddutta@nvidia.com> | 2018-11-29 04:41:15 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2019-02-11 11:18:40 -0500 |
commit | d9efcd587162b50582eb2b2bbaad2b8bc0180446 (patch) | |
tree | 00eda6e411bcecb1795e5264e6ef5500adc336ec /drivers/gpu/nvgpu/gv11b | |
parent | ef9de9e9925573b691d78760e42334ad24c5797f (diff) |
gpu: nvgpu: replace input parameter tsgid with pointer to struct tsg_gk20a
The function gk20a_fifo_recover_tsg has to pass a valid struct tsg to
other functions from within. This qualifies it to have a pointer to
struct tsg_gk20a as an input parameter.
Tsg specific parts of the gk20a_fifo_preempt_timeout_rc are now moved
into another function gk20a_fifo_preempt_timeout_rc_tsg
that takes a tsg as an input and passes it to gk20a_fifo_recover_tsg.
The pointer to a tsg is also used to enumerate channels from within.
The function gk20a_fifo_preempt_timeout_rc now contains only channel
specific code.
Jira NVGPU-1461
Change-Id: Ice0a9921567841fb5586a7e4e010c442ca6cf172
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1961675
(cherry picked from commit e19cea7ab3ef688186222dec940c2396536408ce
in dev-kernel)
Reviewed-on: https://git-master.nvidia.com/r/2013726
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/gv11b')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index 11ccdd48..fb9c7712 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c | |||
@@ -882,7 +882,7 @@ int gv11b_fifo_preempt_tsg(struct gk20a *g, struct tsg_gk20a *tsg) | |||
882 | nvgpu_err(g, "preempt timed out for tsgid: %u, " | 882 | nvgpu_err(g, "preempt timed out for tsgid: %u, " |
883 | "ctxsw timeout will trigger recovery if needed", tsg->tsgid); | 883 | "ctxsw timeout will trigger recovery if needed", tsg->tsgid); |
884 | } else { | 884 | } else { |
885 | gk20a_fifo_preempt_timeout_rc(g, tsg->tsgid, true); | 885 | gk20a_fifo_preempt_timeout_rc_tsg(g, tsg); |
886 | } | 886 | } |
887 | } | 887 | } |
888 | 888 | ||