drm/lima: add show_fdinfo for drm usage stats
authorErico Nunes <nunes.erico@gmail.com>
Sun, 12 Mar 2023 23:30:52 +0000 (00:30 +0100)
committerQiang Yu <yuq825@gmail.com>
Sun, 2 Apr 2023 10:18:37 +0000 (18:18 +0800)
commit4a66f3da99dcb4dcbd28544110636b50adfb0f0d
treecca4dbf47b1770a8d9fddafc36403fa8477dd8d4
parent87767de835edf527b879a363d518c33da68adb81
drm/lima: add show_fdinfo for drm usage stats

This exposes an accumulated active time per client via the fdinfo
infrastructure per execution engine, following
Documentation/gpu/drm-usage-stats.rst.
In lima, the exposed execution engines are gp and pp.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230312233052.21095-4-nunes.erico@gmail.com
drivers/gpu/drm/lima/lima_drv.c