mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
nvgpu: vgpu: add tsg set interleave support
added a new cmd to support setting tsg interleave level. Bug 1702773 VFND-1492 Change-Id: Idd9b9c59180b156293ddfc4e2b879d0ea6908388 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Reviewed-on: http://git-master/r/1145024 (cherry picked from commit 0929ff1089fbc331b07e17073a46fda4086ae785) Reviewed-on: http://git-master/r/1150706 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Terje Bergstrom
parent
7a134457a8
commit
b0ffd2f065
@@ -92,6 +92,7 @@ enum {
|
||||
TEGRA_VGPU_CMD_TSG_UNBIND_CHANNEL,
|
||||
TEGRA_VGPU_CMD_TSG_PREEMPT,
|
||||
TEGRA_VGPU_CMD_TSG_SET_TIMESLICE,
|
||||
TEGRA_VGPU_CMD_TSG_SET_RUNLIST_INTERLEAVE,
|
||||
};
|
||||
|
||||
struct tegra_vgpu_connect_params {
|
||||
@@ -379,6 +380,12 @@ struct tegra_vgpu_tsg_timeslice_params {
|
||||
u32 timeslice_us;
|
||||
};
|
||||
|
||||
/* level follows nvgpu.h definitions */
|
||||
struct tegra_vgpu_tsg_runlist_interleave_params {
|
||||
u32 tsg_id;
|
||||
u32 level;
|
||||
};
|
||||
|
||||
struct tegra_vgpu_cmd_msg {
|
||||
u32 cmd;
|
||||
int ret;
|
||||
@@ -418,6 +425,7 @@ struct tegra_vgpu_cmd_msg {
|
||||
struct tegra_vgpu_tsg_bind_unbind_channel_params tsg_bind_unbind_channel;
|
||||
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;
|
||||
char padding[192];
|
||||
} params;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user