From 845a693d13ad4399cd85d795324dc0eb9586784e Mon Sep 17 00:00:00 2001 From: Aingara Paramakuru Date: Tue, 8 Mar 2016 09:54:38 -0500 Subject: 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 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 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/linux/tegra_vgpu.h') 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 { TEGRA_VGPU_CMD_SET_SM_DEBUG_MODE, TEGRA_VGPU_CMD_REG_OPS, TEGRA_VGPU_CMD_CHANNEL_SET_PRIORITY, - TEGRA_VGPU_CMD_CHANNEL_SET_RUNLIST_INTERLEAVE + TEGRA_VGPU_CMD_CHANNEL_SET_RUNLIST_INTERLEAVE, + TEGRA_VGPU_CMD_CHANNEL_SET_TIMESLICE }; struct tegra_vgpu_connect_params { @@ -305,6 +306,11 @@ struct tegra_vgpu_channel_runlist_interleave_params { u32 level; }; +struct tegra_vgpu_channel_timeslice_params { + u64 handle; + u32 timeslice_us; +}; + struct tegra_vgpu_cmd_msg { u32 cmd; int ret; @@ -334,6 +340,7 @@ struct tegra_vgpu_cmd_msg { struct tegra_vgpu_reg_ops_params reg_ops; struct tegra_vgpu_channel_priority_params channel_priority; struct tegra_vgpu_channel_runlist_interleave_params channel_interleave; + struct tegra_vgpu_channel_timeslice_params channel_timeslice; char padding[192]; } params; }; -- cgit v1.2.2