summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2018-04-13 17:44:31 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-04-25 12:36:11 -0400
commit687b1059f078daf41024b223065107bc16822e71 (patch)
tree7b65ca7462422ee1352f5937a13137d7245ba583 /drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
parent45527a973f47a9b324fb5c1f2b7c26730d5b27ac (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/gm20b/ltc_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/ltc_gm20b.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
index 0d9fd560..dcb65372 100644
--- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * GM20B L2 2 * GM20B L2
3 * 3 *
4 * Copyright (c) 2014-2017 NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2014-2018 NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a 6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"), 7 * copy of this software and associated documentation files (the "Software"),
@@ -100,6 +100,7 @@ int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
100 if (err) 100 if (err)
101 return err; 101 return err;
102 102
103 gr->max_comptag_lines = max_comptag_lines;
103 gr->comptags_per_cacheline = comptags_per_cacheline; 104 gr->comptags_per_cacheline = comptags_per_cacheline;
104 gr->slices_per_ltc = slices_per_ltc; 105 gr->slices_per_ltc = slices_per_ltc;
105 gr->cacheline_size = cacheline_size; 106 gr->cacheline_size = cacheline_size;