1. 26 4月, 2016 10 次提交
  2. 22 4月, 2016 16 次提交
    • D
      drm/modes: stop handling framebuffer special · 027b3f8b
      Dave Airlie 提交于
      Since ref counting is in the object now we can just call the
      normal interfaces.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      027b3f8b
    • D
      drm/modes: reduce fb_lock to just protecting lists · 2ddea3fd
      Dave Airlie 提交于
      This reduces the fb_lock to just protecting the num_fb/fb_list.
      
      "Previously fb refcounting, and especially the weak reference
      (kref_get_unless_zero) used in fb lookups have been protected by fb_lock.
      But with the refactoring to share refcounting in the drm_mode_object base
      class that switched to being protected by idr_mutex, which means fb_lock
      critical sections can be reduced."
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      2ddea3fd
    • D
      drm/modes: move reference taking into object lookup. · 72fe90b8
      Dave Airlie 提交于
      When we lookup an ref counted object we now take a proper reference
      using kref_get_unless_zero.
      
      Framebuffer lookup no longer needs do this itself.
      
      Convert rmfb to using framebuffer lookup and deal with the fact
      it now gets an extra reference that we have to cleanup. This should
      mean we can avoid holding fb_lock across rmfb. (if I'm wrong let me
      know).
      
      We also now only hold the fbs_lock around the list manipulation.
      
      "Previously fb refcounting, and especially the weak reference
      (kref_get_unless_zero) used in fb lookups have been protected by fb_lock.
      But with the refactoring to share refcounting in the drm_mode_object base
      class that switched to being protected by idr_mutex, which means fb_lock
      critical sections can be reduced."
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      72fe90b8
    • D
      drm/mode: reduce lock hold in addfb2 · c7e1c59a
      Dave Airlie 提交于
      No need to hold the lock while assigning the variable.
      
      Daniel wrote:
      "Not sure why exactly I put that under the lock, but the only thing that
      can race here is rmfb while addfb2 is still doing it's thing, with a
      correctly guess (easy to do since they're fully deterministic) fb_id."
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      c7e1c59a
    • D
      drm/mode: reduce scope of fb_lock in framebuffer init · 9cd47424
      Dave Airlie 提交于
      We don't need to hold the fb lock around the initialisation,
      only around the list manipulaton.
      
      So do the lock hold only around the register for now.
      
      From Daniel:
      Previously fb refcounting, and especially the weak reference
      (kref_get_unless_zero) used in fb lookups have been protected by fb_lock.
      But with the refactoring to share refcounting in the drm_mode_object base
      class that switched to being protected by idr_mutex, which means fb_lock
      critical sections can be reduced.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      9cd47424
    • D
      drm/mode: use _object_find to find framebuffers. · cee26ac4
      Dave Airlie 提交于
      No point have this code dupliated at this point, use the
      _object_find code instead now.
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      cee26ac4
    • D
      drm/mode: move framebuffer reference into object. · d0f37cf6
      Dave Airlie 提交于
      This is the initial code to add references to some mode objects.
      In the future we need to start reference counting connectors so
      firstly I want to reorganise the code so the framebuffer ref counting
      uses the same paths.
      
      This patch shouldn't change any functionality, just moves the kref.
      
      [airlied: move kerneldoc as well]
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      d0f37cf6
    • D
      drm/mode: introduce wrapper to read framebuffer refcount. · 747a598f
      Dave Airlie 提交于
      Avoids drivers knowing where the kref is stored.
      
      [airlied: add kerneldoc]
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      747a598f
    • D
      drm/modes: drop __drm_framebuffer_unregister. · 19ab3f8b
      Dave Airlie 提交于
      Just use the generic function.
      
      The main side effect of this is that the fb->base.id
      is now protected by the idr mutex as well.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      19ab3f8b
    • D
      drm/mode: move framebuffer_free up above framebuffer_init · f55f1f91
      Dave Airlie 提交于
      A later patch will use it in framebuffer_init, and I want
      to keep the diff cleaner.
      Acked-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      f55f1f91
    • D
      drm/mode: rework drm_mode_object_put to drm_mode_object_unregister. · 7c8f6d25
      Dave Airlie 提交于
      This changes the code to handle being called multiple times without
      side effects. The new names seems more suitable for what it does.
      Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      7c8f6d25
    • D
      Merge branch 'drm-atmel-hlcdc-devel' of https://github.com/bbrezillon/linux-at91 into drm-next · 9a297b36
      Dave Airlie 提交于
      This PR contains several improvement and cleanup patches for the
      atmel-hlcdc driver to be applied on drm-next (targeting 4.7).
      
      * 'drm-atmel-hlcdc-devel' of https://github.com/bbrezillon/linux-at91:
        drm: atmel-hlcdc: route DMA accesses through AHB interfaces
        drm: atmel-hlcdc: check display mode validity in crtc->mode_fixup()
        drm: atmel-hlcdc: rework the output code to support drm bridges
        drm: atmel-hlcdc: move output mode selection in CRTC implementation
        drm: atmel-hlcdc: support extended timing ranges on sama5d4 and sama5d2
        drm: atmel-hlcdc: remove leftovers from atomic mode setting migration
        drm: atmel-hlcdc: fix connector and encoder types
        drm: atmel-hlcdc: support asynchronous atomic commit operations
        drm: atmel-hlcdc: add a ->cleanup_fb() operation
      9a297b36
    • D
      Merge tag 'drm-intel-next-2016-04-11' of git://anongit.freedesktop.org/drm-intel into drm-next · 605b28c8
      Dave Airlie 提交于
      - make modeset hw state checker atomic aware (Maarten)
      - close races in gpu stuck detection/seqno reading (Chris)
      - tons&tons of small improvements from Chris Wilson all over the gem code
      - more dsi/bxt work from Ramalingam&Jani
      - macro polish from Joonas
      - guc fw loading fixes (Arun&Dave)
      - vmap notifier (acked by Andrew) + i915 support by Chris Wilson
      - create bottom half for execlist irq processing (Chris Wilson)
      - vlv/chv pll cleanup (Ville)
      - rework DP detection, especially sink detection (Shubhangi Shrivastava)
      - make color manager support fully atomic (Maarten)
      - avoid livelock on chv in execlist irq handler (Chris)
      
      * tag 'drm-intel-next-2016-04-11' of git://anongit.freedesktop.org/drm-intel: (82 commits)
        drm/i915: Update DRIVER_DATE to 20160411
        drm/i915: Avoid allocating a vmap arena for a single page
        drm,i915: Introduce drm_malloc_gfp()
        drm/i915/shrinker: Restrict vmap purge to objects with vmaps
        drm/i915: Refactor duplicate object vmap functions
        drm/i915: Consolidate common error handling in intel_pin_and_map_ringbuffer_obj
        drm/i915/dmabuf: Tighten struct_mutex for unmap_dma_buf
        drm/i915: implement WaClearTdlStateAckDirtyBits
        drm/i915/bxt: Reversed polarity of PORT_PLL_REF_SEL bit
        drm/i915: Rename hw state checker to hw state verifier.
        drm/i915: Move modeset state verifier calls.
        drm/i915: Make modeset state verifier take crtc as argument.
        drm/i915: Replace manual barrier() with READ_ONCE() in HWS accessor
        drm/i915: Use simplest form for flushing the single cacheline in the HWS
        drm/i915: Harden detection of missed interrupts
        drm/i915: Separate out the seqno-barrier from engine->get_seqno
        drm/i915: Remove forcewake dance from seqno/irq barrier on legacy gen6+
        drm/i915: Fixup the free space logic in ring_prepare
        drm/i915: Simplify check for idleness in hangcheck
        drm/i915: Apply a mb between emitting the request and hangcheck
        ...
      605b28c8
    • D
      Merge tag 'v4.6-rc3' into drm-next · 49047962
      Dave Airlie 提交于
      Backmerge 4.6-rc3 for i915.
      
      Linux 4.6-rc3
      49047962
    • D
      Merge tag 'topic/drm-misc-2016-04-21' of git://anongit.freedesktop.org/drm-intel into drm-next · d57d4773
      Dave Airlie 提交于
      misc pull req all over. Biggest thing is the
      drm_connector_(un)register_all cleanup from Alexey for drivers without the
      load/unload midlayer hooks. I.e. all the new ones, and a bunch of the
      pending new atomic drivers depend upon this. Or at least I asked them to
      rebase ;-)
      
      * tag 'topic/drm-misc-2016-04-21' of git://anongit.freedesktop.org/drm-intel:
        drm: Make drm.debug parameter description more helpful
        drm: Remove warning from drm_connector_unregister_all()
        drm: probe_helper: Hide ugly ifdef
        drm: rcar-du: Use generic drm_connector_register_all() helper
        drm: atmel_hldc: Use generic drm_connector_register_all() helper
        drm: Introduce drm_connector_register_all() helper
        drm: fix lut value extraction function
        drm/atomic-helper: Print an error if vblank wait times out
        drm/dp/mst: Restore primary hub guid on resume
        drm: Release driver references to handle before making it available again
        drm/i915/dp/mst: Add source port info to debugfs output
        drm/dp/mst: Enhance DP MST debugfs output
        drm/edid: Add drm_edid_get_monitor_name()
        include/drm: Reword debug categories comment.
        drm/crtc_helper: Reset empty plane state in drm_helper_crtc_mode_set_base()
        drm/virtio: Drop dummy gamma table support
        drm/bochs: Drop fake gamma support
        drm/core: Fix ordering in drm_mode_config_cleanup.
      d57d4773
    • D
      Merge tag 'topic/struct_mutex-2016-04-21' of git://anongit.freedesktop.org/drm-intel into drm-next · f230ffa1
      Dave Airlie 提交于
      struct_mutex cleanups and error paths fixes. Unfortunately I didn't manage
      to get acks from everyone, but this stuff has been hanging out for months
      now and imo simple enough to just land the remaining few patches. But
      separate pull request so that you can take a look yourself.
      
      * tag 'topic/struct_mutex-2016-04-21' of git://anongit.freedesktop.org/drm-intel:
        drm/vma_manage: Drop has_offset
        drm/vgem: Drop dev->struct_mutex
        drm/vgem: Move get_pages to gem_create
        drm/vgem: Simplify dumb_map
        drm/exynos: drop struct_mutex from fbdev setup
        drm/exynos: drop struct_mutex from exynos_drm_gem_get_ioctl
        drm/exynos: drop struct_mutex from exynos_gem_map_sgt_with_dma
        drm/exynos: Drop dev->struct_mutex from mmap offset function
        drm/nouveau: Drop dev->struct_mutex from fbdev init
        drm/qxl: Use unlocked gem unreferencing
        drm/omapdrm: Use unlocked gem unreferencing
        drm/nouveau: Use unlocked gem unreferencing
      f230ffa1
  3. 21 4月, 2016 2 次提交
  4. 20 4月, 2016 12 次提交