summaryrefslogtreecommitdiffstats
path: root/include/linux/tegra_vgpu.h
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-04-19 19:47:13 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-05-24 07:55:36 -0400
commitb03afb6d5c4bbca5a26cc95027491c816e5e1f6d (patch)
treeb59ae1b881877cf52ca921a5bf9d884f78fac648 /include/linux/tegra_vgpu.h
parenta823c72219d3bb96bc9489e84b64e0038e7119d7 (diff)
gpu: nvgpu: add ioctls to get current timeslice
Add the following ioctls - NVGPU_CHANNEL_IOCTL_GET_TIMESLICE for channel timeslice in us - NVGPU_TSG_IOCTL_GET_TIMESLICE for TSG timeslice in us If timeslice has not been set explicitly, ioctl returns the default timeslice that will be used when programming the runlist entry. Bug 1883271 Change-Id: Ib18fdd836323b1a2d4efceb1e27d07713bd6fca5 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1469040 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux/tegra_vgpu.h')
-rw-r--r--include/linux/tegra_vgpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h
index ecdc3014..5d4fa36a 100644
--- a/include/linux/tegra_vgpu.h
+++ b/include/linux/tegra_vgpu.h
@@ -457,6 +457,7 @@ struct tegra_vgpu_constants_params {
457 u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT]; 457 u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT];
458 u32 hwpm_ctx_size; 458 u32 hwpm_ctx_size;
459 u8 force_preempt_mode; 459 u8 force_preempt_mode;
460 u32 default_timeslice_us;
460}; 461};
461 462
462struct tegra_vgpu_channel_cyclestats_snapshot_params { 463struct tegra_vgpu_channel_cyclestats_snapshot_params {