diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-05-31 03:31:27 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:56:17 -0500 |
commit | 8a2be379cd25f2096ca63a50893688b8cf538691 (patch) | |
tree | 35d68700ae1a409a0b58535dcdfb92ad96b440a0 /drivers/gpu/nvgpu/gp106/hal_gp106.c | |
parent | 9454529abe0ac42d15df01e36898cd2c840de9c8 (diff) |
gpu: nvgpu: detect vidmem configuration from HW
Read video memory size from hardware during initialization for devices
that support it.
JIRA DNVGPU-14
Change-Id: I84e1bca0eaac8dc204e1fb82628acc6b52c3e5cc
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1157212
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index 1dd16139..7ef72d72 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -39,6 +39,7 @@ | |||
39 | #include "gm20b/pmu_gm20b.h" | 39 | #include "gm20b/pmu_gm20b.h" |
40 | #include "gm20b/clk_gm20b.h" | 40 | #include "gm20b/clk_gm20b.h" |
41 | 41 | ||
42 | #include "gp106/mm_gp106.h" | ||
42 | #include "gp106/pmu_gp106.h" | 43 | #include "gp106/pmu_gp106.h" |
43 | #include "gp106/gr_ctx_gp106.h" | 44 | #include "gp106/gr_ctx_gp106.h" |
44 | #include "gp106/gr_gp106.h" | 45 | #include "gp106/gr_gp106.h" |
@@ -194,7 +195,7 @@ int gp106_init_hal(struct gk20a *g) | |||
194 | gp10b_init_fifo(gops); | 195 | gp10b_init_fifo(gops); |
195 | gp10b_init_ce(gops); | 196 | gp10b_init_ce(gops); |
196 | gp106_init_gr_ctx(gops); | 197 | gp106_init_gr_ctx(gops); |
197 | gp10b_init_mm(gops); | 198 | gp106_init_mm(gops); |
198 | gp106_init_pmu_ops(gops); | 199 | gp106_init_pmu_ops(gops); |
199 | gk20a_init_debug_ops(gops); | 200 | gk20a_init_debug_ops(gops); |
200 | gp10b_init_regops(gops); | 201 | gp10b_init_regops(gops); |