summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-06-22 15:58:43 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-30 21:34:58 -0400
commit82c0c96290602b1baf296133c7f55ae1848e433a (patch)
tree1f32dc8571ce777c50984be1194c68ddeea73b38 /drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
parent3ffcadc8dd6152d4ce2677b4e5d8e043a3df58ac (diff)
gpu: nvgpu: Remove gk20a support
Remove gk20a support. Leave only gk20a code which is reused by other GPUs. JIRA NVGPU-38 Change-Id: I3d5f2bc9f71cd9f161e64436561a5eadd5786a3b Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master/r/1507927 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
index b0a90fc8..eff45cb0 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_ctx_gk20a.c
@@ -66,50 +66,6 @@ static int gr_gk20a_alloc_load_netlist_aiv(struct gk20a *g, u32 *src, u32 len,
66 return 0; 66 return 0;
67} 67}
68 68
69static int gr_gk20a_get_netlist_name(struct gk20a *g, int index, char *name)
70{
71 switch (index) {
72#ifdef GK20A_NETLIST_IMAGE_FW_NAME
73 case NETLIST_FINAL:
74 sprintf(name, GK20A_NETLIST_IMAGE_FW_NAME);
75 return 0;
76#endif
77#ifdef GK20A_NETLIST_IMAGE_A
78 case NETLIST_SLOT_A:
79 sprintf(name, GK20A_NETLIST_IMAGE_A);
80 return 0;
81#endif
82#ifdef GK20A_NETLIST_IMAGE_B
83 case NETLIST_SLOT_B:
84 sprintf(name, GK20A_NETLIST_IMAGE_B);
85 return 0;
86#endif
87#ifdef GK20A_NETLIST_IMAGE_C
88 case NETLIST_SLOT_C:
89 sprintf(name, GK20A_NETLIST_IMAGE_C);
90 return 0;
91#endif
92#ifdef GK20A_NETLIST_IMAGE_D
93 case NETLIST_SLOT_D:
94 sprintf(name, GK20A_NETLIST_IMAGE_D);
95 return 0;
96#endif
97 default:
98 return -1;
99 }
100
101 return -1;
102}
103
104static bool gr_gk20a_is_firmware_defined(void)
105{
106#ifdef GK20A_NETLIST_IMAGE_FW_NAME
107 return true;
108#else
109 return false;
110#endif
111}
112
113static int gr_gk20a_init_ctx_vars_fw(struct gk20a *g, struct gr_gk20a *gr) 69static int gr_gk20a_init_ctx_vars_fw(struct gk20a *g, struct gr_gk20a *gr)
114{ 70{
115 struct nvgpu_firmware *netlist_fw; 71 struct nvgpu_firmware *netlist_fw;
@@ -448,10 +404,3 @@ int gr_gk20a_init_ctx_vars(struct gk20a *g, struct gr_gk20a *gr)
448 else 404 else
449 return gr_gk20a_init_ctx_vars_fw(g, gr); 405 return gr_gk20a_init_ctx_vars_fw(g, gr);
450} 406}
451
452void gk20a_init_gr_ctx(struct gpu_ops *gops)
453{
454 gops->gr_ctx.get_netlist_name = gr_gk20a_get_netlist_name;
455 gops->gr_ctx.is_fw_defined = gr_gk20a_is_firmware_defined;
456 gops->gr_ctx.use_dma_for_fw_bootstrap = true;
457}