summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
diff options
context:
space:
mode:
authorDavid Nieto <dmartineznie@nvidia.com>2017-10-23 16:58:37 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-26 20:56:08 -0400
commit0f8746130ba79ec82a4b0675bbe00ab1ba17d3f8 (patch)
tree697a3965e29d4e55f053e3a8fd7bb94aac8aa844 /drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
parent00e52529a8431a6520b8e1bbcbfa44b4cc86be80 (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/vgpu/gm20b/vgpu_hal_gm20b.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
index 81bcdc21..29eaf80b 100644
--- a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
+++ b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
@@ -77,6 +77,7 @@ static const struct gpu_ops vgpu_gm20b_ops = {
77 .get_num_pce = vgpu_ce_get_num_pce, 77 .get_num_pce = vgpu_ce_get_num_pce,
78 }, 78 },
79 .gr = { 79 .gr = {
80 .get_patch_slots = gr_gk20a_get_patch_slots,
80 .init_gpc_mmu = gr_gm20b_init_gpc_mmu, 81 .init_gpc_mmu = gr_gm20b_init_gpc_mmu,
81 .bundle_cb_defaults = gr_gm20b_bundle_cb_defaults, 82 .bundle_cb_defaults = gr_gm20b_bundle_cb_defaults,
82 .cb_size_default = gr_gm20b_cb_size_default, 83 .cb_size_default = gr_gm20b_cb_size_default,