| @@ -53,7 +53,7 @@ extern "C" { · 52 unmodified lines |
| 53 | #define DRM_IVPU_PARAM_CORE_CLOCK_RATE 3 | 53 | #define DRM_IVPU_PARAM_CORE_CLOCK_RATE 3 |
| 54 | #define DRM_IVPU_PARAM_NUM_CONTEXTS 4 | 54 | #define DRM_IVPU_PARAM_NUM_CONTEXTS 4 |
| 55 | #define DRM_IVPU_PARAM_CONTEXT_BASE_ADDRESS 5 | 55 | #define DRM_IVPU_PARAM_CONTEXT_BASE_ADDRESS 5 |
| 56 | #define DRM_IVPU_PARAM_CONTEXT_PRIORITY 6 | 56 | #define DRM_IVPU_PARAM_CONTEXT_PRIORITY 6 /* Deprecated */ |
| 57 | #define DRM_IVPU_PARAM_CONTEXT_ID 7 | 57 | #define DRM_IVPU_PARAM_CONTEXT_ID 7 |
| 58 | #define DRM_IVPU_PARAM_FW_API_VERSION 8 | 58 | #define DRM_IVPU_PARAM_FW_API_VERSION 8 |
| 59 | #define DRM_IVPU_PARAM_ENGINE_HEARTBEAT 9 | 59 | #define DRM_IVPU_PARAM_ENGINE_HEARTBEAT 9 |
| @@ -64,11 +64,18 @@ extern "C" { · 4 unmodified lines |
| 64 | | 64 | |
| 65 | #define DRM_IVPU_PLATFORM_TYPE_SILICON 0 | 65 | #define DRM_IVPU_PLATFORM_TYPE_SILICON 0 |
| 66 | | 66 | |
| | 67 | /* Deprecated, use DRM_IVPU_JOB_PRIORITY */ |
| 67 | #define DRM_IVPU_CONTEXT_PRIORITY_IDLE 0 | 68 | #define DRM_IVPU_CONTEXT_PRIORITY_IDLE 0 |
| 68 | #define DRM_IVPU_CONTEXT_PRIORITY_NORMAL 1 | 69 | #define DRM_IVPU_CONTEXT_PRIORITY_NORMAL 1 |
| 69 | #define DRM_IVPU_CONTEXT_PRIORITY_FOCUS 2 | 70 | #define DRM_IVPU_CONTEXT_PRIORITY_FOCUS 2 |
| 70 | #define DRM_IVPU_CONTEXT_PRIORITY_REALTIME 3 | 71 | #define DRM_IVPU_CONTEXT_PRIORITY_REALTIME 3 |
| 71 | | 72 | |
| | 73 | #define DRM_IVPU_JOB_PRIORITY_DEFAULT 0 |
| | 74 | #define DRM_IVPU_JOB_PRIORITY_IDLE 1 |
| | 75 | #define DRM_IVPU_JOB_PRIORITY_NORMAL 2 |
| | 76 | #define DRM_IVPU_JOB_PRIORITY_FOCUS 3 |
| | 77 | #define DRM_IVPU_JOB_PRIORITY_REALTIME 4 |
| | 78 | |
| 72 | /** | 79 | /** |
| 73 | * DRM_IVPU_CAP_METRIC_STREAMER | 80 | * DRM_IVPU_CAP_METRIC_STREAMER |
| 74 | * | 81 | * |
| @@ -112,10 +119,6 @@ struct drm_ivpu_param { · 37 unmodified lines |
| 112 | * %DRM_IVPU_PARAM_CONTEXT_BASE_ADDRESS: | 119 | * %DRM_IVPU_PARAM_CONTEXT_BASE_ADDRESS: |
| 113 | * Lowest VPU virtual address available in the current context (read-only) | 120 | * Lowest VPU virtual address available in the current context (read-only) |
| 114 | * | 121 | * |
| 115 | * %DRM_IVPU_PARAM_CONTEXT_PRIORITY: | | |
| 116 | * Value of current context scheduling priority (read-write). | | |
| 117 | * See DRM_IVPU_CONTEXT_PRIORITY_* for possible values. | | |
| 118 | * | | |
| 119 | * %DRM_IVPU_PARAM_CONTEXT_ID: | 122 | * %DRM_IVPU_PARAM_CONTEXT_ID: |
| 120 | * Current context ID, always greater than 0 (read-only) | 123 | * Current context ID, always greater than 0 (read-only) |
| 121 | * | 124 | * |
| @@ -286,10 +289,23 @@ struct drm_ivpu_submit { · 164 unmodified lines |
| 286 | * to be executed. The offset has to be 8-byte aligned. | 289 | * to be executed. The offset has to be 8-byte aligned. |
| 287 | */ | 290 | */ |
| 288 | __u32 commands_offset; | 291 | __u32 commands_offset; |
| | 292 | |
| | 293 | /** |
| | 294 | * @priority: |
| | 295 | * |
| | 296 | * Priority to be set for related job command queue, can be one of the following: |
| | 297 | * %DRM_IVPU_JOB_PRIORITY_DEFAULT |
| | 298 | * %DRM_IVPU_JOB_PRIORITY_IDLE |
| | 299 | * %DRM_IVPU_JOB_PRIORITY_NORMAL |
| | 300 | * %DRM_IVPU_JOB_PRIORITY_FOCUS |
| | 301 | * %DRM_IVPU_JOB_PRIORITY_REALTIME |
| | 302 | */ |
| | 303 | __u32 priority; |
| 289 | }; | 304 | }; |
| 290 | | 305 | |
| 291 | /* drm_ivpu_bo_wait job status codes */ | 306 | /* drm_ivpu_bo_wait job status codes */ |
| 292 | #define DRM_IVPU_JOB_STATUS_SUCCESS 0 | 307 | #define DRM_IVPU_JOB_STATUS_SUCCESS 0 |
| | 308 | #define DRM_IVPU_JOB_STATUS_ABORTED 256 |
| 293 | | 309 | |
| 294 | /** | 310 | /** |
| 295 | * struct drm_ivpu_bo_wait - Wait for BO to become inactive | 311 | * struct drm_ivpu_bo_wait - Wait for BO to become inactive |