Some userspace changes are necessary so add a flag for userspace to advertise support for preemption when creating the submitqueue. When this flag is not set preemption will not be allowed in the middle of the submitted IBs therefore mantaining compatibility with older userspace. The flag is rejected if preemption is not supported on the target, this allows userspace to know whether preemption is supported.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -347,7 +347,10 @@ struct drm_msm_gem_madvise { · 346 unmodified lines | ||
| 347 | 347 | * backwards compatibility as a "default" submitqueue |
| 348 | 348 | */ |
| 349 | 349 | |
| 350 | −#define MSM_SUBMITQUEUE_FLAGS (0) | |
| 350 | +#define MSM_SUBMITQUEUE_ALLOW_PREEMPT 0x00000001 | |
| 351 | +#define MSM_SUBMITQUEUE_FLAGS ( \ | |
| 352 | + MSM_SUBMITQUEUE_ALLOW_PREEMPT | \ | |
| 353 | + 0) | |
| 351 | 354 | |
| 352 | 355 | /* |
| 353 | 356 | * The submitqueue priority should be between 0 and MSM_PARAM_PRIORITIES-1, |