drm/msm: Add memory stats to fdinfo
authorRob Clark <robdclark@chromium.org>
Wed, 24 May 2023 15:59:36 +0000 (08:59 -0700)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 24 May 2023 16:03:32 +0000 (18:03 +0200)
commit3e9757f5ddb98238226ad68a1609aa313de35adb
tree69bf10d93f05d36bb6a8c73085490783bcd69d20
parent686b21b5f6ca2f8a716f9a4ade07246dbfb2713e
drm/msm: Add memory stats to fdinfo

Use the new helper to export stats about memory usage.

v2: Drop unintended hunk
v3: Rebase

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
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-7-robdclark@gmail.com
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_gem.c