diff options
author | Richard Zhao <rizhao@nvidia.com> | 2018-04-13 17:44:31 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-04-25 12:36:11 -0400 |
commit | 687b1059f078daf41024b223065107bc16822e71 (patch) | |
tree | 7b65ca7462422ee1352f5937a13137d7245ba583 /drivers/gpu/nvgpu/vgpu/ltc_vgpu.c | |
parent | 45527a973f47a9b324fb5c1f2b7c26730d5b27ac (diff) |
gpu: nvgpu: save max_comptag_lines in gr
max_comptag_lines will be used by RM server to calculate how many lines
each guest can get.
Jira VQRM-2345
Change-Id: If52208d79617f2f894e48d3a4daec186fda862f1
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1695082
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
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/vgpu/ltc_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/ltc_vgpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c b/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c index 7e86ba38..d451a1f2 100644 --- a/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/ltc_vgpu.c | |||
@@ -56,6 +56,8 @@ int vgpu_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
56 | if (err) | 56 | if (err) |
57 | return err; | 57 | return err; |
58 | 58 | ||
59 | gr->max_comptag_lines = max_comptag_lines; | ||
60 | |||
59 | return 0; | 61 | return 0; |
60 | } | 62 | } |
61 | 63 | ||