summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/vc4/vc4_debugfs.c
diff options
context:
space:
mode:
authorEric Anholt2015-10-10 05:25:07 +0200
committerEric Anholt2015-12-08 05:01:56 +0100
commitc826a6e1064419f78855463cf29ce9e8b9d25bf4 (patch)
tree5e14c5eccefaaf37b87684737e852ba87a621d89 /drivers/gpu/drm/vc4/vc4_debugfs.c
parentdrm: Create a driver hook for allocating GEM object structs. (diff)
downloadkernel-qcow2-linux-c826a6e1064419f78855463cf29ce9e8b9d25bf4.tar.gz
kernel-qcow2-linux-c826a6e1064419f78855463cf29ce9e8b9d25bf4.tar.xz
kernel-qcow2-linux-c826a6e1064419f78855463cf29ce9e8b9d25bf4.zip
drm/vc4: Add a BO cache.
We need to allocate new BOs in the kernel as part of each frame, but the CMA allocator is way too slow for that. As an optimization, keep track of recently-freed BOs and reuse them, with a 1 second timeout to fully free them back to the system. This improves 3D performance by about 15%. Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/vc4/vc4_debugfs.c')
-rw-r--r--drivers/gpu/drm/vc4/vc4_debugfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_debugfs.c b/drivers/gpu/drm/vc4/vc4_debugfs.c
index 4297b0a5b74e..6bcf96e9a482 100644
--- a/drivers/gpu/drm/vc4/vc4_debugfs.c
+++ b/drivers/gpu/drm/vc4/vc4_debugfs.c
@@ -16,6 +16,7 @@
#include "vc4_regs.h"
static const struct drm_info_list vc4_debugfs_list[] = {
+ {"bo_stats", vc4_bo_stats_debugfs, 0},
{"hdmi_regs", vc4_hdmi_debugfs_regs, 0},
{"hvs_regs", vc4_hvs_debugfs_regs, 0},
{"crtc0_regs", vc4_crtc_debugfs_regs, 0, (void *)(uintptr_t)0},