diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-03-16 14:11:27 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-29 21:54:02 -0400 |
commit | c5f03db98a20eb4e8b83fd350d293aab6986beff (patch) | |
tree | 2f6d53b0bfac835f8fc24ebf3181cf709f394829 /drivers/gpu/nvgpu/vgpu | |
parent | 5c27ac91fdde693c6f57100dc7fc6be75cc6982a (diff) |
gpu: nvgpu: add gops.fifo.ch_abort_clean_up
Channel abort clean up is only needed by native and vgpu driver but not
RM server. RM server expects guest will clean up itself. RM server
should not set the callback.
Jira VQRM-3058
Change-Id: I11b49b6f2d51c871e31de16955d487dca82609cb
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1679705
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index 7156a29d..819ca852 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c | |||
@@ -344,6 +344,7 @@ static const struct gpu_ops vgpu_gp10b_ops = { | |||
344 | .tsg_bind_channel = vgpu_tsg_bind_channel, | 344 | .tsg_bind_channel = vgpu_tsg_bind_channel, |
345 | .tsg_unbind_channel = vgpu_tsg_unbind_channel, | 345 | .tsg_unbind_channel = vgpu_tsg_unbind_channel, |
346 | .post_event_id = gk20a_tsg_event_id_post_event, | 346 | .post_event_id = gk20a_tsg_event_id_post_event, |
347 | .ch_abort_clean_up = gk20a_channel_abort_clean_up, | ||
347 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | 348 | #ifdef CONFIG_TEGRA_GK20A_NVHOST |
348 | .alloc_syncpt_buf = gk20a_fifo_alloc_syncpt_buf, | 349 | .alloc_syncpt_buf = gk20a_fifo_alloc_syncpt_buf, |
349 | .free_syncpt_buf = gk20a_fifo_free_syncpt_buf, | 350 | .free_syncpt_buf = gk20a_fifo_free_syncpt_buf, |
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c index 2c81607d..92d401e9 100644 --- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c +++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | |||
@@ -387,6 +387,7 @@ static const struct gpu_ops vgpu_gv11b_ops = { | |||
387 | .tsg_bind_channel = vgpu_gv11b_tsg_bind_channel, | 387 | .tsg_bind_channel = vgpu_gv11b_tsg_bind_channel, |
388 | .tsg_unbind_channel = vgpu_tsg_unbind_channel, | 388 | .tsg_unbind_channel = vgpu_tsg_unbind_channel, |
389 | .post_event_id = gk20a_tsg_event_id_post_event, | 389 | .post_event_id = gk20a_tsg_event_id_post_event, |
390 | .ch_abort_clean_up = gk20a_channel_abort_clean_up, | ||
390 | #ifdef CONFIG_TEGRA_GK20A_NVHOST | 391 | #ifdef CONFIG_TEGRA_GK20A_NVHOST |
391 | .alloc_syncpt_buf = vgpu_gv11b_fifo_alloc_syncpt_buf, | 392 | .alloc_syncpt_buf = vgpu_gv11b_fifo_alloc_syncpt_buf, |
392 | .free_syncpt_buf = gv11b_fifo_free_syncpt_buf, | 393 | .free_syncpt_buf = gv11b_fifo_free_syncpt_buf, |