Re: [RFC] drm: Allow DRM_IOCTL_MODE_MAP_DUMB for render nodes

From: Martin Fuzzey
Date: Tue Aug 07 2018 - 05:18:32 EST


On 06/08/18 21:05, Rob Herring wrote:
On Fri, Aug 3, 2018 at 1:50 PM Sean Paul <seanpaul@xxxxxxxxxxxx> wrote:
Fwiw, I'd lean towards allowing DUMB allocation from the render nodes. I
understand it limits use cases that are undesirable, but it is also limiting
usecases that are desirable. So, given that people are going to get "creative"
regardless of how many safety railings we put up, we shouldn't make things
unnecessarily hard on other trying to Get Work Done.
The problem with using render nodes is what if there isn't one? We
require VGEM (and make VGEM allow dumb buffers) in that case?

Try to open the render node and fall back to the card node if it doesn't exist?

AFAICT VGEM doesn't provide contiguous buffers so it won't work for the imx-drm case.


Regards,

Martin