]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/etnaviv: add uapi for perfmon feature
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sun, 24 Sep 2017 13:15:22 +0000 (15:15 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 10 Oct 2017 09:45:41 +0000 (11:45 +0200)
commit05916bed11b6d4c61b473a76220151a7d0547164
tree88b4d21e689e51400c3b5bc419dd97ada5be32e2
parent9e2c2e27301266dee805dda2e6d171931d752087
drm/etnaviv: add uapi for perfmon feature

Sadly we can not read any registers via command stream so we need
to extend the drm_etnaviv_gem_submit struct with performance monitor
requests. Those requests gets process before or after the actual
submitted command stream.

The Vivante kernel driver has a special ioctl to read all perfmon
registers at once and return it.

Changes from v1 -> v2:
- use a 16 bit value for signals
- fix padding issues

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
include/uapi/drm/etnaviv_drm.h