1. 22 3月, 2016 3 次提交
  2. 21 3月, 2016 1 次提交
  3. 17 3月, 2016 2 次提交
  4. 16 3月, 2016 2 次提交
  5. 10 3月, 2016 1 次提交
  6. 09 3月, 2016 6 次提交
  7. 07 3月, 2016 1 次提交
  8. 04 3月, 2016 3 次提交
    • V
      drm/i915: Store rawclk_freq in dev_priv · e7dc33f3
      Ville Syrjälä 提交于
      Generalize rawclk handling by storing it in dev_priv.
      
      Presumably our hrawclk readout works at least for CTG and ELK
      since we've been using it for DP AUX on those platforms. There
      are no real docs anymore after configdb vanished, so the only
      reference is the public CTG GMCH spec. What bits are listed in
      that doc match our code. The ELK GMCH spec have no relevant
      details unfortunately.
      
      The PNV situation is less clear. Starting from
      commit aa17cdb4 ("drm/i915: initialize backlight max from VBT")
      we assume that the CTG/ELK hrawclk readout works for PNV as well.
      At least the results *seem* reasonable for one PNV machine (Lenovo
      Ideapad S10-3t). Sadly the PNV GMCH spec doesn't have the goods on
      the relevant register either.
      
      So let's keep assuming it works for PNV,ELK,CTG and read it out on
      those platforms. G33 also has hrawclk according to some notes
      in BSpec, but we don't actually need it for anything, so let's not
      even try to read it out there.
      
      v2: Rebase due to IS_VALLYVIEW vs. IS_CHERRYVIEW split
          Use KHz() all over, and kill off a few useless temp variables
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1456932138-14004-2-git-send-email-ville.syrjala@linux.intel.comReviewed-by: NJani Nikula <jani.nikula@intel.com>
      e7dc33f3
    • T
      drm/i915: Do not lie about atomic timeout granularity · 0351b939
      Tvrtko Ursulin 提交于
      Currently the wait_for_atomic_us only allows for a jiffie
      timeout granularity which is not nice towards callers
      requesting small micro-second timeouts.
      
      Re-implement it so micro-second timeout granularity is really
      supported and not just in the name of the macro.
      
      This has another beneficial side effect that it improves
      "gem_latency -n 100" results by approximately 2.5% (throughput
      and latencies) and 3% (CPU usage). (Note this improvement is
      relative to not yet merged execlist lock uncontention patch
      which moves the CSB MMIO outside this lock.)
      
      It also shrinks some hot functions like fw_domains_get by a
      tiny 3%.
      
      v2:
        * Warn when used from non-atomic context (if possible).
        * Warn on too long atomic waits.
      
      v3:
        * Added comment explaining CONFIG_PREEMPT_COUNT.
        * Fixed pre-processor indentation.
        (Chris Wilson)
      
      v4:
       * Commit msg update (gem_latency) and rebase.
      
      v5:
       * Commit message re-wording.
       * Added comment about no need for double cond check. (Chris Wilson)
      Signed-off-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      0351b939
    • T
      drm/i915: Add wait_for_us · 3f177625
      Tvrtko Ursulin 提交于
      This is for callers who want micro-second precision but are not
      waiting from the atomic context.
      
      v2:
        * Fix atomic waits. (Dave Gordon)
        * Use USEC_PER_SEC and USEC_PER_MSEC. (Chris Wilson)
      Signed-off-by: NTvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Dave Gordon <david.s.gordon@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
      3f177625
  9. 03 3月, 2016 1 次提交
  10. 01 3月, 2016 8 次提交
  11. 25 2月, 2016 2 次提交
  12. 23 2月, 2016 1 次提交
  13. 22 2月, 2016 2 次提交
  14. 18 2月, 2016 1 次提交
  15. 17 2月, 2016 1 次提交
    • I
      drm/i915: Add helper to get a display power ref if it was already enabled · 09731280
      Imre Deak 提交于
      We have many places in the code where we check if a given display power
      domain is enabled and if so access registers backed by this power
      domain. We assumed that some modeset lock will prevent the power
      reference from vanishing in the middle of the HW access, but this
      assumption doesn't always hold. In such cases we get either the wakeref
      not held, or an unclaimed register access error message. To fix this in
      a future-proof way that's independent of other locks wrap any such
      access with a get_ref_if_enabled()/put_ref() pair.
      
      Kudos to Ville and Joonas for the ideas of this new interface.
      
      v2:
      - init the power_domains ptr when declaring it everywhere (Joonas)
      v3:
      - don't report the device to be powered if runtime PM is disabled
      
      CC: Mika Kuoppala <mika.kuoppala@intel.com>
      CC: Chris Wilson <chris@chris-wilson.co.uk>
      CC: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      CC: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1455711462-7442-1-git-send-email-imre.deak@intel.com
      09731280
  16. 13 2月, 2016 1 次提交
  17. 08 2月, 2016 3 次提交
  18. 06 2月, 2016 1 次提交
    • S
      drm/i915/bxt: Check BIOS RC6 setup before enabling RC6 · 274008e8
      Sagar Arun Kamble 提交于
      RC6 setup is shared between BIOS and Driver. BIOS sets up subset of RC6
      setup registers. If those are not setup Driver should not enable RC6.
      For implementing this, driver can check RC_CTRL0 and RC_CTRL1 values
      to know if BIOS has enabled HW/SW RC6.
      This will also enable user to control RC6 using BIOS settings alone.
      RC6 related instability can be avoided by disabling via BIOS settings
      till driver fixes it.
      
      v2: Had placed logic in gen8 function by mistake. Fixed it.
      Ensuring RPM is not enabled in case BIOS disabled RC6.
      
      v3: Need to disable RPM if RC6 is disabled due to BIOS settings. (Daniel)
      Runtime PM enabling happens before gen9_enable_rc6.
      Moved the updation of enable_rc6 parameter in intel_uncore_sanitize.
      
      v4: Added elaborate check for BIOS RC6 setup. Prepared check_pctx for bxt.
          (Imre)
      
      v5: Caching reserved stolen base and size in the driver private data.
          Reorganized RC6 setup check. Moved from gen9_enable_rc6 to
          intel_uncore_sanitize. (Imre)
      
      v6: Rebasing on the patch submitted by Imre that moves gem_init_stolen
          earlier in the load.
      
      v7: Removed PWRCTX_MAXCNT_VCSUNIT1 check as it applies to SKL. (Imre)
      
      v8: Fixed formatting and checkpatch issues. Fixed functional issue where
          RC6 ctx size check was missing. (Imre)
      
      Cc: Imre Deak <imre.deak@intel.com>
      Signed-off-by: NSagar Arun Kamble <sagar.a.kamble@intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Link: http://patchwork.freedesktop.org/patch/msgid/1454697809-22113-1-git-send-email-sagar.a.kamble@intel.com
      274008e8