diff --git a/drivers/gpu/nvgpu/common/vgpu/fifo/tsg_vgpu.c b/drivers/gpu/nvgpu/common/vgpu/fifo/tsg_vgpu.c index 8814881a9..5f3d37d4b 100644 --- a/drivers/gpu/nvgpu/common/vgpu/fifo/tsg_vgpu.c +++ b/drivers/gpu/nvgpu/common/vgpu/fifo/tsg_vgpu.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2021, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -22,6 +22,7 @@ #include #include +#include #include #include @@ -105,6 +106,7 @@ int vgpu_tsg_bind_channel(struct nvgpu_tsg *tsg, struct nvgpu_channel *ch) msg.cmd = TEGRA_VGPU_CMD_TSG_BIND_CHANNEL; p->tsg_id = tsg->tsgid; p->ch_handle = ch->virt_ctx; + p->runlist_id = ch->runlist->id; } else { struct tegra_vgpu_tsg_bind_channel_ex_params *p = &msg.params.tsg_bind_channel_ex; @@ -112,6 +114,7 @@ int vgpu_tsg_bind_channel(struct nvgpu_tsg *tsg, struct nvgpu_channel *ch) msg.cmd = TEGRA_VGPU_CMD_TSG_BIND_CHANNEL_EX; p->tsg_id = tsg->tsgid; p->ch_handle = ch->virt_ctx; + p->runlist_id = ch->runlist->id; p->subctx_id = ch->subctx_id; p->runqueue_sel = ch->runqueue_sel; } diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h index 596b30de6..3680e1dcb 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h @@ -1,7 +1,7 @@ /* * Tegra GPU Virtualization Interfaces to Server * - * Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2021, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -407,6 +407,7 @@ struct tegra_vgpu_gr_ctx_params { struct tegra_vgpu_tsg_bind_unbind_channel_params { u32 tsg_id; u64 ch_handle; + u32 runlist_id; }; struct tegra_vgpu_tsg_preempt_params { @@ -632,6 +633,7 @@ struct tegra_vgpu_map_syncpt_params { struct tegra_vgpu_tsg_bind_channel_ex_params { u32 tsg_id; u64 ch_handle; + u32 runlist_id; u32 subctx_id; u32 runqueue_sel; };