summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_fifo_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_fifo_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_fifo_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gv11b/vgpu_fifo_gv11b.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_fifo_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_fifo_gv11b.c
index ff13b11f..048a4c64 100644
--- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_fifo_gv11b.c
+++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_fifo_gv11b.c
@@ -21,14 +21,10 @@
21 */ 21 */
22 22
23#include <gk20a/gk20a.h> 23#include <gk20a/gk20a.h>
24#include <vgpu/gp10b/vgpu_fifo_gp10b.h>
25 24
26#include "vgpu/vgpu.h" 25#include "vgpu/vgpu.h"
27 26
28#include "vgpu_fifo_gv11b.h" 27int vgpu_gv11b_init_fifo_setup_hw(struct gk20a *g)
29#include "vgpu_subctx_gv11b.h"
30
31static int vgpu_gv11b_init_fifo_setup_hw(struct gk20a *g)
32{ 28{
33 struct fifo_gk20a *f = &g->fifo; 29 struct fifo_gk20a *f = &g->fifo;
34 int err; 30 int err;
@@ -43,13 +39,3 @@ static int vgpu_gv11b_init_fifo_setup_hw(struct gk20a *g)
43 39
44 return 0; 40 return 0;
45} 41}
46
47void vgpu_gv11b_init_fifo_ops(struct gpu_ops *gops)
48{
49 vgpu_gp10b_init_fifo_ops(gops);
50
51 gops->fifo.init_fifo_setup_hw = vgpu_gv11b_init_fifo_setup_hw;
52 gops->fifo.free_channel_ctx_header = vgpu_gv11b_free_subctx_header;
53 /* TODO: implement it for CE fault */
54 gops->fifo.tsg_verify_status_faulted = NULL;
55}