diff options
author | David Nieto <dmartineznie@nvidia.com> | 2017-10-23 16:58:37 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-10-26 20:56:08 -0400 |
commit | 0f8746130ba79ec82a4b0675bbe00ab1ba17d3f8 (patch) | |
tree | 697a3965e29d4e55f053e3a8fd7bb94aac8aa844 /drivers/gpu/nvgpu/gp106/hal_gp106.c | |
parent | 00e52529a8431a6520b8e1bbcbfa44b4cc86be80 (diff) |
gpu: nvgpu: halify size of patch buffer
Allow per chip calculation of gr patch buffer size
and set default to match hw default of 512 data-address pair entries (4K)
bug 200350539
Change-Id: I6010c9e0304332825cb02612d3f10523ef27d128
Signed-off-by: David Nieto <dmartineznie@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1584033
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index c5b62948..f576278d 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -235,6 +235,7 @@ static const struct gpu_ops gp106_ops = { | |||
235 | .isr_nonstall = gp10b_ce_nonstall_isr, | 235 | .isr_nonstall = gp10b_ce_nonstall_isr, |
236 | }, | 236 | }, |
237 | .gr = { | 237 | .gr = { |
238 | .get_patch_slots = gr_gk20a_get_patch_slots, | ||
238 | .init_gpc_mmu = gr_gm20b_init_gpc_mmu, | 239 | .init_gpc_mmu = gr_gm20b_init_gpc_mmu, |
239 | .bundle_cb_defaults = gr_gm20b_bundle_cb_defaults, | 240 | .bundle_cb_defaults = gr_gm20b_bundle_cb_defaults, |
240 | .cb_size_default = gr_gp106_cb_size_default, | 241 | .cb_size_default = gr_gp106_cb_size_default, |