From d707c5a444e024e1184213a75f44a73dbb1707d2 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Thu, 31 Mar 2016 11:16:23 -0700 Subject: gpu: nvgpu: add tsg support for vgpu - make tsg_gk20a.c call HAL for enable/disable channels - add preempt_tsg HAL callbacks - add tsg bind/unbind channel HAL callbacks - add according tsg callbacks for vgpu Bug 1702773 JIRA VFND-1003 Change-Id: I2cba74b3ebd3920ef09219a168e6433d9574dbe8 Signed-off-by: Richard Zhao Reviewed-on: http://git-master/r/1144932 (cherry picked from commit c3787de7d38651d46969348f5acae2ba86b31ec7) Reviewed-on: http://git-master/r/1126942 Reviewed-by: Terje Bergstrom Tested-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/linux/tegra_vgpu.h') diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index 1d195efd..bdaabf29 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -88,6 +88,9 @@ enum { TEGRA_VGPU_CMD_GR_CTX_FREE, TEGRA_VGPU_CMD_CHANNEL_BIND_GR_CTX, TEGRA_VGPU_CMD_TSG_BIND_GR_CTX, + TEGRA_VGPU_CMD_TSG_BIND_CHANNEL, + TEGRA_VGPU_CMD_TSG_UNBIND_CHANNEL, + TEGRA_VGPU_CMD_TSG_PREEMPT, }; struct tegra_vgpu_connect_params { @@ -361,6 +364,15 @@ struct tegra_vgpu_tsg_bind_gr_ctx_params { u64 gr_ctx_handle; }; +struct tegra_vgpu_tsg_bind_unbind_channel_params { + u32 tsg_id; + u64 ch_handle; +}; + +struct tegra_vgpu_tsg_preempt_params { + u32 tsg_id; +}; + struct tegra_vgpu_cmd_msg { u32 cmd; int ret; @@ -397,6 +409,8 @@ struct tegra_vgpu_cmd_msg { struct tegra_vgpu_gr_ctx_params gr_ctx; struct tegra_vgpu_channel_bind_gr_ctx_params ch_bind_gr_ctx; 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; char padding[192]; } params; }; -- cgit v1.2.2