drm: Add common fdinfo helper
authorRob Clark <robdclark@chromium.org>
Wed, 24 May 2023 15:59:32 +0000 (08:59 -0700)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 24 May 2023 16:03:26 +0000 (18:03 +0200)
commit3f09a0cd4ea3b9d34495450d686227d48e7ec648
tree45389fd7554d84e0b2a769f1cb1cc9564286c23e
parent0020582a8afe9a8570f80ec503c59bf049a616de
drm: Add common fdinfo helper

Handle a bit of the boiler-plate in a single case, and make it easier to
add some core tracked stats.  This also ensures consistent behavior
across drivers for standardised fields.

v2: Update drm-usage-stats.rst, 64b client-id, rename drm_show_fdinfo
v3: Rebase on drm-misc-next

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230524155956.382440-3-robdclark@gmail.com
Documentation/gpu/drm-usage-stats.rst
drivers/gpu/drm/drm_file.c
include/drm/drm_drv.h
include/drm/drm_file.h