diff options
author | seshendra Gadagottu <sgadagottu@nvidia.com> | 2018-01-31 18:01:05 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-02-02 15:12:02 -0500 |
commit | 5cb742d228c6816e7fdd1220f4b4ee3378abf3dc (patch) | |
tree | 9499a43ae57f3bfc0c916bd5793cf5b25557b058 /drivers/gpu/nvgpu/common/linux | |
parent | 98da3f8eed914225e9ffe0f768d7647506e95cdc (diff) |
gpu: nvgpu: gv11b: add scg support info in gpu characteristics
Indicated support for Simultaneous Compute and Graphics(SCG)
in gpu characteristics for gv11b.
Bug 2053932
Change-Id: I788e22242083dff775dd4cc5b9aa73c938028536
Signed-off-by: seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1649805
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | 2 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_gv11b.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c index b751a337..398823f3 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_ctrl.c | |||
@@ -172,6 +172,8 @@ static struct nvgpu_flags_mapping flags_mapping[] = { | |||
172 | NVGPU_ECC_ENABLED_LTC}, | 172 | NVGPU_ECC_ENABLED_LTC}, |
173 | {NVGPU_GPU_FLAGS_SUPPORT_TSG_SUBCONTEXTS, | 173 | {NVGPU_GPU_FLAGS_SUPPORT_TSG_SUBCONTEXTS, |
174 | NVGPU_SUPPORT_TSG_SUBCONTEXTS}, | 174 | NVGPU_SUPPORT_TSG_SUBCONTEXTS}, |
175 | {NVGPU_GPU_FLAGS_SUPPORT_SCG, | ||
176 | NVGPU_SUPPORT_SCG}, | ||
175 | }; | 177 | }; |
176 | 178 | ||
177 | static u64 nvgpu_ctrl_ioctl_gpu_characteristics_flags(struct gk20a *g) | 179 | static u64 nvgpu_ctrl_ioctl_gpu_characteristics_flags(struct gk20a *g) |
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_gv11b.c b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_gv11b.c index 749e9e81..285268a6 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_gv11b.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gv11b/vgpu_gv11b.c | |||
@@ -35,6 +35,7 @@ int vgpu_gv11b_init_gpu_characteristics(struct gk20a *g) | |||
35 | 35 | ||
36 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_TSG_SUBCONTEXTS, true); | 36 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_TSG_SUBCONTEXTS, true); |
37 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_IO_COHERENCE, true); | 37 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_IO_COHERENCE, true); |
38 | __nvgpu_set_enabled(g, NVGPU_SUPPORT_SCG, true); | ||
38 | 39 | ||
39 | return 0; | 40 | return 0; |
40 | } | 41 | } |