summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/gr_ctx_gp106.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/gr_ctx_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/gr_ctx_gp106.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/gp106/gr_ctx_gp106.c b/drivers/gpu/nvgpu/gp106/gr_ctx_gp106.c
index 3a49cc60..706ff7e0 100644
--- a/drivers/gpu/nvgpu/gp106/gr_ctx_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/gr_ctx_gp106.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GP106 Graphics Context 2 * GP106 Graphics Context
3 * 3 *
4 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -16,7 +16,7 @@
16#include "gk20a/gk20a.h" 16#include "gk20a/gk20a.h"
17#include "gr_ctx_gp106.h" 17#include "gr_ctx_gp106.h"
18 18
19static int gr_gp106_get_netlist_name(struct gk20a *g, int index, char *name) 19int gr_gp106_get_netlist_name(struct gk20a *g, int index, char *name)
20{ 20{
21 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; 21 u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl;
22 22
@@ -36,14 +36,7 @@ static int gr_gp106_get_netlist_name(struct gk20a *g, int index, char *name)
36 return 0; 36 return 0;
37} 37}
38 38
39static bool gr_gp106_is_firmware_defined(void) 39bool gr_gp106_is_firmware_defined(void)
40{ 40{
41 return true; 41 return true;
42} 42}
43
44void gp106_init_gr_ctx(struct gpu_ops *gops)
45{
46 gops->gr_ctx.get_netlist_name = gr_gp106_get_netlist_name;
47 gops->gr_ctx.is_fw_defined = gr_gp106_is_firmware_defined;
48 gops->gr_ctx.use_dma_for_fw_bootstrap = false;
49}