1. 21 4月, 2018 2 次提交
  2. 09 4月, 2018 2 次提交
  3. 06 4月, 2018 3 次提交
  4. 31 3月, 2018 2 次提交
  5. 29 3月, 2018 2 次提交
  6. 24 3月, 2018 3 次提交
  7. 22 3月, 2018 1 次提交
  8. 21 3月, 2018 1 次提交
  9. 20 3月, 2018 2 次提交
    • K
      drm/i915/icl: Update subslice define for ICL 11 · d3d57927
      Kelvin Gardiner 提交于
      ICL 11 has a greater number of maximum subslices. This patch
      reflects this.
      
      v2: GEN11 updates to MCR_SELECTOR (Oscar)
      v3: Copypasta error in the new defines (Lionel)
      
      Bspec: 21139
      BSpec: 21108
      Signed-off-by: NKelvin Gardiner <kelvin.gardiner@intel.com>
      Reviewed-by: Oscar Mateo <oscar.mateo@intel.com> (v1)
      Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> (v1)
      Signed-off-by: NOscar Mateo <oscar.mateo@intel.com>
      Reviewed-by: NLionel Landwerlin <lionel.g.landwerlin@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180316121456.11577-3-mika.kuoppala@linux.intel.comSigned-off-by: NMika Kuoppala <mika.kuoppala@linux.intel.com>
      d3d57927
    • O
      drm/i915/icl: Check for fused-off VDBOX and VEBOX instances · 26376a7e
      Oscar Mateo 提交于
      In Gen11, the Video Decode engines (aka VDBOX, aka VCS, aka BSD) and the
      Video Enhancement engines (aka VEBOX, aka VECS) could be fused off. Also,
      each VDBOX and VEBOX has its own power well, which only exist if the
      related engine exists in the HW.
      
      Unfortunately, we have a Catch-22 situation going on: we need the blitter
      forcewake to read the register with the fuse info, but we cannot initialize
      the forcewake domains without knowin about the engines present in the HW.
      We workaround this problem by allowing the initialization of all forcewake
      domains and then pruning the fused off ones, as per the fuse information.
      
      Bspec: 20680
      
      v2: We were shifting incorrectly for vebox disable (Vinay)
      
      v3: Assert mmio is ready and warn if we have attempted to initialize
          forcewake for fused-off engines (Paulo)
      
      v4:
        - Use INTEL_GEN in new code (Tvrtko)
        - Shorter local variable (Tvrtko, Michal)
        - Keep "if (!...) continue" style (Tvrtko)
        - No unnecessary BUG_ON (Tvrtko)
        - WARN_ON and cleanup if wrong mask (Tvrtko, Michal)
        - Use I915_READ_FW (Michal)
        - Use I915_MAX_VCS/VECS macros (Michal)
      
      v5: Rebased by Rodrigo fixing conflicts on top of:
          "drm/i915: Simplify intel_engines_init"
      
      v6: Fix v5. Remove info->num_rings. (by Oscar)
      
      v7: Rebase (Rodrigo).
      
      v8:
        - s/intel_device_info_fused_off_engines/
          intel_device_info_init_mmio (Chris)
        - Make vdbox_disable & vebox_disable local variables (Chris)
      
      v9:
        - Move function declaration to intel_device_info.h (Michal)
        - Missing indent in bit fields definitions (Michal)
        - When RC6 is enabled by BIOS, the fuse register cannot be read until
          the blitter powerwell is awake. Shuffle where the fuse is read, prune
          the forcewake domains after the fact and change the commit message
          accordingly (Vinay, Sagar, Chris).
      
      v10:
        - Improved commit message (Sagar)
        - New line in header file (Sagar)
        - Specify the message in fw_domain_reset applies to ICL+ (Sagar)
      
      Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
      Cc: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
      Cc: Chris Wilson <chris@chris-wilson.co.uk>
      Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
      Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Signed-off-by: NOscar Mateo <oscar.mateo@intel.com>
      Reviewed-by: NSagar Arun Kamble <sagar.a.kamble@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180316121456.11577-1-mika.kuoppala@linux.intel.com
      [Mika: soothe checkpatch on commit msg]
      Signed-off-by: NMika Kuoppala <mika.kuoppala@linux.intel.com>
      26376a7e
  10. 17 3月, 2018 1 次提交
  11. 15 3月, 2018 3 次提交
  12. 14 3月, 2018 2 次提交
  13. 13 3月, 2018 1 次提交
    • R
      drm/i915/psr: Display WA 0884 applied broadly for more HW tracking. · caa1fd66
      Rodrigo Vivi 提交于
      WA 0884:bxt:all,cnl:*:A - "When FBC is enabled with eDP PSR,
      the CPU host modify writes may not get updated on the Display
      as expected.
      WA: Write 0x00000000 to CUR_SURFLIVE_A with every CPU
      host modify write to trigger PSR exit."
      
      We can also find on spec other cases where they describe
      bogus writes to cursor registers to force PSR exit with
      HW tracking. And it was confirmed by HW engineers that
      this Wa can be safely applied for any frontbuffer activity.
      
      So let's use this more and more here instead of forcibly
      disable and re-enable PSR everytime that we have a simple
      reliable flush case.
      
      Other commits improve the fbcon/fbdev use a lot, but this
      approach is the only when where we can get a fully reliable
      console with no slowness or missed frames and PSR still
      enabled and active.
      
      v2: - Rebase on drm-tip
          - (DK) Add a comment to explain that WA
          tells about writing 0 to CUR_SURFLIVE_A but we write to
          CUR_SURFLIVE(pipe).
      v3: Wa doesn't work on PSR2.
      
      Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Signed-off-by: NRodrigo Vivi <rodrigo.vivi@intel.com>
      Reviewed-by: NDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180309005218.26772-1-rodrigo.vivi@intel.com
      caa1fd66
  14. 08 3月, 2018 1 次提交
  15. 07 3月, 2018 3 次提交
  16. 02 3月, 2018 4 次提交
    • V
      drm/i915: Add support for the YCbCr COLOR_RANGE property · c8624ede
      Ville Syrjälä 提交于
      Add support for the COLOR_RANGE property on planes. This property
      selects whether the input YCbCr data is to treated as limited range
      or full range.
      
      On most platforms this is a matter of setting the "YUV range correction
      disable" bit, and on VLV/CHV we'll just have to program the color
      correction logic to pass the data through unmodified.
      
      v2: Rebase
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Daniel Stone <daniel@fooishbar.org>
      Cc: Russell King - ARM Linux <linux@armlinux.org.uk>
      Cc: Ilia Mirkin <imirkin@alum.mit.edu>
      Cc: Hans Verkuil <hverkuil@xs4all.nl>
      Cc: Uma Shankar <uma.shankar@intel.com>
      Cc: Shashank Sharma <shashank.sharma@intel.com>
      Cc: Jyri Sarha <jsarha@ti.com>
      Reviewed-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180214192327.3250-9-ville.syrjala@linux.intel.com
      c8624ede
    • V
      drm/i915: Add support for the YCbCr COLOR_ENCODING property · b0f5c0ba
      Ville Syrjälä 提交于
      Add support for the COLOR_ENCODING plane property which selects
      the matrix coefficients used for the YCbCr->RGB conversion. Our
      hardware can generally handle BT.601 and BT.709.
      
      CHV pipe B sprites have a fully programmable matrix, so in theory
      we could handle anything, but it doesn't seem all that useful to
      expose anything beyond BT.601 and BT.709 at this time.
      
      GLK can supposedly do BT.2020, but let's leave enabling that for
      the future as well.
      
      v2: Rename bit defines to match the spec more closely (Shashank)
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Daniel Stone <daniel@fooishbar.org>
      Cc: Russell King - ARM Linux <linux@armlinux.org.uk>
      Cc: Ilia Mirkin <imirkin@alum.mit.edu>
      Cc: Hans Verkuil <hverkuil@xs4all.nl>
      Cc: Uma Shankar <uma.shankar@intel.com>
      Cc: Shashank Sharma <shashank.sharma@intel.com>
      Cc: Jyri Sarha <jsarha@ti.com>
      Reviewed-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180214192327.3250-7-ville.syrjala@linux.intel.com
      b0f5c0ba
    • V
      drm/i915: Fix plane YCbCr->RGB conversion for GLK · 38f24f21
      Ville Syrjälä 提交于
      On GLK the plane CSC controls moved into the COLOR_CTL register.
      Update the code to progam the YCbCr->RGB CSC mode correctly when
      faced with an YCbCr framebuffer.
      
      The spec is rather confusing as it calls the mode "YUV601 to RGB709".
      I'm going to assume that just means it's going to use the YCbCr->RGB
      matrix as specified in BT.601 and doesn't actually change the gamut.
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Daniel Stone <daniel@fooishbar.org>
      Cc: Russell King - ARM Linux <linux@armlinux.org.uk>
      Cc: Ilia Mirkin <imirkin@alum.mit.edu>
      Cc: Hans Verkuil <hverkuil@xs4all.nl>
      Cc: Uma Shankar <uma.shankar@intel.com>
      Cc: Shashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180214192327.3250-6-ville.syrjala@linux.intel.comReviewed-by: NImre Deak <imre.deak@intel.com>
      38f24f21
    • V
      drm/i915: Correctly handle limited range YCbCr data on VLV/CHV · 5deae919
      Ville Syrjälä 提交于
      Turns out the VLV/CHV fixed function sprite CSC expects full range
      data as input. We've been feeding it limited range data to it all
      along. To expand the data out to full range we'll use the color
      correction registers (brightness, contrast, and saturation).
      
      On CHV pipe B we were actually doing the right thing already because we
      progammed the custom CSC matrix to do expect limited range input. Now
      that well pre-expand the data out with the color correction unit, we
      need to change the CSC matrix to operate with full range input instead.
      
      This should make the sprite output of the other pipes match the sprite
      output of pipe B reasonably well. Looking at the resulting pipe CRCs,
      there can be a slight difference in the output, but as I don't know
      the formula used by the fixed function CSC of the other pipes, I don't
      think it's worth the effort to try to match the output exactly. It
      might not even be possible due to difference in internal precision etc.
      
      One slight caveat here is that the color correction registers are single
      bufferred, so we should really be updating them during vblank, but we
      still don't have a mechanism for that, so just toss in another FIXME.
      
      v2: Rebase
      v3: s/bri/brightness/ s/con/contrast/ (Shashank)
      v4: Clarify the constants and math (Shashank)
      
      Cc: Harry Wentland <harry.wentland@amd.com>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Daniel Stone <daniel@fooishbar.org>
      Cc: Russell King - ARM Linux <linux@armlinux.org.uk>
      Cc: Ilia Mirkin <imirkin@alum.mit.edu>
      Cc: Hans Verkuil <hverkuil@xs4all.nl>
      Cc: Shashank Sharma <shashank.sharma@intel.com>
      Cc: Uma Shankar <uma.shankar@intel.com>
      Cc: Jyri Sarha <jsarha@ti.com>
      Cc: "Tang, Jun" <jun.tang@intel.com>
      Reported-by: N"Tang, Jun" <jun.tang@intel.com>
      Cc: stable@vger.kernel.org
      Fixes: 7f1f3851 ("drm/i915: sprite support for ValleyView v4")
      Reviewed-by: NShashank Sharma <shashank.sharma@intel.com>
      Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20180214192327.3250-5-ville.syrjala@linux.intel.com
      5deae919
  17. 01 3月, 2018 2 次提交
  18. 23 2月, 2018 1 次提交
  19. 22 2月, 2018 1 次提交
  20. 16 2月, 2018 1 次提交
  21. 13 2月, 2018 2 次提交