From 7d45a7361d104674d921dffed0f7051b0aaf1059 Mon Sep 17 00:00:00 2001 From: Aingara Paramakuru Date: Fri, 4 Mar 2016 10:15:08 -0500 Subject: gpu: nvgpu: vgpu: add channel interleave support Update vgpu back-end to send channel interleave request to server. JIRA VFND-1313 Bug 1729664 Change-Id: I2433aef485135ae9222dec238e25aedc19257744 Signed-off-by: Aingara Paramakuru Reviewed-on: http://git-master/r/1028976 (cherry picked from commit df3c5dc410839d126cc0574064d23e58102689b8) Reviewed-on: http://git-master/r/1026049 Reviewed-by: Richard Zhao GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 12 ++++++++++-- 1 file changed, 10 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 280ca9c0..5f697e78 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -1,7 +1,7 @@ /* * Tegra GPU Virtualization Interfaces to Server * - * Copyright (c) 2014-2015, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2014-2016, NVIDIA Corporation. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, @@ -74,7 +74,8 @@ enum { TEGRA_VGPU_CMD_SET_MMU_DEBUG_MODE, TEGRA_VGPU_CMD_SET_SM_DEBUG_MODE, TEGRA_VGPU_CMD_REG_OPS, - TEGRA_VGPU_CMD_CHANNEL_SET_PRIORITY + TEGRA_VGPU_CMD_CHANNEL_SET_PRIORITY, + TEGRA_VGPU_CMD_CHANNEL_SET_RUNLIST_INTERLEAVE }; struct tegra_vgpu_connect_params { @@ -298,6 +299,12 @@ struct tegra_vgpu_channel_priority_params { u32 priority; }; +/* level follows nvgpu.h definitions */ +struct tegra_vgpu_channel_runlist_interleave_params { + u64 handle; + u32 level; +}; + struct tegra_vgpu_cmd_msg { u32 cmd; int ret; @@ -326,6 +333,7 @@ struct tegra_vgpu_cmd_msg { 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; + struct tegra_vgpu_channel_runlist_interleave_params channel_interleave; char padding[192]; } params; }; -- cgit v1.2.2