diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2018-07-10 08:34:41 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-06 19:12:28 -0400 |
commit | 59cf5e66f78a6e4ac95d05069672a3cebcebd599 (patch) | |
tree | e044cc3ef8780b10dc0dd9484d49bba38984cc7d /drivers/gpu/nvgpu/common/ltc | |
parent | c3e18d9474f2bbbbd941c1941f86ad0df2ae3cf4 (diff) |
gpu: nvgpu: add compbit backing size to gr_gk20a
Add compbit_backing_size variable to struct gr_gk20a to hold
compbit backing size
And copy this value in respective init_comptags() HAL
Bug 2180284
Jira NVGPUT-12
Change-Id: I3c1bea3a6b7ed39a1e901357e6e062dbf45b747b
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1776028
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/common/ltc')
-rw-r--r-- | drivers/gpu/nvgpu/common/ltc/ltc_gm20b.c | 1 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/common/ltc/ltc_gp10b.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/ltc/ltc_gm20b.c b/drivers/gpu/nvgpu/common/ltc/ltc_gm20b.c index 205b712d..eb321776 100644 --- a/drivers/gpu/nvgpu/common/ltc/ltc_gm20b.c +++ b/drivers/gpu/nvgpu/common/ltc/ltc_gm20b.c | |||
@@ -105,6 +105,7 @@ int gm20b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
105 | 105 | ||
106 | gr->max_comptag_lines = max_comptag_lines; | 106 | gr->max_comptag_lines = max_comptag_lines; |
107 | gr->comptags_per_cacheline = comptags_per_cacheline; | 107 | gr->comptags_per_cacheline = comptags_per_cacheline; |
108 | gr->compbit_backing_size = compbit_backing_size; | ||
108 | 109 | ||
109 | return 0; | 110 | return 0; |
110 | } | 111 | } |
diff --git a/drivers/gpu/nvgpu/common/ltc/ltc_gp10b.c b/drivers/gpu/nvgpu/common/ltc/ltc_gp10b.c index f4edbdb2..9aabf543 100644 --- a/drivers/gpu/nvgpu/common/ltc/ltc_gp10b.c +++ b/drivers/gpu/nvgpu/common/ltc/ltc_gp10b.c | |||
@@ -130,6 +130,7 @@ int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr) | |||
130 | gr->max_comptag_lines = max_comptag_lines; | 130 | gr->max_comptag_lines = max_comptag_lines; |
131 | gr->comptags_per_cacheline = comptags_per_cacheline; | 131 | gr->comptags_per_cacheline = comptags_per_cacheline; |
132 | gr->gobs_per_comptagline_per_slice = gobs_per_comptagline_per_slice; | 132 | gr->gobs_per_comptagline_per_slice = gobs_per_comptagline_per_slice; |
133 | gr->compbit_backing_size = compbit_backing_size; | ||
133 | 134 | ||
134 | return 0; | 135 | return 0; |
135 | } | 136 | } |