From 8fb33d92b03b9ee2db421c69252822d09477cce5 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Thu, 14 Jan 2016 17:40:48 -0800 Subject: gpu: nvgpu: vgpu: add channel_set_priority support - add gops.fifo.channel_set_priority and move current code as native callback. - implement the callback for vgpu Bug 1701079 Change-Id: If1cd13ea4478d11d578da2f682598e0c4522bcaf Signed-off-by: Richard Zhao Reviewed-on: http://git-master/r/932829 Reviewed-by: Aingara Paramakuru 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 b0e25c60..280ca9c0 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -73,7 +73,8 @@ enum { TEGRA_VGPU_CMD_CHANNEL_BIND_GR_CTXSW_BUFFERS, TEGRA_VGPU_CMD_SET_MMU_DEBUG_MODE, TEGRA_VGPU_CMD_SET_SM_DEBUG_MODE, - TEGRA_VGPU_CMD_REG_OPS + TEGRA_VGPU_CMD_REG_OPS, + TEGRA_VGPU_CMD_CHANNEL_SET_PRIORITY }; struct tegra_vgpu_connect_params { @@ -292,6 +293,11 @@ struct tegra_vgpu_reg_ops_params { u32 is_profiler; }; +struct tegra_vgpu_channel_priority_params { + u64 handle; + u32 priority; +}; + struct tegra_vgpu_cmd_msg { u32 cmd; int ret; @@ -319,6 +325,7 @@ struct tegra_vgpu_cmd_msg { struct tegra_vgpu_mmu_debug_mode mmu_debug_mode; struct tegra_vgpu_sm_debug_mode sm_debug_mode; struct tegra_vgpu_reg_ops_params reg_ops; + struct tegra_vgpu_channel_priority_params channel_priority; char padding[192]; } params; }; -- cgit v1.2.2