drm/vc4: Add a debugfs entry to disable/enable the load tracker

In order to test whether the load tracker is working as expected, we
need the ability to compare the commit result with the underrun
indication. With the load tracker always enabled, commits that are
expected to trigger an underrun are always rejected, so userspace
cannot get the actual underrun indication from the hardware.

Add a debugfs entry to disable/enable the load tracker, so that a DRM
commit expected to trigger an underrun can go through with the load
tracker disabled. The underrun indication is then available to
userspace and can be checked against the commit result with the load
tracker enabled.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190220155124.25022-4-paul.kocialkowski@bootlin.com
这个提交包含在:
Paul Kocialkowski
2019-02-20 16:51:24 +01:00
提交者 Maxime Ripard
父节点 4686da8315
当前提交 6b5c029df5
修改 3 个文件,包含 21 行新增0 行删除

查看文件

@@ -195,6 +195,9 @@ struct vc4_dev {
int power_refcount;
/* Set to true when the load tracker is active. */
bool load_tracker_enabled;
/* Mutex controlling the power refcount. */
struct mutex power_lock;