summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
diff options
context:
space:
mode:
authorPeter Daifuku <pdaifuku@nvidia.com>2017-10-13 20:06:30 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-25 23:24:10 -0400
commit6bf40e523740279761f3fdc3d84000acc2f62aba (patch)
treebf56295c292b5ee9bee232141bc0ebd262f02225 /drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
parent0dcf0ede812aa55aa106a5e6c2f86216fcbfd5e0 (diff)
gpu: nvgpu: add max_css_buffer_size characteristic
Add max_css_buffer_size to gpu characteristics. In the virtual case, the size of the cycle stats snapshot buffer is constrained by the size of the mempool shared between the guest OS and the RM server, so tools need to find out what is the maximum size allowed. In the native case, we return 0xffffffff to indicate that the buffer size is unbounded (subject to memory availability), in the virtual case we return the size of the mempool. Also collapse native init_cyclestats functions to a single version, as each chip had identical versions of the code. JIRA ESRM-54 Bug 200296210 Change-Id: I71764d32c6e71a0d101bd40f274eaa4bea3e5b11 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1578930 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
index 38d07ee2..81bcdc21 100644
--- a/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
+++ b/drivers/gpu/nvgpu/vgpu/gm20b/vgpu_hal_gm20b.c
@@ -130,7 +130,7 @@ static const struct gpu_ops vgpu_gm20b_ops = {
130 .get_max_fbps_count = vgpu_gr_get_max_fbps_count, 130 .get_max_fbps_count = vgpu_gr_get_max_fbps_count,
131 .init_sm_dsm_reg_info = gr_gm20b_init_sm_dsm_reg_info, 131 .init_sm_dsm_reg_info = gr_gm20b_init_sm_dsm_reg_info,
132 .wait_empty = gr_gk20a_wait_idle, 132 .wait_empty = gr_gk20a_wait_idle,
133 .init_cyclestats = gr_gm20b_init_cyclestats, 133 .init_cyclestats = vgpu_gr_gm20b_init_cyclestats,
134 .set_sm_debug_mode = vgpu_gr_set_sm_debug_mode, 134 .set_sm_debug_mode = vgpu_gr_set_sm_debug_mode,
135 .enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs, 135 .enable_cde_in_fecs = gr_gm20b_enable_cde_in_fecs,
136 .bpt_reg_info = gr_gm20b_bpt_reg_info, 136 .bpt_reg_info = gr_gm20b_bpt_reg_info,