History

drm/msm/a6xx: Add a flag to allow preemption to submitqueue_create

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.

Antonino Maniscalco committed 2 years ago

Commit 7788d321 parent 35d36dc3 files · +15 −5Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/drm/msm_drm.h+4−1
@@ -347,7 +347,10 @@ struct drm_msm_gem_madvise { · 346 unmodified lines
347347 * backwards compatibility as a "default" submitqueue
348348 */
349349
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)
351354
352355 /*
353356 * The submitqueue priority should be between 0 and MSM_PARAM_PRIORITIES-1,