]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
Documentation/gpu: Clarify format of driver-specific fidnfo keys
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Thu, 30 Jan 2025 17:28:09 +0000 (17:28 +0000)
committerBoris Brezillon <boris.brezillon@collabora.com>
Fri, 7 Feb 2025 14:22:46 +0000 (15:22 +0100)
This change reflects de facto usage by amdgpu, as exemplified by commit
d6530c33a978 ("drm/amdgpu: expose more memory stats in fdinfo").

Cc: Tvrtko Ursulin <tursulin@ursulin.net>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250130172851.941597-2-adrian.larumbe@collabora.com
Documentation/gpu/drm-usage-stats.rst

index b7fc106dad998ff4384b1043710479e9143d2001..63d6b2abe5adf9e4d8b5b2574a3d57e6f385042e 100644 (file)
@@ -21,7 +21,10 @@ File format specification
 
 - File shall contain one key value pair per one line of text.
 - Colon character (`:`) must be used to delimit keys and values.
-- All keys shall be prefixed with `drm-`.
+- All standardised keys shall be prefixed with `drm-`.
+- Driver-specific keys shall be prefixed with `driver_name-`, where
+  driver_name should ideally be the same as the `name` field in
+  `struct drm_driver`, although this is not mandatory.
 - Whitespace between the delimiter and first non-whitespace character shall be
   ignored when parsing.
 - Keys are not allowed to contain whitespace characters.