]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/mode: Add user blob-creation ioctl
authorDaniel Stone <daniels@collabora.com>
Fri, 22 May 2015 12:34:51 +0000 (13:34 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 22 May 2015 14:18:28 +0000 (16:18 +0200)
commite2f5d2ea479b9b2619965d43db70939589afe43a
treefa661151f473b93492dfb40c968d6674d1ca66a6
parent10e8cb7e79391071b950a28a4d85790dd38fb714
drm/mode: Add user blob-creation ioctl

Add an ioctl which allows users to create blob properties from supplied
data. Currently this only supports modes, creating a drm_display_mode from
the userspace drm_mode_modeinfo.

v2: Removed size/type checks.
    Rebased on new patches to allow error propagation from create_blob,
    as well as avoiding double-allocation.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@intel.com>
Tested-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_ioctl.c
include/drm/drmP.h
include/drm/drm_crtc.h
include/uapi/drm/drm.h
include/uapi/drm/drm_mode.h