Re: [PATCH v3] drm: Add UAPI for the Asahi driver

Alyssa Rosenzweig
2025-03-23T21:44:32Z

> > > +struct drm_asahi_queue_create {
> > > +    /** @flags: MBZ */
> > > +    __u32 flags;
> > > +
> > > +    /** @vm_id: The ID of the VM this queue is bound to */
> > > +    __u32 vm_id;
> > > +
> > > +    /** @queue_caps: Bitmask of DRM_ASAHI_QUEUE_CAP_* */
> > > +    __u32 queue_caps;
> > > +
> > > +    /** @priority: Queue priority, 0-3 */
> > > +    __u32 priority;
>
> Is one of these priorities REALTIME and only usable by privileged apps? If so, maybe document that and/or have an enum?

Actually, I've reserved realtime&high but always deny right now to make
sure Mesa doesn't assume it can use them, then we can relax in the
future once the kernel permission gating is there. (Needs rust
bindings.)