From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB
---
kernel/drivers/gpu/drm/rockchip/rockchip_drm_direct_show.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/kernel/drivers/gpu/drm/rockchip/rockchip_drm_direct_show.c b/kernel/drivers/gpu/drm/rockchip/rockchip_drm_direct_show.c
index 9989820..9e7276b 100644
--- a/kernel/drivers/gpu/drm/rockchip/rockchip_drm_direct_show.c
+++ b/kernel/drivers/gpu/drm/rockchip/rockchip_drm_direct_show.c
@@ -316,3 +316,18 @@
return ret;
}
+
+int rockchip_drm_direct_show_buf_begin_cpu_access(struct rockchip_drm_direct_show_buffer *buffer)
+{
+ struct drm_gem_object *obj = &buffer->rk_gem_obj->base;
+
+ return rockchip_gem_prime_begin_cpu_access(obj, DMA_FROM_DEVICE);
+}
+
+int rockchip_drm_direct_show_buf_end_cpu_access(struct rockchip_drm_direct_show_buffer *buffer)
+{
+ struct drm_gem_object *obj = &buffer->rk_gem_obj->base;
+
+ return rockchip_gem_prime_end_cpu_access(obj, DMA_TO_DEVICE);
+}
+
--
Gitblit v1.6.2