gpu: nvgpu: vgpu: NULL out unused css entries

Fix cyclestats snapshots HAL entries in the vgpu case, need
to null out the ones that don't apply.

Bug 1700143
JIRA EVLR-278

Change-Id: I1b5f4652d1bf3283d96fdb3c2f66c4f69a9f6acc
Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com>
Reviewed-on: http://git-master/r/1217507
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
This commit is contained in:
Peter Daifuku
2016-09-08 17:03:18 -07:00
committed by mobile promotions
parent c0dd9ea9c8
commit 54e22a2bae

View File

@@ -217,5 +217,10 @@ void vgpu_init_css_ops(struct gpu_ops *gops)
gops->css.disable_snapshot = vgpu_css_release_snapshot_buffer;
gops->css.check_data_available = vgpu_css_flush_snapshots;
gops->css.detach_snapshot = vgpu_css_detach;
/* Following entries are not used when virtual, NULL them */
gops->css.set_handled_snapshots = NULL;
gops->css.allocate_perfmon_ids = NULL;
gops->css.release_perfmon_ids = NULL;
}
#endif /* CONFIG_GK20A_CYCLE_STATS */