22 Jun, 2016

1 commit

  • Also extract drm_auth.h for nicer grouping.

    v2: Nuke the other comments since they don't really explain a lot, and
    within the drm core we generally only document functions exported to
    drivers: The main audience for these docs are driver writers.

    v3: Limit the exposure of drm_master internals by only including
    drm_auth.h where it is neede (Chris).

    v4: Spelling polish (Emil).

    Cc: Chris Wilson
    Reviewed-by: Chris Wilson
    Reviewed-by: Emil Velikov
    Signed-off-by: Daniel Vetter

    Daniel Vetter
     

27 Apr, 2016

1 commit

  • And again make sure it's a no-op for modern drivers. Another case of
    dev->struct_mutex gone for modern drivers!

    Note that the entirety of the legacy addmap interface is now protected
    by DRIVER_MODESET. Note that just auditing kernel code is not enough,
    since userspace loves to set up legacy maps on it's own for various
    things - with ums userspace and kernel space share control over
    resources.

    v2: Also add a DRIVER_* check like for all other maps functions to
    really short-circuit the code. And give drm_legacy_rmmap used by the
    dev unregister code the same treatment.

    v3:
    - remove redundant return; (Alex, Chris)
    - don't special case nouveau with DRIVER_KMS_LEGACY_CONTEXT.

    v4: Again special case nouveau. The problem is not directly in the
    ddx, but that it calls dri1 functions from the X server. And those do
    call drmAddMap. Fixed only in

    commit b1a630b48210d6a3c44994fce1b73273000ace5c
    Author: Dave Airlie
    Date: Wed Nov 7 14:45:14 2012 +1000

    nouveau: drop DRI1 device open interface.

    Acked-by: Alex Deucher
    Reviewed-by: Chris Wilson
    Cc: Alex Deucher
    Cc: Chris Wilson
    Signed-off-by: Daniel Vetter
    Link: http://patchwork.freedesktop.org/patch/msgid/1461741618-12679-1-git-send-email-daniel.vetter@ffwll.ch

    Daniel Vetter
     

24 Sep, 2014

1 commit

  • Now that we've removed the copypasted users in gem/ttm we can
    relegate the legacy buffer mapping support to where it belongs.
    Also give it the proper drm_legacy_ prefix.

    While at it statify drm_mmap_locked, somehow I've missed that in my
    previous header rework.

    Signed-off-by: Daniel Vetter
    Reviewed-by: David Herrmann
    Acked-by: Alex Deucher
    Signed-off-by: Dave Airlie

    Daniel Vetter
     

12 Sep, 2014

5 commits