summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100/hal_gv100.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2017-09-14 08:48:07 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-09-15 15:48:22 -0400
commitf720b309f1ea87a301bcb216983396f3d9c55abc (patch)
tree7776523be5dadc1a1af918e1d3f4525beadba075 /drivers/gpu/nvgpu/gv100/hal_gv100.c
parent52f50addc6cedf57fc3d8ff06314921499fb59e3 (diff)
gpu: nvgpu: add tsg_verify_status_faulted operation
Add new API gv11b_fifo_tsg_verify_status_faulted() and use that as g->ops.fifo.tsg_verify_status_faulted operation for gv11b/gv100 This API will check if channel has ENG_FAULTED status set, if yes it will clear CE method buffer in case saved out channel is same as faulted channel We need to write 0 to method count to invalidate CE method buffer Also set g->ops.fifo.tsg_verify_status_ctx_reload operation for gv11b/gv100 Bug 200327095 Change-Id: I9d2b0f13faf881b30680219bbcadfd4969c4dff6 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1560643 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/hal_gv100.c')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index cc20fa43..9a2807a2 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -399,6 +399,8 @@ static const struct gpu_ops gv100_ops = {
399 .preempt_tsg = gv11b_fifo_preempt_tsg, 399 .preempt_tsg = gv11b_fifo_preempt_tsg,
400 .enable_tsg = gv11b_fifo_enable_tsg, 400 .enable_tsg = gv11b_fifo_enable_tsg,
401 .disable_tsg = gk20a_disable_tsg, 401 .disable_tsg = gk20a_disable_tsg,
402 .tsg_verify_status_ctx_reload = gm20b_fifo_tsg_verify_status_ctx_reload,
403 .tsg_verify_status_faulted = gv11b_fifo_tsg_verify_status_faulted,
402 .update_runlist = gk20a_fifo_update_runlist, 404 .update_runlist = gk20a_fifo_update_runlist,
403 .trigger_mmu_fault = NULL, 405 .trigger_mmu_fault = NULL,
404 .get_mmu_fault_info = NULL, 406 .get_mmu_fault_info = NULL,