1. 23 10月, 2012 6 次提交
  2. 19 10月, 2012 5 次提交
  3. 18 10月, 2012 3 次提交
  4. 12 10月, 2012 1 次提交
  5. 04 10月, 2012 1 次提交
  6. 03 10月, 2012 5 次提交
  7. 28 9月, 2012 3 次提交
  8. 26 9月, 2012 3 次提交
  9. 20 9月, 2012 6 次提交
    • D
      drm/i915: rip out edp special case from dp_link_down · b6f69c9a
      Daniel Vetter 提交于
      This has been tons of fun to figure out with git blame. The first
      notion of this code block goes back to the original cpu edp enabling
      for ilk in
      
      commit 32f9d658
      Author: Zhenyu Wang <zhenyuw@linux.intel.com>
      Date:   Fri Jul 24 01:00:32 2009 +0800
      
          drm/i915: Add eDP support on IGDNG mobile chip
      
      Two things are notable in this commit wrt to the this edp special
      case:
      - The IS_eDP check _only_ fires for DP A, i.e. cpu edp ports.
      - The cpu edp port is disabled at the top of the dp_link_down function.
      
      My theory is that these hacks was added to work around the completely
      different modeset sequence for cpu edp ports compared to pch edp
      ports. With the cpu edp confusion on ilk (and snb/ivb) now fixed up,
      this shouldn't be required any more.
      
      The really interesting question is how this special cases survived
      this long in the code. The first step is declaring the pch port D as
      eDP if it's used for an internal panel:
      
      commit b329530c
      Author: Adam Jackson <ajax@redhat.com>
      Date:   Fri Jul 16 14:46:28 2010 -0400
      
          drm/i915/dp: Correctly report eDP in the core connector type
      
      This commit unfortunately failed to notice that not all edp ports are
      created equal. Then follow a flurry of refactorings, culminating in a
      patch from Keith Packard which resulted in the current logic (by
      making it "correct" for all platforms that have edp):
      
      commit 417e822d
      Author: Keith Packard <keithp@keithp.com>
      Date:   Tue Nov 1 19:54:11 2011 -0700
      
          drm/i915: Treat PCH eDP like DP in most places
      
      None of these cleanups or refactorings supply any reason why we need
      this code, they've simply carried it on as-is.
      
      Hence presume it might be harmful with the current code and rip it
      out. We do rewrite the link training bits completely anyway when
      re-training the link.
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      b6f69c9a
    • D
      drm/i915: disable the cpu edp port after the cpu pipe · 3739850b
      Daniel Vetter 提交于
      See bspec, Vol3 Part2, Section 1.1.3 "Display Mode Set Sequence". This
      applies to all platforms where we currently support eDP on, i.e. ilk,
      snb & ivb.
      
      Without this change we fail to light up the eDP port on previously
      unused crtcs (likely because something is stuck on the old pipe), and
      we also fail to properly disable the old pipe (i.e. bit 30 in the
      PIPECONF register is stuck as set until the next reboot).
      
      v2: Rebased on top of the edp panel off sequence changes in 3.6-rc2.
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=44001Signed-Off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      3739850b
    • D
      drm/i915: rip out dp port enabling cludges^Wchecks · 0c33d8d7
      Daniel Vetter 提交于
      These have been added because dp links are fiddle things and don't
      like it when we try to re-train an enabled output (or disable a
      disabled output harder). And because the crtc helper code is
      ridiculously bad add tracking the modeset state.
      
      But with the new code in place it is simply a bug to disable a disabled
      encoder or to enable an enabled encoder again. Hence convert these to
      WARNs (and bail out for safety), but flatten all conditionals in the
      code itself.
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-Off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      0c33d8d7
    • D
      drm/i915: robustify edp_pll_on/off · 0767935e
      Daniel Vetter 提交于
      With the previous patch to clean up where exactly these two functions
      are getting called, this patch can tackle the enable/disable code
      itself:
      
      - WARN if the port enable bit is in the wrong state or if the edp pll
        bit is in the wrong state, just for paranoia's sake.
      - Don't disable the edp pll harder in the modeset functions just for
        fun.
      - Don't set the edp pll enable flag in intel_dp->DP in modeset, do
        that while changing the actual hw state. We do the same with the
        actual port enable bit, so this is a bit more consistent.
      - Track the current DP register value when setting things up and add
        some comments how intel_dp->DP is used in the disable code.
      
      v2: Be more careful with resetting intel_dp->DP - otherwise dpms
      off->on will fail spectacularly, becuase we enable the eDP port when
      we should only enable the eDP pll.
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-Off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      0767935e
    • D
      drm/i915: clean up the cpu edp pll special case · 2bd2ad64
      Daniel Vetter 提交于
      By using the new pre_enable/post_disable functions.
      
      To ensure that we only frob the cpu edp pll while the pipe is off add
      the relevant asserts. Thanks to the new output state staging, this is
      now really easy.
      
      With this fixed we can now finally rip out the special-case handling
      in the dp dpms code and replace it by the common intel_connector_dpms.
      Reviewed-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      2bd2ad64
    • D
      drm/i915: rip out early dp port write for gm45/ilk · fba92150
      Daniel Vetter 提交于
      It's bogus.
      
      If I've followed the history of this piece of code correctly, i.e. the
      initial register write with the following vblank wait, this goes all
      the way back to the original enabling of DP support in
      
      commit a4fc5ed6
      Author: Keith Packard <keithp@keithp.com>
      Date:   Tue Apr 7 16:16:42 2009 -0700
      
          drm/i915: Add Display Port support
      
      Unfortunately it seems to be nothing more than glorified duct-tape and
      sometimes actively harmful. Adam Jackson noticed this for CPT
      platforms with
      
      commit e8519464
      Author: Adam Jackson <ajax@redhat.com>
      Date:   Thu Jul 21 17:48:38 2011 -0400
      
          drm/i915/dp: Don't turn CPT DP ports on too early
      
      Unfortunately this kept the code around for ilk and gm45.
      
      The specific failure case I'm seeing here is that after a dpms off/on
      cycle we have the bits from the last link training (hopefully
      successful link training) set in intel_dp->DP. This is requiered so
      that complete_link_train can enable the port with the right tuning
      values.
      
      Unfortunately writing these again to the disabled port at dpms on time
      kills the port somehow until it's disabled - dp link training fails in
      an endless loop without this patch on my mobile ilk and gm45.
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Tested-by: NChris Wilson <chris@chris-wilson.co.uk>
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51493Signed-Off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      fba92150
  10. 06 9月, 2012 7 次提交