summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2018-03-19 20:03:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-29 21:54:29 -0400
commit8d8ff9d34e9707e9306fcf40b5ffcfa0d826765a (patch)
tree45e22d523fbfd8503de2b6684c97c538b417bfb4 /drivers/gpu/nvgpu/vgpu/gr_vgpu.c
parentd436ad67b60eef68c7d5551b539490f8efb24387 (diff)
gpu: nvgpu: add gops.fifo.set_error_notifier
RM Server overrides it for handling stall interrupts. Jira VQRM-3058 Change-Id: I8b14f073e952d19c808cb693958626b8d8aee8ca Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1679709 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gr_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gr_vgpu.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
index 1c72ca76..a6cb3828 100644
--- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
+++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.c
@@ -926,30 +926,30 @@ int vgpu_gr_isr(struct gk20a *g, struct tegra_vgpu_gr_intr_info *info)
926 nvgpu_cond_broadcast_interruptible(&ch->semaphore_wq); 926 nvgpu_cond_broadcast_interruptible(&ch->semaphore_wq);
927 break; 927 break;
928 case TEGRA_VGPU_GR_INTR_SEMAPHORE_TIMEOUT: 928 case TEGRA_VGPU_GR_INTR_SEMAPHORE_TIMEOUT:
929 nvgpu_set_error_notifier(ch, 929 g->ops.fifo.set_error_notifier(ch,
930 NVGPU_ERR_NOTIFIER_GR_SEMAPHORE_TIMEOUT); 930 NVGPU_ERR_NOTIFIER_GR_SEMAPHORE_TIMEOUT);
931 break; 931 break;
932 case TEGRA_VGPU_GR_INTR_ILLEGAL_NOTIFY: 932 case TEGRA_VGPU_GR_INTR_ILLEGAL_NOTIFY:
933 nvgpu_set_error_notifier(ch, 933 g->ops.fifo.set_error_notifier(ch,
934 NVGPU_ERR_NOTIFIER_GR_ILLEGAL_NOTIFY); 934 NVGPU_ERR_NOTIFIER_GR_ILLEGAL_NOTIFY);
935 case TEGRA_VGPU_GR_INTR_ILLEGAL_METHOD: 935 case TEGRA_VGPU_GR_INTR_ILLEGAL_METHOD:
936 break; 936 break;
937 case TEGRA_VGPU_GR_INTR_ILLEGAL_CLASS: 937 case TEGRA_VGPU_GR_INTR_ILLEGAL_CLASS:
938 nvgpu_set_error_notifier(ch, 938 g->ops.fifo.set_error_notifier(ch,
939 NVGPU_ERR_NOTIFIER_GR_ERROR_SW_NOTIFY); 939 NVGPU_ERR_NOTIFIER_GR_ERROR_SW_NOTIFY);
940 break; 940 break;
941 case TEGRA_VGPU_GR_INTR_FECS_ERROR: 941 case TEGRA_VGPU_GR_INTR_FECS_ERROR:
942 break; 942 break;
943 case TEGRA_VGPU_GR_INTR_CLASS_ERROR: 943 case TEGRA_VGPU_GR_INTR_CLASS_ERROR:
944 nvgpu_set_error_notifier(ch, 944 g->ops.fifo.set_error_notifier(ch,
945 NVGPU_ERR_NOTIFIER_GR_ERROR_SW_NOTIFY); 945 NVGPU_ERR_NOTIFIER_GR_ERROR_SW_NOTIFY);
946 break; 946 break;
947 case TEGRA_VGPU_GR_INTR_FIRMWARE_METHOD: 947 case TEGRA_VGPU_GR_INTR_FIRMWARE_METHOD:
948 nvgpu_set_error_notifier(ch, 948 g->ops.fifo.set_error_notifier(ch,
949 NVGPU_ERR_NOTIFIER_GR_ERROR_SW_NOTIFY); 949 NVGPU_ERR_NOTIFIER_GR_ERROR_SW_NOTIFY);
950 break; 950 break;
951 case TEGRA_VGPU_GR_INTR_EXCEPTION: 951 case TEGRA_VGPU_GR_INTR_EXCEPTION:
952 nvgpu_set_error_notifier(ch, 952 g->ops.fifo.set_error_notifier(ch,
953 NVGPU_ERR_NOTIFIER_GR_ERROR_SW_NOTIFY); 953 NVGPU_ERR_NOTIFIER_GR_ERROR_SW_NOTIFY);
954 break; 954 break;
955 case TEGRA_VGPU_GR_INTR_SM_EXCEPTION: 955 case TEGRA_VGPU_GR_INTR_SM_EXCEPTION: