Re: [PATCH] drm: Allow CAP_DUMB_BUFFERS on !MODESET

2018-05-08 Thread Ezequiel Garcia
On Mon, 2018-05-07 at 11:36 +0200, Maarten Lankhorst wrote: > Op 04-05-18 om 16:25 schreef Ezequiel Garcia: > > It's perfectly possible to get dumb buffers out of drivers > > that don't support modeset. This is the case of vgem, > > which can be used to export dmabuf to run various tests. > > There

Re: [PATCH] drm: Allow CAP_DUMB_BUFFERS on !MODESET

2018-05-07 Thread Maarten Lankhorst
Op 04-05-18 om 16:25 schreef Ezequiel Garcia: > It's perfectly possible to get dumb buffers out of drivers > that don't support modeset. This is the case of vgem, > which can be used to export dmabuf to run various tests. > Therefore, move the dumb buffer capability check before > the mode set chec

[PATCH] drm: Allow CAP_DUMB_BUFFERS on !MODESET

2018-05-05 Thread Ezequiel Garcia
It's perfectly possible to get dumb buffers out of drivers that don't support modeset. This is the case of vgem, which can be used to export dmabuf to run various tests. Therefore, move the dumb buffer capability check before the mode set check. Inspired by commit f3f4c4d68a28 ("drm: Allow CAP_PRI