diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c index bf95f1fd..d191d778 100644 --- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * GP10B L2 | 2 | * GP10B 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"), |
@@ -88,6 +88,10 @@ int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
88 | if (max_comptag_lines == 0) | 88 | if (max_comptag_lines == 0) |
89 | return 0; | 89 | return 0; |
90 | 90 | ||
91 | /* Already initialized */ | ||
92 | if (gr->cacheline_size) | ||
93 | return 0; | ||
94 | |||
91 | if (max_comptag_lines > hw_max_comptag_lines) | 95 | if (max_comptag_lines > hw_max_comptag_lines) |
92 | max_comptag_lines = hw_max_comptag_lines; | 96 | max_comptag_lines = hw_max_comptag_lines; |
93 | 97 | ||