summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gv100
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2017-10-23 11:45:13 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-26 17:35:38 -0400
commit938785f1525ce0ae654c2be0911e15816617995d (patch)
tree1ff544563a99c531794621f14311c23668b73e64 /drivers/gpu/nvgpu/gv100
parent33c707d60b116845c953b91c2693a82a4d1eb968 (diff)
gpu: nvgpu: Linux specific GPU characteristics flags
Make GPU characteristics flags specific to Linux code only. The rest of driver is moved to using nvgpu_is_enabled() API. JIRA NVGPU-259 Change-Id: I46a5a90bb34f170e9e755e7683be142ed6b18cce Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1583992 GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/gv100')
-rw-r--r--drivers/gpu/nvgpu/gv100/hal_gv100.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gv100/hal_gv100.c b/drivers/gpu/nvgpu/gv100/hal_gv100.c
index e8be1a43..e51b4446 100644
--- a/drivers/gpu/nvgpu/gv100/hal_gv100.c
+++ b/drivers/gpu/nvgpu/gv100/hal_gv100.c
@@ -107,6 +107,7 @@
107#include <nvgpu/bus.h> 107#include <nvgpu/bus.h>
108#include <nvgpu/debug.h> 108#include <nvgpu/debug.h>
109#include <nvgpu/enabled.h> 109#include <nvgpu/enabled.h>
110#include <nvgpu/enabled_t19x.h>
110 111
111#include <nvgpu/hw/gv100/hw_proj_gv100.h> 112#include <nvgpu/hw/gv100/hw_proj_gv100.h>
112#include <nvgpu/hw/gv100/hw_fifo_gv100.h> 113#include <nvgpu/hw/gv100/hw_fifo_gv100.h>
@@ -221,16 +222,13 @@ static int gv100_get_litter_value(struct gk20a *g, int value)
221 222
222int gv100_init_gpu_characteristics(struct gk20a *g) 223int gv100_init_gpu_characteristics(struct gk20a *g)
223{ 224{
224 struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics;
225
226 int err; 225 int err;
227 226
228 err = gk20a_init_gpu_characteristics(g); 227 err = gk20a_init_gpu_characteristics(g);
229 if (err) 228 if (err)
230 return err; 229 return err;
231 230
232 gpu->flags |= 231 __nvgpu_set_enabled(g, NVGPU_SUPPORT_TSG_SUBCONTEXTS, true);
233 NVGPU_GPU_FLAGS_SUPPORT_TSG_SUBCONTEXTS;
234 232
235 return 0; 233 return 0;
236} 234}