diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-10-23 11:45:13 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-26 17:35:38 -0400 |
commit | 938785f1525ce0ae654c2be0911e15816617995d (patch) | |
tree | 1ff544563a99c531794621f14311c23668b73e64 /drivers/gpu/nvgpu/gv11b/gv11b.c | |
parent | 33c707d60b116845c953b91c2693a82a4d1eb968 (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/gv11b/gv11b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gv11b.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gv11b.c b/drivers/gpu/nvgpu/gv11b/gv11b.c index c8691ad5..211755e5 100644 --- a/drivers/gpu/nvgpu/gv11b/gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/gv11b.c | |||
@@ -22,6 +22,9 @@ | |||
22 | * DEALINGS IN THE SOFTWARE. | 22 | * DEALINGS IN THE SOFTWARE. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <nvgpu/enabled.h> | ||
26 | #include <nvgpu/enabled_t19x.h> | ||
27 | |||
25 | #include "gk20a/gk20a.h" | 28 | #include "gk20a/gk20a.h" |
26 | 29 | ||
27 | #include "gv11b/gv11b.h" | 30 | #include "gv11b/gv11b.h" |
@@ -29,8 +32,7 @@ | |||
29 | int gv11b_init_gpu_characteristics(struct gk20a *g) | 32 | int gv11b_init_gpu_characteristics(struct gk20a *g) |
30 | { | 33 | { |
31 | gk20a_init_gpu_characteristics(g); | 34 | gk20a_init_gpu_characteristics(g); |
32 | g->gpu_characteristics.flags |= | 35 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_TSG_SUBCONTEXTS, true); |
33 | NVGPU_GPU_FLAGS_SUPPORT_TSG_SUBCONTEXTS | | 36 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_IO_COHERENCE, true); |
34 | NVGPU_GPU_FLAGS_SUPPORT_IO_COHERENCE; | ||
35 | return 0; | 37 | return 0; |
36 | } | 38 | } |