From fa1b18c171aba0f8bb674ccc8c60ae81213a16f6 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Tue, 5 Dec 2017 15:48:22 -0800 Subject: gpu: nvgpu: vgpu: add tsg release command gv11b needs tsg release callback to release CE method buffer. Bug 2022929 Change-Id: I32e27a5fa49eb61b9c2fc72ea32034191a9be48e Signed-off-by: Richard Zhao Reviewed-on: https://git-master.nvidia.com/r/1611631 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Thomas Fleury GVS: Gerrit_Virtual_Submit Reviewed-by: Aparna Das Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/tegra_vgpu.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/linux/tegra_vgpu.h') diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index bfa5862b..5c81e8c9 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -110,6 +110,7 @@ enum { TEGRA_VGPU_CMD_PROF_MGT = 72, TEGRA_VGPU_CMD_PERFBUF_MGT = 73, TEGRA_VGPU_CMD_GET_TIMESTAMPS_ZIPPER = 74, + TEGRA_VGPU_CMD_TSG_RELEASE = 75, }; struct tegra_vgpu_connect_params { @@ -384,7 +385,7 @@ struct tegra_vgpu_tsg_timeslice_params { u32 timeslice_us; }; -struct tegra_vgpu_tsg_open_params { +struct tegra_vgpu_tsg_open_rel_params { u32 tsg_id; }; @@ -562,7 +563,8 @@ 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_open_rel_params tsg_open; + struct tegra_vgpu_tsg_open_rel_params tsg_release; 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