1. 16 4月, 2015 4 次提交
    • D
      drm/i915: Drop unecessary fb arguments from function signatures · 8805aa71
      Daniel Vetter 提交于
      This is a separate patch to simplify conflict handling with other
      ongoing atomic work.
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Reviewed-by: NAnder Conselvan de Oliveira <conselvan2@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      8805aa71
    • D
      drm/i915: Select starting pipe bpp irrespective or the primary plane · d328c9d7
      Daniel Vetter 提交于
      Since universal planes the primary plane might not be around, and it's
      kinda silly to restrict the pipe bpp to the primary plane if we might
      end up displaying a 10bpc video overlay. And with atomic we might very
      well enable a pipe without a primary plane. So just use the platform
      max as a starting point and then restrict appropriately.
      
      Of course this is all still a bit moot as long as we artificially
      compress everything to max 8bpc because we don't use the hi-bpc gamma
      tables.
      Signed-off-by: NDaniel Vetter <daniel.vetter@intel.com>
      Reviewed-by: NAnder Conselvan de Oliveira <conselvan2@gmail.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      d328c9d7
    • V
      drm/i915/bxt: add display initialize/uninitialize sequence (CDCLK) · f8437dd1
      Vandana Kannan 提交于
      Add CDCLK specific display clock initialization sequence as per BSpec.
      
      Note that the CDCLK initialization/uninitialization are done at their
      current place only for simplicity, in a future patch - when more of the
      runtime PM features will be enabled - these will be moved to power
      well#1 and modeset encoder enabling/disabling hooks respectively. This
      also means that atm dynamic power gating power well #1 is effectively
      disabled.
      
      The call to uninitialize CDCLK during system/runtime suspend will be
      added later in this patchset.
      
      v1: Added function definitions in header files
      v2: Imre's review comments addressed
      - Moved CDCLK related definitions to i915_reg.h
      - Removed defintions for CDCLK frequency
      - Split uninit_cdclk() by adding a phy_uninit function
      - Calculate freq and decimal based on input frequency
      - Program SSA precharge based on input frequency
      - Use wait_for 1ms instead 200us udelay for DE PLL locking
      - Removed initial value for divider, freq, decimal, ratio.
      - Replaced polling loops with wait_for
      - Parameterized latency optim setting
      - Fix the parts where DE PLL has to be disabled.
      - Call CDCLK selection from mode set
      
      v3: (imre)
      - add note about the plan to move the cdclk/phy init to a better place
      - take rps.hw_lock around pcode access
      - move DE PLL register macros here from another patch since they are
        used here first
      - add BXT_ prefix to CDCLK flags
      - add missing masking when programming CDCLK_FREQ_DECIMAL
      
      v4: (ville)
      - split the CDCLK/PHY parts into two patches, update commit message
        accordingly
      - s/DISPLAY_PCU_CONTROL/HSW_PCODE_DE_WRITE_FREQ_REQ/
      - simplify BXT_DE_PLL_RATIO macros
      - fix BXT_DE_PLL_RATIO_MASK
      - s/bxt_select_cdclk_freq/broxton_set_cdclk_freq/
      - move cdclk init/uninit/set code from intel_ddi.c to intel_display.c
      - remove redundant code comments for broxton_set_cdclk_freq()
      - sanitize fixed point<->integer frequency value conversion
      - use DRM_ERROR instead of WARN
      - do RMW when programming BXT_DE_PLL_CTL for safety
      - add note about PLL lock timeout being exactly 200us
      - make PCU error messages more descriptive
      - instead of using 0 freq to mean PLL off/bypass freq use 19200
        for clarity, as the latter one is the actual rate
      - simplify pcode programming, removing duplicated
        sandybridge_pcode_write() call
      - sanitize code flow, remove unnecessary scratch vars in
        broxton_set_cdclk() (imre)
      - Remove bound check for maxmimum freq to match current code.
        This check will be added later at a more proper platform
        independent place once atomic support lands.
      - add note to remove freq guard band which isn't needed on BXT
      - add note to reduce freq to minimum if no pipe is enabled
      - combine broxton_modeset_global_pipes() with
        valleyview_modeset_global_pipes()
      
      Signed-off-by: Vandana Kannan <vandana.kannan@intel.com> (v2)
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      f8437dd1
    • V
      drm/i915: Rename vlv_cdclk_freq to cdclk_freq · 164dfd28
      Vandana Kannan 提交于
      Rename vlv_cdclk_freq to cdclk_freq so that it can be used for all
      platforms as required. Needed by the next patch.
      Signed-off-by: NVandana Kannan <vandana.kannan@intel.com>
      Signed-off-by: NA.Sunil Kamath <sunil.kamath@intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      164dfd28
  2. 14 4月, 2015 1 次提交
    • V
      drm/i915/bxt: don't use unsupported port detection · c776eb2e
      Vandana Kannan 提交于
      The port detection register flags in SFUSE_STRAP and DDI_BUF_CTL_A are
      not defined for BXT, so don't use them.
      
      Suggested by Satheesh.
      
      v2:
      - DDI_BUF_CTL_A bit 0 is not useful on BXT. Making changes to use this
        bit when simulator or BXT is not applicable. Code re-arranged as per
        Damien's suggestion.
      
      v3:
      - clarify commit message, add code comment (imre)
      
      Signed-off-by: Vandana Kannan <vandana.kannan@intel.com> (v2)
      Cc: M, Satheeshakrishna <satheeshakrishna.m@intel.com>
      Cc: Lespiau, Damien <damien.lespiau@intel.com>
      Cc: Shankar, Uma <uma.shankar@intel.com>
      Signed-off-by: NImre Deak <imre.deak@intel.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      c776eb2e
  3. 13 4月, 2015 7 次提交
  4. 10 4月, 2015 11 次提交
  5. 01 4月, 2015 1 次提交
  6. 31 3月, 2015 4 次提交
  7. 30 3月, 2015 1 次提交
  8. 27 3月, 2015 9 次提交
  9. 26 3月, 2015 2 次提交