drm/v3d: Add a little debugfs entry for measuring the core clock.
authorEric Anholt <eric@anholt.net>
Fri, 28 Sep 2018 23:21:24 +0000 (16:21 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 15 Oct 2018 20:10:47 +0000 (13:10 -0700)
commit6915c9a525e575732429c22b28eb11871a29374b
tree269922262baa0261eaf4f005bf5f0986b102720d
parent34c2c4f632f232ed2fdb66d4e42cc72d322273fe
drm/v3d: Add a little debugfs entry for measuring the core clock.

This adds just enough performance counter support to measure the
clock.  We don't have linux kernel drivers for the clock driving the
HW, and this was useful for determining that the V3D HW is running on
a slow clock, not that the driver was slow.

Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180928232126.4332-2-eric@anholt.net
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/gpu/drm/v3d/v3d_debugfs.c
drivers/gpu/drm/v3d/v3d_regs.h