1. 09 10月, 2015 2 次提交
    • P
      drm/i915: remove pre-atomic check from SKL update_primary_plane · a42e5a23
      Paulo Zanoni 提交于
      The comment suggests the check was there for some non-fully-atomic
      case, and I couldn't find a case where we wouldn't correctly
      initialize plane_state, so remove the check.
      
      Let's leave a WARN there just in case.
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Acked-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      a42e5a23
    • P
      drm/i915: don't allocate fbcon from stolen memory if it's too big · 3badb49f
      Paulo Zanoni 提交于
      Technology has evolved and now we have eDP panels with 3200x1800
      resolution. In the meantime, the BIOS guys didn't change the default
      32mb for stolen memory. On top of that, we can't assume our users will
      be able to increase the default stolen memory size to more than 32mb -
      I'm not even sure all BIOSes allow that.
      
      So just the fbcon buffer alone eats 22mb of my stolen memroy, and due
      to the BDW/SKL restriction of not using the last 8mb of stolen memory,
      all that's left for FBC is 2mb! Since fbcon is not the coolest feature
      ever, I think it's better to save our precious stolen resource to FBC
      and the other guys.
      
      On the other hand, we really want to use as much stolen memory as
      possible, since on some older systems the stolen memory may be a
      considerable percentage of the total available memory.
      
      This patch tries to achieve a little balance using a simple heuristic:
      if the fbcon wants more than half of the available stolen memory,
      don't use stolen memory in order to leave some for FBC and the other
      features.
      
      The long term plan should be to implement a way to set priorities for
      stolen memory allocation and then evict low priority users when the
      high priority ones need the memory. While we still don't have that,
      let's try to make FBC usable with the simple solution.
      
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Signed-off-by: NPaulo Zanoni <paulo.r.zanoni@intel.com>
      Reviewed-by: NJesse Barnes <jbarnes@virtuousgeek.org>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      3badb49f
  2. 02 10月, 2015 1 次提交
    • S
      drm/i915/bxt: DSI encoder support in CRTC modeset · 7d4aefd0
      Shashank Sharma 提交于
      SKL and BXT qualifies the HAS_DDI() check, and hence haswell
      modeset functions are re-used for modeset sequence. But DDI
      interface doesn't include support for DSI.
      This patch adds:
      1. cases for DSI encoder, in those modeset functions and allows
         a CRTC modeset
      2. Adds call to pre_pll enabled from CRTC modeset function. Nothing
         needs to be done as such in CRTC for DSI encoder, as PLL, clock
         and and transcoder programming will be taken care in encoder's
         pre_enable and pre_pll_enable function.
      
      v2: Fixed Jani's review comments. Added INVALID_PORT for non DDI
          encoder like DSI for platforms having HAS_DDI as true.
      
      v3: Rebased on latest drm-nightly branch. Added a WARN_ON for invalid
          encoder.
      
      v4: WARN_ON for invalid encoder is refactored as per Jani's suggestion.
          Fixed the sequence for pre_pll_enable.
      
      v5: Protected DDI code paths in case of DSI encoder calls.
      Signed-off-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NUma Shankar <uma.shankar@intel.com>
      Reviewed-by: NJani Nikula <jani.nikula@intel.com>
      Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
      7d4aefd0
  3. 30 9月, 2015 20 次提交
  4. 23 9月, 2015 9 次提交
  5. 14 9月, 2015 3 次提交
  6. 11 9月, 2015 3 次提交
  7. 10 9月, 2015 1 次提交
  8. 08 9月, 2015 1 次提交