History

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.

Dave Airlie committed 2 years ago

Commit 72fa02f1 parent 3f4d8aa2 files · +12 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/nouveau_drm.h+7−0
@@ -61,6 +61,13 @@ extern "C" { · 60 unmodified lines
61 */61 */
62#define NOUVEAU_GETPARAM_VRAM_BAR_SIZE 1862#define NOUVEAU_GETPARAM_VRAM_BAR_SIZE 18
63 63
64/*
65 * NOUVEAU_GETPARAM_VRAM_USED
66 *
67 * Get remaining VRAM size.
68 */
69#define NOUVEAU_GETPARAM_VRAM_USED 19
70
64struct drm_nouveau_getparam {71struct drm_nouveau_getparam {
65 __u64 param;72 __u64 param;
66 __u64 value;73 __u64 value;