drm/ttm: add kerneldoc for enum ttm_caching
authorChristian König <christian.koenig@amd.com>
Tue, 7 Sep 2021 07:14:43 +0000 (09:14 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 9 Sep 2021 11:26:43 +0000 (13:26 +0200)
Briefly describe what this is all about.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210908132933.3269-4-christian.koenig@amd.com
Documentation/gpu/drm-mm.rst
include/drm/ttm/ttm_caching.h

index 6b7717af4f88b9b946098f27208f652bc734cc81..f22c9f9a2c0e1cc53c989860ec67c921b029352c 100644 (file)
@@ -31,6 +31,9 @@ The Translation Table Manager (TTM)
 .. kernel-doc:: drivers/gpu/drm/ttm/ttm_module.c
    :doc: TTM
 
+.. kernel-doc:: include/drm/ttm/ttm_caching.h
+   :internal:
+
 The Graphics Execution Manager (GEM)
 ====================================
 
index 3c9dd65f5aaff854ae4bfa36e51bb3d37cfe4a32..235a743d90e1467c6b48f53734e53f931e34be0d 100644 (file)
 
 #define TTM_NUM_CACHING_TYPES  3
 
+/**
+ * enum ttm_caching - CPU caching and BUS snooping behavior.
+ */
 enum ttm_caching {
+       /**
+        * @ttm_uncached: Most defensive option for device mappings,
+        * don't even allow write combining.
+        */
        ttm_uncached,
+
+       /**
+        * @ttm_write_combined: Don't cache read accesses, but allow at least
+        * writes to be combined.
+        */
        ttm_write_combined,
+
+       /**
+        * @ttm_cached: Fully cached like normal system memory, requires that
+        * devices snoop the CPU cache on accesses.
+        */
        ttm_cached
 };