summaryrefslogtreecommitdiffstats
path: root/include/linux/tegra_vgpu.h
diff options
context:
space:
mode:
authorAingara Paramakuru <aparamakuru@nvidia.com>2016-03-08 09:54:38 -0500
committerTerje Bergstrom <tbergstrom@nvidia.com>2016-03-24 12:00:15 -0400
commit845a693d13ad4399cd85d795324dc0eb9586784e (patch)
tree02d6cae11fcd1d3f6f54b17ed1e20ced178c3217 /include/linux/tegra_vgpu.h
parent7d45a7361d104674d921dffed0f7051b0aaf1059 (diff)
gpu: nvgpu: vgpu: add channel timeslice support
Update vgpu back-end to send channel timeslice request to server. JIRA VFND-1347 Bug 1729664 Change-Id: I289f88882780616331952a79a223755117f07174 Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-on: http://git-master/r/1028977 (cherry picked from commit 792a5642b37ca34362ba68200cb8909d2fe8c18c) Reviewed-on: http://git-master/r/1026592 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Richard Zhao <rizhao@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/linux/tegra_vgpu.h')
-rw-r--r--include/linux/tegra_vgpu.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h
index 5f697e78..d84d0c63 100644
--- a/include/linux/tegra_vgpu.h
+++ b/include/linux/tegra_vgpu.h
@@ -75,7 +75,8 @@ enum {
75 TEGRA_VGPU_CMD_SET_SM_DEBUG_MODE, 75 TEGRA_VGPU_CMD_SET_SM_DEBUG_MODE,
76 TEGRA_VGPU_CMD_REG_OPS, 76 TEGRA_VGPU_CMD_REG_OPS,
77 TEGRA_VGPU_CMD_CHANNEL_SET_PRIORITY, 77 TEGRA_VGPU_CMD_CHANNEL_SET_PRIORITY,
78 TEGRA_VGPU_CMD_CHANNEL_SET_RUNLIST_INTERLEAVE 78 TEGRA_VGPU_CMD_CHANNEL_SET_RUNLIST_INTERLEAVE,
79 TEGRA_VGPU_CMD_CHANNEL_SET_TIMESLICE
79}; 80};
80 81
81struct tegra_vgpu_connect_params { 82struct tegra_vgpu_connect_params {
@@ -305,6 +306,11 @@ struct tegra_vgpu_channel_runlist_interleave_params {
305 u32 level; 306 u32 level;
306}; 307};
307 308
309struct tegra_vgpu_channel_timeslice_params {
310 u64 handle;
311 u32 timeslice_us;
312};
313
308struct tegra_vgpu_cmd_msg { 314struct tegra_vgpu_cmd_msg {
309 u32 cmd; 315 u32 cmd;
310 int ret; 316 int ret;
@@ -334,6 +340,7 @@ struct tegra_vgpu_cmd_msg {
334 struct tegra_vgpu_reg_ops_params reg_ops; 340 struct tegra_vgpu_reg_ops_params reg_ops;
335 struct tegra_vgpu_channel_priority_params channel_priority; 341 struct tegra_vgpu_channel_priority_params channel_priority;
336 struct tegra_vgpu_channel_runlist_interleave_params channel_interleave; 342 struct tegra_vgpu_channel_runlist_interleave_params channel_interleave;
343 struct tegra_vgpu_channel_timeslice_params channel_timeslice;
337 char padding[192]; 344 char padding[192];
338 } params; 345 } params;
339}; 346};