]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Turn off Legacy Context Functions
authorPeter Antoine <peter.antoine@intel.com>
Tue, 23 Jun 2015 07:18:49 +0000 (08:18 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Jul 2015 15:00:47 +0000 (17:00 +0200)
commitf226ba4b6bb41d7377d2cd85a20c098ce2109001
treea70a0c2320b589e2e7ae75b49f6acdc58a7ced5f
parent73a8e9d080a12bb40d980af460907bf1f3ded690
drm: Turn off Legacy Context Functions

The context functions are not used by the i915 driver and should not
be used by modeset drivers. These driver functions contain several bugs
and security holes. This change makes these functions optional can be
turned on by a setting, they are turned off by default for modeset
driver with the exception of the nouvea driver that may require them with
an old version of libdrm.

The previous attempt was

commit 9037fcec8a631383bfa6c3f8f62ccb2dd05f286f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Aug 8 15:41:21 2013 +0200

    drm: mark context support as a legacy subsystem

but this had to be reverted

commit 746895f297cbc9e300c871cf380b6194e6251481
Author: Dave Airlie <airlied@redhat.com>
Date:   Fri Sep 20 08:32:59 2013 +1000

    Revert "drm: mark context support as a legacy subsystem"

v2: remove returns from void function, and formatting (Daniel Vetter)

v3:
- s/Nova/nouveau/ in the commit message, and add references to the
  previous attempts
- drop the part touching the drm hw lock, that should be a separate
  patch.

Signed-off-by: Peter Antoine <peter.antoine@intel.com> (v2)
Cc: Peter Antoine <peter.antoine@intel.com> (v2)
Reviewed-by: Peter Antoine <peter.antoine@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_context.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/nouveau/nouveau_drm.c
include/drm/drmP.h