From 0f8746130ba79ec82a4b0675bbe00ab1ba17d3f8 Mon Sep 17 00:00:00 2001 From: David Nieto Date: Mon, 23 Oct 2017 13:58:37 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1584033 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/nvgpu/vgpu/gm20b') 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 = { .get_num_pce = vgpu_ce_get_num_pce, }, .gr = { + .get_patch_slots = gr_gk20a_get_patch_slots, .init_gpc_mmu = gr_gm20b_init_gpc_mmu, .bundle_cb_defaults = gr_gm20b_bundle_cb_defaults, .cb_size_default = gr_gm20b_cb_size_default, -- cgit v1.2.2