diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-03-19 20:03:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-29 21:54:29 -0400 |
commit | 8d8ff9d34e9707e9306fcf40b5ffcfa0d826765a (patch) | |
tree | 45e22d523fbfd8503de2b6684c97c538b417bfb4 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |
parent | d436ad67b60eef68c7d5551b539490f8efb24387 (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/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index cf63546b..e06d190e 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -5154,14 +5154,14 @@ void gk20a_gr_set_error_notifier(struct gk20a *g, | |||
5154 | nvgpu_list_for_each_entry(ch_tsg, &tsg->ch_list, | 5154 | nvgpu_list_for_each_entry(ch_tsg, &tsg->ch_list, |
5155 | channel_gk20a, ch_entry) { | 5155 | channel_gk20a, ch_entry) { |
5156 | if (gk20a_channel_get(ch_tsg)) { | 5156 | if (gk20a_channel_get(ch_tsg)) { |
5157 | nvgpu_set_error_notifier(ch_tsg, | 5157 | g->ops.fifo.set_error_notifier(ch_tsg, |
5158 | error_notifier); | 5158 | error_notifier); |
5159 | gk20a_channel_put(ch_tsg); | 5159 | gk20a_channel_put(ch_tsg); |
5160 | } | 5160 | } |
5161 | } | 5161 | } |
5162 | nvgpu_rwsem_up_read(&tsg->ch_list_lock); | 5162 | nvgpu_rwsem_up_read(&tsg->ch_list_lock); |
5163 | } else { | 5163 | } else { |
5164 | nvgpu_set_error_notifier(ch, error_notifier); | 5164 | g->ops.fifo.set_error_notifier(ch, error_notifier); |
5165 | } | 5165 | } |
5166 | } | 5166 | } |
5167 | } | 5167 | } |