From c1750f45f5239508e7a67db0627552f87943ec9f Mon Sep 17 00:00:00 2001 From: Sachit Kadle Date: Fri, 4 Nov 2016 17:48:59 -0700 Subject: gpu: nvgpu: add tsg_open HAL interface Add HAL interface for TSG open, which is intended to be called from the exisiting gk20a_tsg_open function. The tsg_open entryoint is only implemented for vgpu, as the server needs to clear metadata when a tsg is opened. Bug 200215060 Change-Id: Icc8fd602f31e52d9fa9b2e7786b665b9e7b9294e Signed-off-by: Sachit Kadle Reviewed-on: http://git-master/r/1249218 (cherry picked from commit 35c86f7c796c6574d3dc336e20012ea5c16d7cb4) Reviewed-on: http://git-master/r/1256468 Reviewed-by: mobile promotions Tested-by: mobile promotions --- 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 456622a4..79698d23 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -98,6 +98,7 @@ enum { TEGRA_VGPU_CMD_SET_GPU_CLK_RATE = 61, TEGRA_VGPU_CMD_GET_CONSTANTS = 62, TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT = 63, + TEGRA_VGPU_CMD_TSG_OPEN = 64, }; struct tegra_vgpu_connect_params { @@ -387,6 +388,10 @@ struct tegra_vgpu_tsg_timeslice_params { u32 timeslice_us; }; +struct tegra_vgpu_tsg_open_params { + u32 tsg_id; +}; + /* level follows nvgpu.h definitions */ struct tegra_vgpu_tsg_runlist_interleave_params { u32 tsg_id; @@ -486,6 +491,7 @@ struct tegra_vgpu_cmd_msg { 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_open_params tsg_open; 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; -- cgit v1.2.2