1. 11 9月, 2019 2 次提交
    • M
      drm/i915: Use literal representation of cdclk tables · 736da811
      Matt Roper 提交于
      The bspec lays out legal cdclk frequencies, PLL ratios, and CD2X
      dividers in an easy-to-read table for most recent platforms.  We've been
      translating the data from that table into platform-specific code logic,
      but it's easy to overlook an area we need to update when adding new
      cdclk values or enabling new platforms.  Let's just add a form of the
      bspec table to the code and then adjust our functions to pull what they
      need directly out of the table.
      
      v2: Fix comparison when finding best cdclk.
      
      v3: Another logic fix for calc_cdclk.
      
      v4:
       - Use named initializers for cdclk tables. (Ville)
       - Include refclk as a field in the table instead of adding all three
         ratios for each entry. (Ville)
       - Terminate tables with an empty entry to avoid needing to store the
         table size. (Ville)
       - Don't try so hard to return reasonable values from our lookup
         functions if we get impossible inputs; just WARN and return 0.
         (Ville)
       - Keep a bxt_ prefix on the lookup functions since they're still only
         used on bxt+ for now.  We can rename them later if we extend this
         table-based approach back to older platforms.  (Ville)
      
      v5:
       - Fix cnl table's ratios for 24mhz refclk. (Ville)
       - Don't miss the named initializers on the cnl table. (Ville)
       - Represent refclk in table as u16 rather than u32. (Ville)
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NMatt Roper <matthew.d.roper@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190910161506.7158-1-matthew.d.roper@intel.com
      736da811
    • M
      drm/i915: Consolidate bxt/cnl/icl cdclk readout · 71dc367e
      Matt Roper 提交于
      Aside from a few minor register changes and some different clock values,
      cdclk design hasn't changed much since gen9lp.  Let's consolidate the
      handlers for bxt, cnl, and icl to keep the codeflow consistent.
      
      Also, while we're at it, s/bxt_de_pll_update/bxt_de_pll_readout/ since
      "update" makes me think we should be writing to hardware rather than
      reading from it.
      
      v2:
       - Fix icl_calc_voltage_level() limits.  (Ville)
       - Use CNL_CDCLK_PLL_RATIO_MASK rather than BXT_DE_PLL_RATIO_MASK on
         gen10+ to avoid confusion.  (Ville)
      
      v3:
       - Also fix ehl_calc_voltage_level() limits.  (Ville)
      
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Suggested-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NMatt Roper <matthew.d.roper@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190910160520.6587-1-matthew.d.roper@intel.com
      71dc367e
  2. 06 9月, 2019 1 次提交
  3. 31 8月, 2019 2 次提交
  4. 24 8月, 2019 1 次提交
  5. 17 8月, 2019 1 次提交
  6. 07 8月, 2019 1 次提交
  7. 29 7月, 2019 1 次提交
  8. 19 7月, 2019 1 次提交
  9. 12 7月, 2019 1 次提交
  10. 27 6月, 2019 3 次提交
  11. 17 6月, 2019 1 次提交
  12. 12 6月, 2019 3 次提交
  13. 04 6月, 2019 2 次提交
  14. 02 5月, 2019 1 次提交
  15. 26 4月, 2019 4 次提交
  16. 17 4月, 2019 1 次提交
  17. 08 4月, 2019 2 次提交
  18. 04 4月, 2019 2 次提交
  19. 03 4月, 2019 2 次提交
  20. 27 3月, 2019 1 次提交
  21. 20 3月, 2019 1 次提交
  22. 15 3月, 2019 1 次提交
  23. 14 3月, 2019 2 次提交
    • R
      drm/i915: Start using comparative INTEL_PCH_TYPE · c6c30b91
      Rodrigo Vivi 提交于
      In order to make it easier to bring up new platforms
      without having to take care about all corner cases
      that was previously taken care for previous platforms
      we already use comparative INTEL_GEN statements.
      
      Let's start doing the same with PCH.
      
      The only caveats are:
       - less-than comparisons need to be avoided or done with
         attention and check > PCH_NONE as well.
       - It is not necessarily a chronological order, but a matter
         of south display compatibility/inheritance.
      
      v2: Rebased on top of Jani's clean-up which removed the
          need for less-than comparison
      
      Cc: Jani Nikula <jani.nikula@intel.com>
      Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
      Cc: Lucas De Marchi <lucas.demarchi@intel.com>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NLucas De Marchi <lucas.demarchi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190308214300.25057-3-rodrigo.vivi@intel.com
      c6c30b91
    • R
      drm/i915/gen11+: First assume next platforms will inherit stuff · 2dd24a9c
      Rodrigo Vivi 提交于
      This exactly same approach was already used from gen9
      to gen10 and from gen10 to gen11. Let's also use it
      for gen11+.
      
      Let's first assume that we inherit a similar platform
      and than we apply the differences on top.
      
      Different from the previous attempts this will be
      done this time with coccinelle. We obviously need to
      exclude some case that is really exclusive for gen11
      like  PCH, Firmware, and few others. Luckly this was
      easy to filter by selecting the files we are touching
      with coccinelle as exposed below:
      
      spatch -sp_file gen11\+.cocci --in-place i915_perf.c \
             intel_bios.c intel_cdclk.c intel_ddi.c \
             intel_device_info.c intel_display.c intel_dpll_mgr.c \
             intel_dsi_vbt.c intel_hdmi.c intel_mocs.c intel_color.c
      
      @noticelake@ expression e; @@
      -!IS_ICELAKE(e)
      +INTEL_GEN(e) < 11
      @notgen11@ expression e; @@
      -!IS_GEN(e, 11)
      +INTEL_GEN(e) < 11
      @icelake@ expression e; @@
      -IS_ICELAKE(e)
      +INTEL_GEN(e) >= 11
      @gen11@ expression e; @@
      -IS_GEN(e, 11)
      +INTEL_GEN(e) >= 11
      
      No functional change.
      
      v2: Remove intel_lrc.c per Tvrtko request since those were w/a
          for ICL hw issuea and media related configuration.
      
      Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Cc: Lucas De Marchi <lucas.demarchi@intel.com>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NLucas De Marchi <lucas.demarchi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20190308214300.25057-1-rodrigo.vivi@intel.com
      2dd24a9c
  24. 05 3月, 2019 1 次提交
  25. 14 2月, 2019 1 次提交
  26. 17 1月, 2019 1 次提交