summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2014-09-02 05:52:34 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:07 -0400
commitf2b3ba605be987ed9cbeed0af17a687f89903854 (patch)
treeba49ed70a6d52483663d6649ac65035ae663ed95 /drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
parent7f6bf042d8c7e3ffb97f4ff7ddb4b9b4b5b8a4b8 (diff)
gpu: nvgpu: Fix max comptag calculation
Fix order of calculation for max comptag line calculation. Bug 1549451 Change-Id: I13bf657f0f0b8aafa4d64dacacb74d7224fed379 Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/494657 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/ltc_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/gm20b/ltc_gm20b.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
index 0548105f..788cff6b 100644
--- a/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
+++ b/drivers/gpu/nvgpu/gm20b/ltc_gm20b.c
@@ -72,7 +72,7 @@ static int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
72 72
73 max_comptag_lines = 73 max_comptag_lines =
74 (compbit_backing_size * comptags_per_cacheline) / 74 (compbit_backing_size * comptags_per_cacheline) /
75 cacheline_size * slices_per_ltc * g->ltc_count; 75 (cacheline_size * slices_per_ltc * g->ltc_count);
76 76
77 if (max_comptag_lines > hw_max_comptag_lines) 77 if (max_comptag_lines > hw_max_comptag_lines)
78 max_comptag_lines = hw_max_comptag_lines; 78 max_comptag_lines = hw_max_comptag_lines;