[PATCH 0/6] drm: Ioctl code cleanups

Daniel Vetter daniel at ffwll.ch
Fri Mar 27 08:09:39 PDT 2015


On Fri, Mar 27, 2015 at 03:51:54PM +0200, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> In response to a recently noticed fumble with some i915 ioctls, I
> proceeded to read the ioctl code again and didn't really like what
> I saw. So I tried to clean it up a bit to make it less confusing.
> 
> grep also tells me the drm_ioctl pattern has been dutifully copied
> into amdkfd so it could perhaps use the same treatment too, but I
> don't have much interest in going there so left it alone.
> 
> Ville Syrjälä (6):
>   drm: Fix DRM_IOCTL_DEF_DRV()
>   drm: Drop ioctl->cmd_drv
>   drm/vmwgfx: Replace VMW_IOCTL_DEF with DRM_IOCTL_DEF_DRV
>   drm: Simplify core vs. drv ioctl handling
>   drm: Use max() to make the ioctl alloc size code cleaner
>   drm: Rewrite drm_ioctl_flags() to resemble the new drm_ioctl() code

Merged all except the pure vmwgfx one to drm-misc, thanks. If Thomas wants
I can pull that one in too.
-Daniel

> 
>  drivers/gpu/drm/drm_ioctl.c         |  53 ++++++--------
>  drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 136 +++++++++++++++++-------------------
>  include/drm/drmP.h                  |   3 +-
>  3 files changed, 87 insertions(+), 105 deletions(-)
> 
> -- 
> 2.0.5
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the dri-devel mailing list