diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2014-05-05 21:14:22 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:11:01 -0400 |
commit | 1fd722f592c2e0523c5e399a2406a4e387057188 (patch) | |
tree | 3425fb1a08ec2ccc6397e39c73a5579117e00a05 /drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | |
parent | 69e0cd3dfd8f39bc8d3529325001dcacd774f669 (diff) |
gpu: nvgpu: support gk20a virtualization
The nvgpu driver now supports using the Tegra graphics virtualization
interfaces to support gk20a in a virtualized environment.
Bug 1509608
Change-Id: I6ede15ee7bf0b0ad8a13e8eb5f557c3516ead676
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/440122
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/fifo_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c index 7e580136..86d049cf 100644 --- a/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/fifo_gm20b.c | |||
@@ -102,5 +102,14 @@ static void gm20b_fifo_trigger_mmu_fault(struct gk20a *g, | |||
102 | void gm20b_init_fifo(struct gpu_ops *gops) | 102 | void gm20b_init_fifo(struct gpu_ops *gops) |
103 | { | 103 | { |
104 | gops->fifo.bind_channel = channel_gm20b_bind; | 104 | gops->fifo.bind_channel = channel_gm20b_bind; |
105 | gops->fifo.unbind_channel = channel_gk20a_unbind; | ||
106 | gops->fifo.disable_channel = channel_gk20a_disable; | ||
107 | gops->fifo.alloc_inst = channel_gk20a_alloc_inst; | ||
108 | gops->fifo.free_inst = channel_gk20a_free_inst; | ||
109 | gops->fifo.setup_ramfc = channel_gk20a_setup_ramfc; | ||
110 | |||
111 | gops->fifo.preempt_channel = gk20a_fifo_preempt_channel; | ||
112 | gops->fifo.update_runlist = gk20a_fifo_update_runlist; | ||
105 | gops->fifo.trigger_mmu_fault = gm20b_fifo_trigger_mmu_fault; | 113 | gops->fifo.trigger_mmu_fault = gm20b_fifo_trigger_mmu_fault; |
114 | gops->fifo.wait_engine_idle = gk20a_fifo_wait_engine_idle; | ||
106 | } | 115 | } |