]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/exynos: g2d: let exynos_g2d_get_ver_ioctl fail
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Wed, 23 Jul 2014 14:57:13 +0000 (16:57 +0200)
committerInki Dae <inki.dae@samsung.com>
Mon, 4 Aug 2014 04:39:28 +0000 (13:39 +0900)
commitef7ce055a9e00f6376416466b996515a27b7cb31
treecfbd52dcaa4d239c24ebdc7ca4ee14ae464da2a3
parent1cd1ea565f3ece26dff3a94bf73e4f6caae140b9
drm/exynos: g2d: let exynos_g2d_get_ver_ioctl fail

Currently the DRM_IOCTL_EXYNOS_G2D_GET_VER ioctl always succeeds, even
if no G2D support is available. Let the ioctl fail when this is the
case, so that userspace can accurately probe for G2D support.

This also fixes the exynos tests in libdrm. There 'g2d_init' doesn't
fail when G2D is absent, leading to a segfault later.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: INki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c