nouveau: add an ioctl to report vram usage
authorDave Airlie <airlied@redhat.com>
Wed, 24 Jan 2024 04:24:25 +0000 (14:24 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 23 Feb 2024 00:20:07 +0000 (10:20 +1000)
commit72fa02fdf83306c52bc1eede28359e3fa32a151a
treeda081e6cb76f9224f889c68590f49bc1a1047716
parent3f4d8aac6e768c2215ce68275256971c2f54f0c8
nouveau: add an ioctl to report vram usage

This reports the currently used vram allocations.

userspace using this has been proposed for nvk, but
it's a rather trivial uapi addition.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_abi16.c
include/uapi/drm/nouveau_drm.h