1. 10 10月, 2012 1 次提交
  2. 09 10月, 2012 2 次提交
  3. 08 10月, 2012 4 次提交
  4. 05 10月, 2012 2 次提交
  5. 02 10月, 2012 2 次提交
  6. 01 10月, 2012 1 次提交
  7. 28 9月, 2012 7 次提交
  8. 26 9月, 2012 4 次提交
  9. 25 9月, 2012 4 次提交
  10. 24 9月, 2012 1 次提交
  11. 20 9月, 2012 12 次提交
    • B
      drm/i915: Fix !CONFIG_PM sysfs for real this time · 853c70e8
      Ben Widawsky 提交于
      Somehow this hunk got dropped from my last patch. We do not have the
      rc6_attrs when there is no CONFIG_PM so this causes a compilation error.
      Reported-by: NFengguang Wu <fengguang.wu@intel.com>
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      853c70e8
    • C
      drm/i915: Assert that the exec object lookup table is a power-of-two · 41783eea
      Chris Wilson 提交于
      As we make the simplification of using a power-of-two size for the
      execbuffer handle-to-object TLB, we should validate that this is actually
      true and so clarify that premise.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      41783eea
    • W
      drm/i915: HDMI - Clear Audio Enable bit for Hot Plug unconditionally · 3cce574f
      Wang Xingchao 提交于
      Clear Audio Enable bit to trigger unsolicated event to notify Audio
      Driver part the HDMI hot plug change. The patch fixed the bug when
      remove HDMI cable the bit was not cleared correctly.
      
      In intel_enable_hdmi(), if intel_hdmi->has_audio been true, the "Audio enable bit" will
      be set to trigger unsolicated event to notify Alsa driver the change.
      
      intel_hdmi->has_audio will be reset to false from intel_hdmi_detect() after
      remove the hdmi cable, here's debug log:
      
      [  187.494153] [drm:output_poll_execute], [CONNECTOR:17:HDMI-A-1] status updated from 1 to 2
      [  187.525349] [drm:intel_hdmi_detect], HDMI: has_audio = 0
      
      so when comes back to intel_disable_hdmi(), the "Audio enable bit" will not be cleared. And this
      cause the eld infomation and pin presence doesnot update accordingly in alsa driver side.
      
      This patch will also trigger unsolicated event to alsa driver to notify the hot plug event:
      
      [  187.853159] ALSA sound/pci/hda/patch_hdmi.c:772 HDMI hot plug event: Codec=3 Pin=5 Presence_Detect=0 ELD_Valid=1
      [  187.853268] ALSA sound/pci/hda/patch_hdmi.c:990 HDMI status: Codec=3 Pin=5 Presence_Detect=0 ELD_Valid=0
      Signed-off-by: NWang Xingchao <xingchao.wang@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      3cce574f
    • C
      drm/i915: Convert the dmabuf object to use the new i915_gem_object_ops · 2f745ad3
      Chris Wilson 提交于
      By providing a callback for when we need to bind the pages, and then
      release them again later, we can shorten the amount of time we hold the
      foreign pages mapped and pinned, and importantly the dmabuf objects then
      behave as any other normal object with respect to the shrinker and
      memory management.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      2f745ad3
    • D
      drm/i915: update dpms property in set_mode · 68d34720
      Daniel Vetter 提交于
      Hopefully this makes userspace slightly less confused about us
      frobbing the dpms state behind its back. Yeah, it would be better
      to be more careful with not changing the dpms state, but that is
      quite more invasive.
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      68d34720
    • D
      drm/i915: don't call dpms funcs after set_mode · 172a1ae1
      Daniel Vetter 提交于
      ... because our current set_mode implementation doesn't bother to adjust
      for the dpms state, we just forcefully update it. So stop pretending that
      we're better than we are and rip out this extranous call.
      
      Note that this totally confuses userspace, because the exposed connector
      property isn't actually updated ...
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      172a1ae1
    • D
      drm/i915: don't disable fdi links harder in ilk_crtc_enable · 46b6f814
      Daniel Vetter 提交于
      Because they should have been disabled when shutting down the display
      pipe previously. To ensure that this is the case, add a few assserts
      instead of unconditionally disabling the fdi link.
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      46b6f814
    • D
      drm/i915: rip out intel_disable_pch_ports · a14d3359
      Daniel Vetter 提交于
      Even with the old crtc helper code we should have disabled all
      encoders on that pipe by now, and with the new code this would
      definitely paper over a bug. We already have the necessary checks
      in place in intel_disable_transcoder, so if we accidentally leave
      a pch port on, this will be caught.
      
      Hence just rip this all out.
      
      Note that up to the patch in this giant modeset series that removes
      the LVDS special case to avoid disabling LVDS in the encoder->prepare
      callback ("drm/i915/lvds: ditch ->prepare special case"), this was not
      the case for all outputs.
      
      Also note that in
      
      commit 1b3c7a47
      Author: Zhenyu Wang <zhenyuw@linux.intel.com>
      Date:   Wed Nov 25 13:09:38 2009 +0800
      
          drm/i915: Fix LVDS stability issue on Ironlake
      
      this was already discovered independently and worked around. How I
      bloody hate this entire mess of cludges piled on top of other cludges.
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      a14d3359
    • C
      drm/i915: Limit the ioremap of the PCI bar to the registers · 934d6086
      Chris Wilson 提交于
      In the future we may like to experiment with using a WC map of the GTT
      portion. However, that will conflict with i915.ko mapping the entire bar
      as UC in order to access the GPU registers. Instead we can shrink the
      register ioremap to only map the register block.
      Signed-off-by: NChris Wilson <chris@chris-wilson.co.uk>
      Tested-by (IVB): Ben Widawsky <ben@bwidawsk.net>
      Acked-by: NBen Widawsky <ben@bwidawsk.net>
      [danvet: Squashed-in follow-up fix for gen2/3 registers file size from
      Chris Wilson.]
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      934d6086
    • B
      drm/i915: Show render P state thresholds in sysfs · ac6ae347
      Ben Widawsky 提交于
      This is useful for userspace utilities which wish to use the previous
      interface, specifically for micromanaging the increase/decrease steps by
      setting min == max.
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      ac6ae347
    • B
      drm/i915: Add setters for min/max frequency · 46ddf194
      Ben Widawsky 提交于
      Provide a standardized sysfs interface for setting min, and max
      frequencies.  The code which reads the limits were lifted from the
      debugfs files. As a brief explanation, the limits are similar to the CPU
      p-states. We have 3 states:
      
      RP0 - ie. max frequency
      RP1 - ie. "preferred min" frequency
      RPn - seriously lowest frequency
      
      Initially Daniel asked me to clamp the writes to supported values, but
      in conforming to the way the cpufreq drivers seem to work, instead
      return -EINVAL (noticed by Jesse in discussion).
      The values can be used by userspace wishing to control the limits of the
      GPU (see the CC list for people who care).
      
      v4: Make exceeding the soft limits return -EINVAL as well (Daniel)
      
      v3: bug fix (Ben) -  was passing the MHz value to gen6_set_rps instead of
      the step value. To fix, deal only with step values by doing the divide
      at the top.
      
      v2: add the dropped mutex_unlock in error cases (Chris)
      EINVAL on both too min, or too max (Daniel)
      
      v2 Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
      CC: Daniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: NBen Widawsky <ben@bwidawsk.net>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      46ddf194
    • 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