Allow the user to set a queue priority levels: 0 - normal low - most apps (maps to MES AMD_PRIORITY_LEVEL_NORMAL) 1 - low - background jobs (maps to MES AMD_PRIORITY_LEVEL_LOW) 2 - normal high - apps that need relative high (maps to MES AMD_PRIORITY_LEVEL_MEDIUM) 3 - high (admin only - for compositors) (maps to MES AMD_PRIORITY_LEVEL_HIGH)
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -329,6 +329,15 @@ union drm_amdgpu_ctx { · 328 unmodified lines | ||
| 329 | 329 | #define AMDGPU_USERQ_OP_CREATE 1 |
| 330 | 330 | #define AMDGPU_USERQ_OP_FREE 2 |
| 331 | 331 | |
| 332 | +/* queue priority levels */ | |
| 333 | +/* low < normal low < normal high < high */ | |
| 334 | +#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_MASK 0x3 | |
| 335 | +#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_SHIFT 0 | |
| 336 | +#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_NORMAL_LOW 0 | |
| 337 | +#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_LOW 1 | |
| 338 | +#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_NORMAL_HIGH 2 | |
| 339 | +#define AMDGPU_USERQ_CREATE_FLAGS_QUEUE_PRIORITY_HIGH 3 /* admin only */ | |
| 340 | + | |
| 332 | 341 | /* |
| 333 | 342 | * This structure is a container to pass input configuration |
| 334 | 343 | * info for all supported userqueue related operations. |