From d47e486b19bda2110287440dfeaae56e366f85aa Mon Sep 17 00:00:00 2001 From: Yandong Lin Date: Mon, 12 Jul 2021 11:47:02 +0800 Subject: [PATCH] video: rockchip: mpp: use dma-buf-cache func Note: The commit depends on the following commit: commit 36514da674cb ("dma-buf: support to cache dma-buf-attachment") The attachment and sg_table will be store in dma-buf-cache. So use dma-buf-cache api instead of dma-buf api to reduce the actual operation of attach/map. Signed-off-by: Yandong Lin Change-Id: I8b46c8f6a6f69ebe9854858e198d1c312a808a2f --- drivers/video/rockchip/mpp/mpp_iommu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/rockchip/mpp/mpp_iommu.c b/drivers/video/rockchip/mpp/mpp_iommu.c index b9f10cd0c689..1ff83c1a8eb5 100644 --- a/drivers/video/rockchip/mpp/mpp_iommu.c +++ b/drivers/video/rockchip/mpp/mpp_iommu.c @@ -12,7 +12,7 @@ #include #endif #include -#include +#include #include #include #include @@ -233,8 +233,6 @@ struct mpp_dma_buffer *mpp_dma_import_fd(struct mpp_iommu_info *iommu_info, buffer->dma = dma; kref_init(&buffer->ref); - /* Increase the reference for used outside the buffer pool */ - kref_get(&buffer->ref); mutex_lock(&dma->list_mutex); dma->buffer_count++;