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
6161 */
6262 #define NOUVEAU_GETPARAM_VRAM_BAR_SIZE 18
6363
64+/*
65+ * NOUVEAU_GETPARAM_VRAM_USED
66+ *
67+ * Get remaining VRAM size.
68+ */
69+#define NOUVEAU_GETPARAM_VRAM_USED 19
70+
6471 struct drm_nouveau_getparam {
6572 __u64 param;
6673 __u64 value;