From 2e847dac664379a3d353b2b77b09407f17a6db02 Mon Sep 17 00:00:00 2001 From: omar Date: Mon, 23 Oct 2023 17:30:18 -0700 Subject: [PATCH] drivers: pva: default exe_id2 to noop default exe_id2 to noop in case og gen1 and gen2 pva. Bug 4342102 Change-Id: Id1af21808244f128088338ad5895520adcc27f32 Signed-off-by: omar Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3002613 Reviewed-by: Krish Agarwal GVS: Gerrit_Virtual_Submit --- drivers/video/tegra/host/pva/pva_ioctl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/video/tegra/host/pva/pva_ioctl.c b/drivers/video/tegra/host/pva/pva_ioctl.c index 4105c5bc..2770146c 100644 --- a/drivers/video/tegra/host/pva/pva_ioctl.c +++ b/drivers/video/tegra/host/pva/pva_ioctl.c @@ -170,7 +170,11 @@ static int pva_copy_task(struct nvpva_ioctl_task *ioctl_task, * copy them. */ task->exe_id1 = ioctl_task->exe_id1; - task->exe_id2 = ioctl_task->exe_id2; + if (task->pva->version <= PVA_HW_GEN2) + task->exe_id2 = NVPVA_NOOP_EXE_ID; + else + task->exe_id2 = ioctl_task->exe_id2; + task->stream_id = ioctl_task->stream_id; task->prog_id = ioctl_task->prog_id; task->l2_alloc_size = ioctl_task->l2_alloc_size;