diff options
author | Alex Waterman <alexw@nvidia.com> | 2017-05-09 19:41:18 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-06 20:09:11 -0400 |
commit | c2b63150cd947557b8d17637258b988459b8e0ec (patch) | |
tree | 5b15911b0b4799538ca98c9b6c1a31c0cbfe4a99 /drivers/gpu/nvgpu/gk20a/gk20a.h | |
parent | 6bd7d22c0f248d0d29ea44b06798b247d0d2753a (diff) |
gpu: nvgpu: Unify vm_init for vGPU and regular GPU
Unify the initialization routines for the vGPU and regular GPU paths.
This helps avoid any further code divergence. This also assumes that
the code running on the regular GPU essentially works for the vGPU.
The only addition is that the regular GPU path calls an API in the
vGPU code that sends the necessary RM server message.
JIRA NVGPU-12
JIRA NVGPU-30
Change-Id: I37af1993fd8b50f666ae27524d382cce49cf28f7
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1480226
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h index 4fc626e8..a02215d2 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gk20a.h | |||
@@ -672,8 +672,6 @@ struct gpu_ops { | |||
672 | int rw_flag, | 672 | int rw_flag, |
673 | bool sparse, | 673 | bool sparse, |
674 | struct vm_gk20a_mapping_batch *batch); | 674 | struct vm_gk20a_mapping_batch *batch); |
675 | int (*vm_alloc_share)(struct gk20a_as_share *as_share, | ||
676 | u32 big_page_size, u32 flags); | ||
677 | int (*vm_bind_channel)(struct gk20a_as_share *as_share, | 675 | int (*vm_bind_channel)(struct gk20a_as_share *as_share, |
678 | struct channel_gk20a *ch); | 676 | struct channel_gk20a *ch); |
679 | int (*fb_flush)(struct gk20a *g); | 677 | int (*fb_flush)(struct gk20a *g); |