From 22d0233d3a2c7e2805f0251e43e776fa07469c8b Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Wed, 8 Jun 2016 14:57:41 -0700 Subject: gpu: nvgpu: vgpu: add read ptimer support Bug 1395833 Change-Id: Id0d427b6a1ddaecfeec33c61a6161679cf596c92 Signed-off-by: Richard Zhao Reviewed-on: http://git-master/r/1159588 (cherry picked from commit d33aa89420990626fb377c56ed5517a00f717c2a) Reviewed-on: http://git-master/r/1158897 Reviewed-by: Thomas Fleury GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/linux/tegra_vgpu.h') diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index 9a31ff40..fc701eb3 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -95,6 +95,7 @@ enum { TEGRA_VGPU_CMD_TSG_SET_RUNLIST_INTERLEAVE, TEGRA_VGPU_CMD_CHANNEL_FORCE_RESET, TEGRA_VGPU_CMD_CHANNEL_ENABLE, + TEGRA_VGPU_CMD_READ_PTIMER, }; struct tegra_vgpu_connect_params { @@ -389,6 +390,10 @@ struct tegra_vgpu_tsg_runlist_interleave_params { u32 level; }; +struct tegra_vgpu_read_ptimer_params { + u64 time; +}; + struct tegra_vgpu_cmd_msg { u32 cmd; int ret; @@ -429,6 +434,7 @@ struct tegra_vgpu_cmd_msg { struct tegra_vgpu_tsg_preempt_params tsg_preempt; struct tegra_vgpu_tsg_timeslice_params tsg_timeslice; struct tegra_vgpu_tsg_runlist_interleave_params tsg_interleave; + struct tegra_vgpu_read_ptimer_params read_ptimer; char padding[192]; } params; }; -- cgit v1.2.2