diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c b/drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c new file mode 100644 index 00000000..2e605cce --- /dev/null +++ b/drivers/gpu/nvgpu/gv100/gr_ctx_gv100.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* | ||
2 | * GV100 Graphics Context | ||
3 | * | ||
4 | * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. | ||
5 | * | ||
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, | ||
8 | * version 2, as published by the Free Software Foundation. | ||
9 | * | ||
10 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
13 | * more details. | ||
14 | */ | ||
15 | |||
16 | #include "gk20a/gk20a.h" | ||
17 | #include "gr_ctx_gv100.h" | ||
18 | |||
19 | int gr_gv100_get_netlist_name(struct gk20a *g, int index, char *name) | ||
20 | { | ||
21 | u32 ver = g->gpu_characteristics.arch + g->gpu_characteristics.impl; | ||
22 | |||
23 | switch (ver) { | ||
24 | case NVGPU_GPUID_GV100: | ||
25 | sprintf(name, "%s/%s", "gv100", | ||
26 | GV100_NETLIST_IMAGE_FW_NAME); | ||
27 | break; | ||
28 | default: | ||
29 | nvgpu_err(g, "no support for GPUID %x", ver); | ||
30 | } | ||
31 | |||
32 | return 0; | ||
33 | } | ||
34 | |||
35 | bool gr_gv100_is_firmware_defined(void) | ||
36 | { | ||
37 | return true; | ||
38 | } | ||