summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSagar Kamble <skamble@nvidia.com>2021-05-04 03:28:34 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2021-05-04 17:41:07 -0400
commit5f88598b9e7b2cfe0387733577ece138a7bc912b (patch)
tree16e483a4784201332a836593c10668448312f34a /drivers
parentbb8bf1c76c7abaa4e249944d9cb290d472657e7c (diff)
gpu: nvgpu: use deferred_fault_engines for resetting engines during unbind
Engine reset is skipped if channel is disassociated from the tsg. During unbind, tsg is disassociated before calling deferred engine reset. Hence any deferred resets don't work actually. Engines to be reset is already set in the variable deferred_fault_engines. Use it. Bug 200711183 Change-Id: I0c2bdcad1770e0ccd001c208a9ac0cf499a374e1 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2521974 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> (cherry picked from commit 668bd75c1ac84d18f0aa0d0b22145d24405fdc8e) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2524252 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/fifo_gk20a.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
index 049b8da2..aed130e4 100644
--- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c
@@ -1602,6 +1602,7 @@ int gk20a_fifo_deferred_reset(struct gk20a *g, struct channel_gk20a *ch)
1602 engines = gk20a_fifo_engines_on_id(g, tsg->tsgid, true); 1602 engines = gk20a_fifo_engines_on_id(g, tsg->tsgid, true);
1603 } else { 1603 } else {
1604 nvgpu_err(g, "chid: %d is not bound to tsg", ch->chid); 1604 nvgpu_err(g, "chid: %d is not bound to tsg", ch->chid);
1605 engines = g->fifo.deferred_fault_engines;
1605 } 1606 }
1606 1607
1607 if (engines == 0U) { 1608 if (engines == 0U) {