accel/ivpu: Document DRM_IVPU_PARAM_CAPABILITIES
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 10 Aug 2023 08:07:07 +0000 (10:07 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Fri, 11 Aug 2023 08:48:23 +0000 (10:48 +0200)
Add comments regarding new DRM_IVPU_PARAM_CAPABILITIES param.

Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230810080707.3545883-1-stanislaw.gruszka@linux.intel.com
include/uapi/drm/ivpu_accel.h

index a58a14c9f22285a35adbb0ded8f09f695b12f7a8..262db0c3beeea3c5e05c9470f1db061870b8b8a2 100644 (file)
@@ -69,8 +69,20 @@ extern "C" {
 #define DRM_IVPU_CONTEXT_PRIORITY_FOCUS            2
 #define DRM_IVPU_CONTEXT_PRIORITY_REALTIME  3
 
-#define DRM_IVPU_CAP_METRIC_STREAMER       1
-#define DRM_IVPU_CAP_DMA_MEMORY_RANGE       2
+/**
+ * DRM_IVPU_CAP_METRIC_STREAMER
+ *
+ * Metric streamer support. Provides sampling of various hardware performance
+ * metrics like DMA bandwidth and cache miss/hits. Can be used for profiling.
+ */
+#define DRM_IVPU_CAP_METRIC_STREAMER   1
+/**
+ * DRM_IVPU_CAP_DMA_MEMORY_RANGE
+ *
+ * Driver has capability to allocate separate memory range
+ * accessible by hardware DMA.
+ */
+#define DRM_IVPU_CAP_DMA_MEMORY_RANGE  2
 
 /**
  * struct drm_ivpu_param - Get/Set VPU parameters
@@ -123,6 +135,8 @@ struct drm_ivpu_param {
         * %DRM_IVPU_PARAM_SKU:
         * VPU SKU ID (read-only)
         *
+        * %DRM_IVPU_PARAM_CAPABILITIES:
+        * Supported capabilities (read-only)
         */
        __u32 param;