From 6d994f02ab8eb9164862b3fc0263a2767ac598d6 Mon Sep 17 00:00:00 2001 From: Jung Zhao Date: Mon, 21 Aug 2017 11:06:38 +0800 Subject: [PATCH] video: rockchip: vpu: remove extra input fd map/unmap remap input fd is unnecessarily now. Change-Id: I288fa2bad67be37603d9dedd4291d90d8cd2e602 Signed-off-by: Jung Zhao --- drivers/video/rockchip/vcodec/vcodec_service.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/video/rockchip/vcodec/vcodec_service.c b/drivers/video/rockchip/vcodec/vcodec_service.c index d4156bf16804..979dab150465 100644 --- a/drivers/video/rockchip/vcodec/vcodec_service.c +++ b/drivers/video/rockchip/vcodec/vcodec_service.c @@ -1045,12 +1045,6 @@ static int vcodec_bufid_to_iova(struct vpu_subdev_data *data, if (usr_fd == 0) continue; - /* - * for avoiding cache sync issue, we need to map/unmap - * input buffer every time. FIX ME, if it is unnecessary - */ - if (task->reg_rlc == tbl[i]) - vcodec_iommu_free_fd(data->iommu_info, session, usr_fd); /* * special offset scale case *