22 Apr, 2020

1 commit

  • drm-misc-next for 5.8:

    UAPI Changes:

    - drm: error out with EBUSY when device has existing master
    - drm: rework SET_MASTER and DROP_MASTER perm handling

    Cross-subsystem Changes:

    - mm: export two symbols from slub/slob
    - fbdev: savage: fix -Wextra build warning
    - video: omap2: Use scnprintf() for avoiding potential buffer overflow

    Core Changes:

    - Remove drm_pci.h
    - drm_pci_{alloc/free)() are now legacy
    - Introduce managed DRM resourcesA
    - Allow drivers to subclass struct drm_framebuffer
    - Introduce struct drm_afbc_framebuffer and helpers
    - fbdev: remove return value from generic fbdev setup
    - Introduce simple-encoder helper
    - vram-helpers: set fence on plane
    - dp_mst: ACT timeout improvements
    - dp_mst: Remove drm_dp_mst_has_audio()
    - TTM: ttm_trace_dma_{map/unmap}() cleanups
    - dma-buf: add flag for PCIP2P support
    - EDID: Various improvements
    - Encoder: cleanup semantics of possible_clones and possible_crtcs
    - VBLANK documentation updates
    - Writeback documentation updates

    Driver Changes:

    - Convert several drivers to i2c_new_client_device()
    - Drop explicit drm_mode_config_cleanup() calls from drivers
    - Auto-release device structures with drmm_add_final_kfree()
    - Init bfdev console after registering DRM device
    - Make various .debugfs functions return 0 unconditionally; ignore errors
    - video: Use scnprintf() to avoid buffer overflows
    - Convert drivers to simple encoders

    - drm/amdgpu: note that we can handle peer2peer DMA-buf
    - drm/amdgpu: add support for exporting VRAM using DMA-buf v3
    - drm/kirin: Revert change to register connectors
    - drm/lima: Add optional devfreq and cooling device support
    - drm/lima: Various improvements wrt. task handling
    - drm/panel: nt39016: Support multiple modes and 50Hz
    - drm/panel: Support Leadtek LTK050H3146W
    - drm/rockchip: Add support for afbc
    - drm/virtio: Various cleanups
    - drm/hisilicon/hibmc: Enforce 128-byte stride alignment
    - drm/qxl: Fix notify port address of cursor ring buffer
    - drm/sun4i: Improvements to format handling
    - drm/bridge: dw-hdmi: Various improvements

    Signed-off-by: Dave Airlie

    From: Thomas Zimmermann
    Link: https://patchwork.freedesktop.org/patch/msgid/20200414090738.GA16827@linux-uq9g

    Dave Airlie
     

09 Apr, 2020

1 commit

  • drm_local_map.offset is not only used for resource_size_t but also
    dma_addr_t which may be of different sizes.

    Reported-by: Nathan Chancellor
    Fixes: 8e4ff9b56957 ("drm: Remove the dma_alloc_coherent wrapper for internal usage")
    Tested-by: Nathan Chancellor # build
    Signed-off-by: Chris Wilson
    Cc: Dave Airlie
    Cc: Nathan Chancellor
    Cc: Linus Torvalds
    Signed-off-by: Daniel Vetter
    Link: https://patchwork.freedesktop.org/patch/msgid/20200402215926.30714-1-chris@chris-wilson.co.uk

    Chris Wilson
     

03 Apr, 2020

1 commit


05 Feb, 2020

1 commit

  • Internally for "consistent" maps, we create a temporary struct
    drm_dma_handle in order to use our own dma_alloc_coherent wrapper then
    destroy the temporary wrap. Simplify our logic by removing the temporary
    wrapper!

    Signed-off-by: Chris Wilson
    Reviewed-by: Alex Deucher
    Link: https://patchwork.freedesktop.org/patch/msgid/20200202171635.4039044-2-chris@chris-wilson.co.uk

    Chris Wilson
     

05 Dec, 2019

1 commit


28 May, 2019

1 commit

  • Do not require users of include/drm/drm_legacy.h to
    include other files just to let it build.

    Signed-off-by: Sam Ravnborg
    Acked-by: Daniel Vetter
    Cc: Maarten Lankhorst
    Cc: Maxime Ripard
    Cc: Sean Paul
    Cc: David Airlie
    Link: https://patchwork.freedesktop.org/patch/msgid/20190526173535.32701-3-sam@ravnborg.org

    Sam Ravnborg
     

24 Apr, 2019

1 commit


02 Jan, 2019

1 commit

  • Un-inline drm_legacy_findmap() to not depend on struct drm_device
    definition within drm_legacy.h, so that a forward declaration suffices.

    Also include drm_hashtab.h in drm_legacy.h to make it more
    self-contained. Make it easier to drop drmP.h includes.

    v2: avoid including drm_device.h by un-inlining (Daniel)

    [Updated commit message per Laurent's review while applying.]

    Cc: Sam Ravnborg
    Cc: Daniel Vetter
    Cc: Laurent Pinchart
    Reviewed-by: Daniel Vetter
    Reviewed-by: Laurent Pinchart
    Signed-off-by: Jani Nikula
    Link: https://patchwork.freedesktop.org/patch/msgid/20181228130446.22141-1-jani.nikula@intel.com

    Jani Nikula
     

28 Mar, 2018

1 commit


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