[PATCH 4/6] drm/cma-helper: Support DRM_MODE_DUMB_KERNEL_MAP flag
Rob Herring
robh at kernel.org
Tue Oct 22 19:52:29 UTC 2019
On Tue, Oct 22, 2019 at 6:40 AM Geert Uytterhoeven <geert at linux-m68k.org> wrote:
>
> Hi Laurent,
>
> On Tue, Oct 22, 2019 at 1:30 PM Laurent Pinchart
> <laurent.pinchart at ideasonboard.com> wrote:
> > On Mon, Oct 21, 2019 at 04:45:48PM -0500, Rob Herring wrote:
>
> > > --- a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c
> > > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c
> > > @@ -419,6 +419,7 @@ int rockchip_gem_dumb_create(struct drm_file *file_priv,
> > > * align to 64 bytes since Mali requires it.
> > > */
> > > args->pitch = ALIGN(min_pitch, 64);
> > > + args->flags = DRM_MODE_DUMB_KERNEL_MAP;
> > > args->size = args->pitch * args->height;
> >
> > My OCD gets triggered by flags appearing in the middle here while it is
> > at the end in other drivers :-)
>
> ... while "flags" appears before "pitch" and "size" in the actual struct
> definition... Aaarghl ;-)
There was some reasoning here as my CMA helper conversion patch is
going to insert code between flags and size.
But to keep everyone's OCD in check, I can set flags first.
Rob
More information about the dri-devel
mailing list