mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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:
committed by
mobile promotions
parent
c0dd9ea9c8
commit
54e22a2bae
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user