From 7a134457a840118ed02967a3c0bc4b4f248837ea Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Mon, 9 May 2016 17:24:49 -0700 Subject: gpu: nvgpu: vgpu: add tsg set timeslice support Bug 1702773 JIRA VFND-1496 Change-Id: Ice570df78d974fa59f2a932caf0e6249b13493a1 Signed-off-by: Richard Zhao Reviewed-on: http://git-master/r/1144929 (cherry picked from commit 8b6ec996f3773e497a040a8fe4148e01e8dc35fa) Reviewed-on: http://git-master/r/1150705 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/linux/tegra_vgpu.h') diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index bdaabf29..706d87e4 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -91,6 +91,7 @@ enum { TEGRA_VGPU_CMD_TSG_BIND_CHANNEL, TEGRA_VGPU_CMD_TSG_UNBIND_CHANNEL, TEGRA_VGPU_CMD_TSG_PREEMPT, + TEGRA_VGPU_CMD_TSG_SET_TIMESLICE, }; struct tegra_vgpu_connect_params { @@ -373,6 +374,11 @@ struct tegra_vgpu_tsg_preempt_params { u32 tsg_id; }; +struct tegra_vgpu_tsg_timeslice_params { + u32 tsg_id; + u32 timeslice_us; +}; + struct tegra_vgpu_cmd_msg { u32 cmd; int ret; @@ -411,6 +417,7 @@ struct tegra_vgpu_cmd_msg { struct tegra_vgpu_tsg_bind_gr_ctx_params tsg_bind_gr_ctx; struct tegra_vgpu_tsg_bind_unbind_channel_params tsg_bind_unbind_channel; struct tegra_vgpu_tsg_preempt_params tsg_preempt; + struct tegra_vgpu_tsg_timeslice_params tsg_timeslice; char padding[192]; } params; }; -- cgit v1.2.2