Hi Danilo,

Thanks for doing this.

I spoke with Gary about this topic at Kangrejos and again a couple of weeks
ago. What worries me is that we might introduce some restrictions that might
paint us into a corner. IOW: we have significant downstream work, and I wonder
whether it will work with this series after whatever refactors are needed.

To start with, Alvin's VM_BIND ioctl series [0] will need some changes, since 
it keeps
the VM pool in the file data. I think this is doable if we move the pool into
the registration data and have each file hold only an index to its own entry?
i.e.: something like an XArray<Pool<Vm>> indexed by a number associated with
the drm::File. Same for the group pool later. Is this what you had in mind?

Anything storing a KernelBo will also have to be outside of the file data,
IIUC, since it now stores a &Vm. Also, downstream we defer KernelBo drops to
a workqueue, because they can happen in the fence signalling path. I suppose
we can keep doing that using ScopedWork/ScopedQueue?


— Daniel


[0]: 
https://lore.kernel.org/rust-for-linux/[email protected]/T/#t

Reply via email to