1. 09 Jun, 2016 8 commits
    • Boris Brezillon's avatar
      drm: mediatek: Rely on the default ->best_encoder() behavior · eefcf834
      Boris Brezillon authored
      We have a 1:1 relationship between connectors and encoders and the
      driver is relying on the atomic helpers: we can drop the custom
      ->best_encoder() implementation and let the core call
      drm_atomic_helper_best_encoder() for us.
      Signed-off-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
      Reviewed-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/1465300095-16971-8-git-send-email-boris.brezillon@free-electrons.com
      eefcf834
    • Lukas Wunner's avatar
      drm: Remove dev_pm_ops from drm_class · d14d2a84
      Lukas Wunner authored
      The PM core introduced the ability to keep devices runtime suspended
      during the entire system suspend/resume process with commit aae4518b
      ("PM / sleep: Mechanism to avoid resuming runtime-suspended devices
      unnecessarily"). Before this so-called "direct-complete" procedure was
      introduced, devices were always runtime resumed only to be immediately
      put to sleep again using their ->suspend hook. Direct-complete is
      enabled by returning a positive value from the ->prepare hook. The PCI
      core usually does this automatically.
      
      Direct-complete is only available for a device if all children use it as
      well. Currently we cannot support direct-complete for DRM drivers
      because the DRM core automatically registers multiple DRM minors which
      belong to device class drm_class, and drm_class uses a struct dev_pm_ops
      which lacks the ->prepare callback.
      
      While this could be solved by adding the missing ->prepare callback,
      closer inspection shows that there are no DRM drivers left which declare
      the legacy ->suspend and ->resume callbacks in their drm_driver struct.
      The last ones to remove them were i915 with commit 1751fcf9
      ("drm/i915: Fix module initialisation, v2.") and exynos with commit
      e7fefb1d ("drm/exynos: remove legacy ->suspend()/resume()").
      
      Consequently the struct dev_pm_ops of drm_class is now dead code. Remove
      it. If no dev_pm_ops is declared for a device, the PM core automatically
      enables direct-complete for it, thereby making that mechanism available
      to the parent DRM PCI devices.
      Signed-off-by: default avatarLukas Wunner <lukas@wunner.de>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Link: http://patchwork.freedesktop.org/patch/msgid/da848fcd5ca72a35d9a722e644719977a47bb7ba.1465382836.git.lukas@wunner.de
      d14d2a84
    • Dave Airlie's avatar
      Merge tag 'omapdrm-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux into drm-next · 3c85f20a
      Dave Airlie authored
      omapdrm changes for 4.8
      
      * Update MAINTAINERS file for omapdrm and tilcdc
      * PLL refactoring to allow versatile use of the PLL clocks
      * Public omapdss header refactoring to separate omapfb and omapdrm
      * Gamma table support
      * Support reset GPIO and vcc regulator in omapdrm's panel-dpi
      * Minor cleanups
      
      * tag 'omapdrm-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux: (69 commits)
        drm/omapdrm: Implement gamma_lut atomic crtc properties
        drm/omapdrm: Workaround for errata i734 (LCD1 Gamma) in DSS dispc
        drm/omapdrm: Add gamma table support to DSS dispc
        drm: drm_helper_crtc_enable_color_mgmt() => drm_crtc_enable_color_mgmt()
        drm/omap: rename panel/encoder Kconfig names
        drm: omapdrm: add DSI mapping
        drm: omapdrm: Remove unused omap_framebuffer_bo function
        drm: omapdrm: Remove unused omap_gem_tiled_size function
        drm: omapdrm: panel-lgphilips-lb035q02: Remove unused backlight GPIO
        drm/omap: panel-dpi: implement support for a vcc regulator
        drm/omap: panel-dpi: make (limited) use of a reset gpio
        devicetree/bindings: add reset-gpios and vcc-supply for panel-dpi
        MAINTAINERS: Add maintainer for TI LCDC DRM driver
        MAINTAINERS: Add maintainer for OMAP DRM driver
        drm/omap: fix pitch round-up
        drm/omap: remove align_pitch()
        drm/omap: remove unnecessary pitch round-up
        drm/omap: remove unneeded gpio includes
        drm/omap: Remove the video/omapdss.h and move it's content to local header file
        [media] omap_vout: Switch to use the video/omapfb_dss.h header file
        ...
      3c85f20a
    • Dave Airlie's avatar
      Merge branch 'virtio-gpu-for-airlied' of git://git.kraxel.org/linux into drm-next · 76c6dccf
      Dave Airlie authored
      Virtio-gpu updates
      
      * 'virtio-gpu-for-airlied' of git://git.kraxel.org/linux:
        virtio-gpu: use src not crtc
        virtio-gpu: pick up hotspot from framebuffer
        add cursor hotspot to drm_framebuffer
        virtio-gpu: switch to atomic cursor interfaces
        virtio-gpu: add atomic_commit function
        virtio-gpu: fix output lookup
      76c6dccf
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-2016-06-06' of git://anongit.freedesktop.org/drm-intel into drm-next · 5b735940
      Dave Airlie authored
      - some polish for the guc code (Dave Gordon)
      - big refactoring of gen9 display clock handling code (Ville)
      - refactoring work in the context code (Chris Wilson)
      - give encoder/crtc/planes useful names for debug output (Ville)
      - improvements to skl/kbl wm computation code (Mahesh Kumar)
      - bunch of smaller improvements all over as usual
      
      * tag 'drm-intel-next-2016-06-06' of git://anongit.freedesktop.org/drm-intel: (64 commits)
        drm/i915: Update DRIVER_DATE to 20160606
        drm/i915: Extract physical display dimensions from VBT
        drm/i915: Silence "unexpected child device config size" for VBT on 845g
        drm/i915/skl+: Use scaling amount for plane data rate calculation (v4)
        drm/i915/skl+: calculate plane pixel rate (v4)
        drm/i915/skl+: calculate ddb minimum allocation (v6)
        drm/i915: Don't try to calculate relative data rates during hw readout
        drm/i915: Only ignore eDP ports that are connected
        drm/i915: Update GEN6_PMINTRMSK setup with GuC enabled
        drm/i915: kill STANDARD/CURSOR plane screams
        drm/i915: Give encoders useful names
        drm/i915: Give meaningful names to all the planes
        drm/i915: Don't leak primary/cursor planes on crtc init failure
        drm/i915: Set crtc->name to "pipe A", "pipe B", etc.
        drm/i915: Use plane->name in debug prints
        drm/i915: Use crtc->name in debug messages
        drm/i915: Reject modeset if the dotclock is too high
        drm/i915: Fix NULL pointer deference when out of PLLs in IVB
        drm/i915/ilk: Don't disable SSC source if it's in use
        drm/i915/bxt: Sanitize CDCLK to fix breakage during S4 resume
        ...
      5b735940
    • Dave Airlie's avatar
      Merge tag 'topic/drm-misc-2016-06-07' of git://anongit.freedesktop.org/drm-intel into drm-next · 2cca4557
      Dave Airlie authored
      As promised, piles of prep work all around:
      - drm_atomic_state rework, prep for nonblocking commit helpers
      - fence patches from Gustavo and Christian to prep for atomic fences and
        some cool work in ttm/amdgpu from Christian
      - drm event prep for both nonblocking commit and atomic fences
      - Gustavo seems on a crusade against the non-kms-native version of the
        vblank functions.
      - prep work from Boris to nuke all the silly ->best_encoder
        implementations we have (we really only need that for truly dynamic
        cases like dvi-i vs dvi-d or dp mst selecting the right transcoder on
        intel)
      - prep work from Laurent to rework the format handling functions
      - and few small things all over
      
      * tag 'topic/drm-misc-2016-06-07' of git://anongit.freedesktop.org/drm-intel: (47 commits)
        drm/dsi: Implement set tear scanline
        drm/fb_cma_helper: Implement fb_mmap callback
        drm/qxl: Remove useless drm_fb_get_bpp_depth() call
        drm/ast: Remove useless drm_fb_get_bpp_depth() call
        drm/atomic: Fix remaining places where !funcs->best_encoder is valid
        drm/core: Change declaration for gamma_set.
        Documentation: add fence-array to kernel DocBook
        drm/shmobile: use drm_crtc_vblank_{get,put}()
        drm/radeon: use drm_crtc_vblank_{get,put}()
        drm/qxl: use drm_crtc_vblank_{get,put}()
        drm/atmel: use drm_crtc_vblank_{get,put}()
        drm/armada: use drm_crtc_vblank_{get,put}()
        drm/amdgpu: use drm_crtc_vblank_{get,put}()
        drm/virtio: use drm_crtc_send_vblank_event()
        drm/udl: use drm_crtc_send_vblank_event()
        drm/qxl: use drm_crtc_send_vblank_event()
        drm/atmel: use drm_crtc_send_vblank_event()
        drm/armada: use drm_crtc_send_vblank_event()
        drm/doc: Switch to sphinx/rst fixed-width quoting
        drm/doc: Drop kerneldoc for static functions in drm_irq.c
        ...
      2cca4557
    • Dave Airlie's avatar
      Merge tag 'topic/lockless-gem-bo-freeing-2016-06-01' of... · bb4cec02
      Dave Airlie authored
      Merge tag 'topic/lockless-gem-bo-freeing-2016-06-01' of git://anongit.freedesktop.org/drm-intel into drm-next
      
      lockless gem bo freeing patches (and the oddball related patch) for all
      the drivers who's maintainers are asleep at the helm - includes you ;-)
      
      I based this on top of drm-fixes to include Chris' fix for the cma issue.
      
      * tag 'topic/lockless-gem-bo-freeing-2016-06-01' of git://anongit.freedesktop.org/drm-intel: (21 commits)
        drm/arcpgu: Use lockless gem BO free callback
        drm/sun4i: Use lockless gem BO free callback
        drm/omapdrm: Nuke dummy fb->dirty callback
        drm/msm: Nuke dummy fb->dirty callback
        drm/rockchip: Use cma gem vm ops
        drm/sti: Use lockless gem BO free callback
        drm: sti: remove useless call to dev->struct_mutex
        drm/virtio: Use lockless gem BO free callback
        drm/tilcdc: Use lockless gem BO free callback
        drm/shmob: Use lockless gem BO free callback
        drm/rockchip: Use lockless gem BO free callback
        drm/rcar-du: Use lockless gem BO free callback
        drm/qxl: Use lockless gem BO free callback
        drm/nouveau: Use lockless gem BO free callback
        drm/mga200g: Use lockless gem BO free callback
        drm/fls-dcu: Use lockless gem BO free callback
        drm/cirrus: Use lockless gem BO free callback
        drm/bochs: Use lockless gem BO free callback
        drm/atmel: Use lockless gem BO free callback
        drm/ast: Use lockless gem BO free callback
        ...
      bb4cec02
    • Dave Airlie's avatar
      Backmerge tag 'v4.7-rc2' into drm-next · fa625c19
      Dave Airlie authored
      Daniel has a pull request that relies on stuff in fixes that are in rc2.
      fa625c19
  2. 07 Jun, 2016 17 commits
  3. 06 Jun, 2016 15 commits