summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_gr_gv11b.c
diff options
context:
space:
mode:
authorPeter Daifuku <pdaifuku@nvidia.com>2017-10-06 18:38:11 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-13 18:20:19 -0400
commit4b8dc71de5696679f13f8863bc5775a23e786b34 (patch)
treed81dfac48102afc7a5067213f264b4d016bd3aaa /drivers/gpu/nvgpu/vgpu/gv11b/vgpu_gr_gv11b.c
parent7612e412151c676c4e7af08839bd98d879a25dea (diff)
gpu: nvgpu: vgpu: flatten out t19x vgpu hal
Instead of calling the native HAL init function then adding multiple layers of modification for VGPU, flatten out the sequence so that all entry points are set statically and visible in a single file. JIRA ESRM-30 Change-Id: I8d277aaccb0e63b2d504e7aba32eb31ef82f4ec0 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1574619 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Richard Zhao <rizhao@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/gv11b/vgpu_gr_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gv11b/vgpu_gr_gv11b.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_gr_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_gr_gv11b.c
index a3d1cd90..89952221 100644
--- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_gr_gv11b.c
+++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_gr_gv11b.c
@@ -22,12 +22,10 @@
22 22
23#include <gk20a/gk20a.h> 23#include <gk20a/gk20a.h>
24#include <vgpu/gr_vgpu.h> 24#include <vgpu/gr_vgpu.h>
25#include <vgpu/gp10b/vgpu_gr_gp10b.h>
26 25
27#include "vgpu_gr_gv11b.h"
28#include "vgpu_subctx_gv11b.h" 26#include "vgpu_subctx_gv11b.h"
29 27
30static int vgpu_gr_gv11b_commit_inst(struct channel_gk20a *c, u64 gpu_va) 28int vgpu_gr_gv11b_commit_inst(struct channel_gk20a *c, u64 gpu_va)
31{ 29{
32 int err; 30 int err;
33 31
@@ -41,9 +39,3 @@ static int vgpu_gr_gv11b_commit_inst(struct channel_gk20a *c, u64 gpu_va)
41 39
42 return err; 40 return err;
43} 41}
44
45void vgpu_gv11b_init_gr_ops(struct gpu_ops *gops)
46{
47 vgpu_gp10b_init_gr_ops(gops);
48 gops->gr.commit_inst = vgpu_gr_gv11b_commit_inst;
49}