diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2017-11-28 05:26:31 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-11-28 12:10:10 -0500 |
commit | 87f42744e0821d54eff7bf0bb863c7e53063e5c1 (patch) | |
tree | dc63ad1843181b11580668708e9493ef06838be9 /drivers/gpu/nvgpu/gk20a | |
parent | 4f8ba3ad0e2bdca3695bf1028cedd58eb87d6d51 (diff) |
gpu: nvgpu: initialize gr->max_comptag_mem in linux
We initialize gr->max_comptag_mem in common code and with a global variable
declared in <linux/mm.h>
Move this linux specific dependency to linux specific files i.e.
initialize gr->max_comptag_mem during linux specific probe functions
Jira NVGPU-414
Change-Id: I9415938bf1288b24950ba7ecc71abee3162dae64
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1606195
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index b3969b60..8a6db92c 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -4820,9 +4820,6 @@ static int gk20a_init_gr_setup_sw(struct gk20a *g) | |||
4820 | if (err) | 4820 | if (err) |
4821 | goto clean_up; | 4821 | goto clean_up; |
4822 | 4822 | ||
4823 | gk20a_dbg_info("total ram pages : %lu", totalram_pages); | ||
4824 | gr->max_comptag_mem = totalram_pages | ||
4825 | >> (10 - (PAGE_SHIFT - 10)); | ||
4826 | err = g->ops.ltc.init_comptags(g, gr); | 4823 | err = g->ops.ltc.init_comptags(g, gr); |
4827 | if (err) | 4824 | if (err) |
4828 | goto clean_up; | 4825 | goto clean_up; |