mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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 <rizhao@nvidia.com> Reviewed-on: http://git-master/r/932829 Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Terje Bergstrom
parent
42b0f49d42
commit
8fb33d92b0
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user