1. 21 Jan, 2016 1 commit
    • Dave Gordon's avatar
      drm/i915: simplify allocation of driver-internal requests · 26827088
      Dave Gordon authored
      There are a number of places where the driver needs a request, but isn't
      working on behalf of any specific user or in a specific context. At
      present, we associate them with the per-engine default context. A future
      patch will abolish those per-engine context pointers; but we can already
      eliminate a lot of the references to them, just by making the allocator
      allow NULL as a shorthand for "an appropriate context for this ring",
      which will mean that the callers don't need to know anything about how
      the "appropriate context" is found (e.g. per-ring vs per-device, etc).
      
      So this patch renames the existing i915_gem_request_alloc(), and makes
      it local (static inline), and replaces it with a wrapper that provides
      a default if the context is NULL, and also has a nicer calling
      convention (doesn't require a pointer to an output parameter). Then we
      change all callers to use the new convention:
      OLD:
      	err = i915_gem_request_alloc(ring, user_ctx, &req);
      	if (err) ...
      NEW:
      	req = i915_gem_request_alloc(ring, user_ctx);
      	if (IS_ERR(req)) ...
      OLD:
      	err = i915_gem_request_alloc(ring, ring->default_context, &req);
      	if (err) ...
      NEW:
      	req = i915_gem_request_alloc(ring, NULL);
      	if (IS_ERR(req)) ...
      
      v4:	Rebased
      Signed-off-by: default avatarDave Gordon <david.s.gordon@intel.com>
      Reviewed-by: default avatarNick Hoath <nicholas.hoath@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1453230175-19330-2-git-send-email-david.s.gordon@intel.comSigned-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      26827088
  2. 20 Jan, 2016 6 commits
  3. 19 Jan, 2016 2 commits
  4. 18 Jan, 2016 9 commits
  5. 17 Jan, 2016 2 commits
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-fixes-2016-01-14' of... · 1df59b84
      Dave Airlie authored
      Merge tag 'drm-intel-next-fixes-2016-01-14' of git://anongit.freedesktop.org/drm-intel into drm-next
      
      misc i915 fixes all over the place.
      
      * tag 'drm-intel-next-fixes-2016-01-14' of git://anongit.freedesktop.org/drm-intel:
        drm/i915/gen9: Set PIN_ZONE_4G end to 4GB - 1 page
        drm/i915: Widen return value for reservation_object_wait_timeout_rcu to long.
        drm/i915: intel_hpd_init(): Fix suspend/resume reprobing
        drm/i915: shut up gen8+ SDE irq dmesg noise, again
        drm/i915: Restore inhibiting the load of the default context
        drm/i915: Tune down rpm wakelock debug checks
        drm/i915: Avoid writing relocs with addresses in non-canonical form
        drm/i915: Move Braswell stop_machine GGTT insertion workaround
      1df59b84
    • Dave Airlie's avatar
      Merge tag 'topic/drm-misc-2016-01-17' of git://anongit.freedesktop.org/drm-intel into drm-next · 28f03607
      Dave Airlie authored
      Since your main drm-next pull isn't out of the door yet I figured I might
      as well flush out drm-misc instead of delaying for 4.6. It's really just
      random stuff all over, biggest thing probably connector_mask tracking from
      Maarten.
      
      * tag 'topic/drm-misc-2016-01-17' of git://anongit.freedesktop.org/drm-intel: (24 commits)
        drm/fb_cma_helper: Remove implicit call to disable_unused_functions
        drm/sysfs: use kobj_to_dev()
        drm/i915: Init power domains early in driver load
        drm: Do not set connector->encoder in drivers
        apple-gmux: Add initial documentation
        drm: move MODULE_PARM_DESC to other file
        drm/edid: index CEA/HDMI mode tables using the VIC
        drm/atomic: Remove drm_atomic_connectors_for_crtc.
        drm/i915: Update connector_mask during readout, v2.
        drm: Remove opencoded drm_gem_object_release_handle()
        drm: Do not set outparam on error during GEM handle allocation
        drm/docs: more leftovers from the big vtable documentation pile
        drm/atomic-helper: Reject legacy flips on a disabled pipe
        drm/atomic: add connector mask to drm_crtc_state.
        drm/tegra: Use __drm_atomic_helper_reset_connector for subclassing connector state, v2.
        drm/atomic: Add __drm_atomic_helper_connector_reset, v2.
        drm/i915: Set connector_state->connector using the helper.
        drm: Use a normal idr allocation for the obj->name
        drm: Only bump object-reference count when adding first handle
        drm: Balance error path for GEM handle allocation
        ...
      28f03607
  6. 15 Jan, 2016 9 commits
  7. 14 Jan, 2016 1 commit
  8. 13 Jan, 2016 10 commits