diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_gk20a.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c index f7cafc52..45757884 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_gk20a.c | |||
@@ -2306,6 +2306,19 @@ long gk20a_channel_ioctl(struct file *filp, | |||
2306 | err = gk20a_fifo_preempt_channel(ch->g, ch->hw_chid); | 2306 | err = gk20a_fifo_preempt_channel(ch->g, ch->hw_chid); |
2307 | gk20a_idle(dev); | 2307 | gk20a_idle(dev); |
2308 | break; | 2308 | break; |
2309 | case NVHOST_IOCTL_CHANNEL_FORCE_RESET: | ||
2310 | err = gk20a_busy(dev); | ||
2311 | if (err) { | ||
2312 | dev_err(&dev->dev, | ||
2313 | "%s: failed to host gk20a for ioctl cmd: 0x%x", | ||
2314 | __func__, cmd); | ||
2315 | return err; | ||
2316 | } | ||
2317 | gk20a_set_error_notifier(ch, | ||
2318 | NVHOST_CHANNEL_RESETCHANNEL_VERIF_ERROR); | ||
2319 | gk20a_fifo_recover_ch(ch->g, ch->hw_chid, true); | ||
2320 | gk20a_idle(dev); | ||
2321 | break; | ||
2309 | default: | 2322 | default: |
2310 | dev_err(&dev->dev, "unrecognized ioctl cmd: 0x%x", cmd); | 2323 | dev_err(&dev->dev, "unrecognized ioctl cmd: 0x%x", cmd); |
2311 | err = -ENOTTY; | 2324 | err = -ENOTTY; |