1. 03 12月, 2014 6 次提交
    • D
      drm/i915: Disallow pin ioctl completely for kms drivers · d472fcc8
      Daniel Vetter 提交于
      The problem here is that SNA pins batchbuffers to etch out a bit more
      performance. Iirc it started out as a w/a for i830M (which we've
      implemented in the kernel since a long time already). The problem is
      that the pin ioctl wasn't added in
      
      commit d23db88c
      Author: Chris Wilson <chris@chris-wilson.co.uk>
      Date:   Fri May 23 08:48:08 2014 +0200
      
          drm/i915: Prevent negative relocation deltas from wrapping
      
      Fix this by simply disallowing pinning from userspace so that the
      kernel is in full control of batch placement again. Especially since
      distros are moving towards running X as non-root, so most users won't
      even be able to see any benefits.
      
      UMS support is dead now, but we need this minimal patch for
      backporting. Follow-up patch will remove the pin ioctl code
      completely.
      
      Note to backporters: You must have both
      
      commit b45305fc
      Author: Daniel Vetter <daniel.vetter@ffwll.ch>
      Date:   Mon Dec 17 16:21:27 2012 +0100
      
          drm/i915: Implement workaround for broken CS tlb on i830/845
      
      which laned in 3.8 and
      
      commit c4d69da1
      Author: Chris Wilson <chris@chris-wilson.co.uk>
      Date:   Mon Sep 8 14:25:41 2014 +0100
      
          drm/i915: Evict CS TLBs between batches
      
      which is also marked cc: stable. Otherwise this could introduce a
      regression by disabling the userspace w/a without the kernel w/a being
      fully functional on i830/45.
      
      References: https://bugs.freedesktop.org/show_bug.cgi?id=76554#c116
      Cc: stable@vger.kernel.org # requires c4d69da1 and v3.8
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      d472fcc8
    • C
      drm/i915: Only warn the first time we attempt to mmio whilst suspended · 2b387059
      Chris Wilson 提交于
      In all likelihood we will do a few hundred errnoneous register
      operations if we do a single invalid register access whilst the device
      is suspended. As each instance causes a WARN, this floods the system
      logs and can make the system unresponsive.
      
      The warning was first introduced in
      commit b2ec142c
      Author: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Date:   Fri Feb 21 13:52:25 2014 -0300
      
          drm/i915: call assert_device_not_suspended at gen6_force_wake_work
      
      and despite the claims the WARN is still encountered in the wild today.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Cc: Imre Deak <imre.deak@intel.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      2b387059
    • C
      drm/i915/chv: Enable AVI, SPD and HDMI infoframes for CHV. · b4eb1564
      Clint Taylor 提交于
      CHV infoframes were not being enabled.
      Signed-off-by: NClint Taylor <clinton.a.taylor@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      b4eb1564
    • V
      drm/i915: Don't clobber crtc->new_config when nothing changes · b9950a13
      Ville Syrjälä 提交于
      When doing a nop modeset we currently leave crtc->new_config point at
      the already freed temporary pipe_config. That will anger the sanity
      checks in intel_modeset_update_state() when the nop modeset gets
      followed by a GPU reset on gen3/4 where the display block gets fully
      reinitialized during the reset.
      
      So leave crtc->new_config alone until we know a modeset is actually
      required.
      
      Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      b9950a13
    • L
      drm: rcar-du: Fix NULL encoder pointer dereference · 4fcd01d0
      Laurent Pinchart 提交于
      The DRM connector's encoder pointer is managed internally by the DRM
      core and set to NULL when the DRM connector is disconnected from the
      CRTC it was attached to. This results in a NULL pointer dereference in
      the HDMI connector functions when trying to call the associated slave
      encoder's operations.
      
      Fix this by retrieving the slave encoder pointer from the R-Car
      connector structure instead of the DRM connector structure.
      Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
      Signed-off-by: NDave Airlie <airlied@redhat.com>
      4fcd01d0
    • D
      Merge tag 'drm-intel-next-2014-11-21-fixed' of... · 26045b53
      Dave Airlie 提交于
      Merge tag 'drm-intel-next-2014-11-21-fixed' of git://anongit.freedesktop.org/drm-intel into drm-next
      
      drm-intel-next-2014-11-21:
      - infoframe tracking (for fastboot) from Jesse
      - start of the dri1/ums support removal
      - vlv forcewake timeout fixes (Imre)
      - bunch of patches to polish the rps code (Imre) and improve it on bdw (Tom
        O'Rourke)
      - on-demand pinning for execlist contexts
      - vlv/chv backlight improvements (Ville)
      - gen8+ render ctx w/a work from various people
      - skl edp programming (Satheeshakrishna et al.)
      - psr docbook (Rodrigo)
      - piles of little fixes and improvements all over, as usual
      
      * tag 'drm-intel-next-2014-11-21-fixed' of git://anongit.freedesktop.org/drm-intel: (117 commits)
        drm/i915: Don't pin LRC in GGTT when dumping in debugfs
        drm/i915: Update DRIVER_DATE to 20141121
        drm/i915/g4x: fix g4x infoframe readout
        drm/i915: Only call mod_timer() if not already pending
        drm/i915: Don't rely upon encoder->type for infoframe hw state readout
        drm/i915: remove the IRQs enabled WARN from intel_disable_gt_powersave
        drm/i915: Use ggtt error obj capture helper for gen8 semaphores
        drm/i915: vlv: increase timeout when setting idle GPU freq
        drm/i915: vlv: fix cdclk setting during modeset while suspended
        drm/i915: Dump hdmi pipe_config state
        drm/i915: Gen9 shadowed registers
        drm/i915/skl: Gen9 multi-engine forcewake
        drm/i915: Read power well status before other registers for drpc info
        drm/i915: Pin tiled objects for L-shaped configs
        drm/i915: Update ring freq for full gpu freq range
        drm/i915: change initial rps frequency for gen8
        drm/i915: Keep min freq above floor on HSW/BDW
        drm/i915: Use efficient frequency for HSW/BDW
        drm/i915: Can i915_gem_init_ioctl
        drm/i915: Sanitize ->lastclose
        ...
      26045b53
  2. 02 12月, 2014 34 次提交