From cddf69c549c5c6fb2c69e4620636e96c698a4201 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Tue, 7 Nov 2017 16:05:58 -0800 Subject: gpu: nvgpu: vgpu: cyclestat characteristics fixes Fix characteristics for cyclestats: - SUPPORT_TSG and SUPPORT_CYCLE_STATS_SNAPSHOT were assigned the same value - For vgpu, SUPPORT_CYCLE_STATS was set redundantly (but differently) - For vgpu, if the css buffer size is 0, set the support flag to False JIRA ESRM-88 Bug 200296210 Change-Id: Iaf98dafec55f171b5968c2a8248290284bf30922 Signed-off-by: Peter Daifuku Reviewed-on: https://git-master.nvidia.com/r/1593939 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Konsta Holtta Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/vgpu.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c') diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 2cd99e8c..c753fd97 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c @@ -371,7 +371,6 @@ int vgpu_init_gpu_characteristics(struct gk20a *g) g->gpu_characteristics.map_buffer_batch_limit = 0; /* features vgpu does not support */ - __nvgpu_set_enabled(g, NVGPU_SUPPORT_CYCLE_STATS, false); __nvgpu_set_enabled(g, NVGPU_SUPPORT_RESCHEDULE_RUNLIST, false); return 0; -- cgit v1.2.2