mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: vgpu: add runlist_id to cmd TEGRA_VGPU_CMD_CHANNEL_ALLOC_HWCTX
Server side needs channel runlist_id to do channel operations. Jira GVSCI-8166 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Change-Id: Ie51f7263851d24d95756bd60f29ba01fdc13ec49 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2438020 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
9251621f5f
commit
e8a356548e
@@ -81,6 +81,7 @@ int vgpu_channel_alloc_inst(struct gk20a *g, struct nvgpu_channel *ch)
|
||||
msg.cmd = TEGRA_VGPU_CMD_CHANNEL_ALLOC_HWCTX;
|
||||
msg.handle = vgpu_get_handle(g);
|
||||
p->id = ch->chid;
|
||||
p->runlist_id = ch->runlist_id;
|
||||
p->pid = (u64)ch->pid;
|
||||
err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg));
|
||||
if (err || msg.ret) {
|
||||
|
||||
@@ -128,6 +128,7 @@ struct tegra_vgpu_connect_params {
|
||||
|
||||
struct tegra_vgpu_channel_hwctx_params {
|
||||
u32 id;
|
||||
u32 runlist_id;
|
||||
u64 pid;
|
||||
u64 handle;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user